Developers Program

Error responses such as "content type of 'text/plain'" and "Internal Server Error"

Published: May 17 2006, 12:00:00 AMยทUpdated: July 24 2022, 2:26:48 PM

Products

Question

I am seeing some strange error responses such as the following: Internal Server Error (500)org.xml.sax.SAXParseException: Premature end of filejava.net.SocketTimeoutException: Read timed out(502)Proxy ErrorClient found response content type of 'text/html;charset=utf-8', but expected 'text/xml'The underlying connection was closed: An unexpected error occurred on a receiveThe underlying connection was closed: Could not establish secure channel for SSL/TLSClient found response content type of 'text/plain', but expected 'text/xml'HTTP/1.1 502 (Bad Gateway) Proxy ErrorCould not establish secure channel for SSL/TLSSystem temporarily unavailablecom.ebay.app.pres.service.hosting.WebServiceDisabledException: The web service ... is not properly configured or not found and is disabledHTTP/1.1 Service Unavailable Why am I getting these and how should I handle these?

Answer

Detailed Description

Although rare, these are indications of operational issues on eBay's end.

These errors can happen on any API call and through any available API or SDK which include XML, SOAP and Java SDK & .NET SDK.

Request Type / client Possible Error
XML requestsInternal Server Error (500)
HTTP/1.1 502 (Bad Gateway) Proxy Error
SOAP requests
Requests from .NET SDK

Client found response content type of 'text/html;charset=utf-8', but expected 'text/xml'
The underlying connection was closed:...
Client found response content type of 'text/plain', but expected 'text/xml'

Java SDK org.xml.sax.SAXParseException: Premature end of file
(502)Proxy Error
java.net.SocketTimeoutException: Read timed out


Retry Recommendations:

Most of the times the operational issues are resolved very quickly and you should apply the standard retry mechanism of 3 tries. If possible, wait for a few minutes and retry the calls. If you continue running into these errors, please file a support ticket and report a bug:
https://developer.ebay.com/my/support/tickets


Additional Resources

How well did this answer your question?