Closed marcelkussin closed 7 years ago
Looking at the exception is appears that you are connecting to the production server https://webservices.ebay.com/BulkDataExchangeService
. Make sure that the credentials that you are passing to the SDK are correct for that environment as passing the wrong ones, i.e. your sandbox credentials, can trigger the eBay error.
im sending the right ones and it worked with them until yesterday
forget it... it Expired yesterday and that was the only problem... I wish eBay would send a better Error to catch that exception
Interesting to know that it also triggers on an expired token as I've never come across that.
I may look at seeing if I should have the SDK not throw an exception for a 500 status code. It would allow people to obtain the error message from eBay.
It is possible to catch the exception thrown by Guzzle. It's a bit hacky but it does show the XML response from eBay which can help tracking down the cause of the error.
try
{
$response = $exchangeService->getJobs($request);
}
catch (GuzzleHttp\Exception\RequestException $e) {
if ($e->hasResponse()) {
echo $e->getResponse()->getBody()->getContents();
}
exit();
}
Hello,
im using your Library since several months but now suddenly i get a Response and i dont know how to debug it.
Exception:
Code: