davidtsadler / ebay-sdk-examples

Several examples of using the eBay SDK for PHP
http://devbay.net
Apache License 2.0
184 stars 100 forks source link

I'm getting "Server error: `POST https://svcs.ebay.com/services/search/FindingService/v1` resulted in a `500 Internal Server Error`" #71

Closed cservit closed 4 years ago

cservit commented 6 years ago

Hi, i'm getting a http 500 error. I did not changed anything, but till saturday i'm getting this error on different servers. I've also recreated my certifiate ID, but nothing changes.

Here is a sample code (it's very similar to the samples):

`require_once DIRPATH . '/lib/vendor/autoload.php';

$service = new DTS\eBaySDK\Finding\Services\FindingService( [ 'apiVersion' => '1.13.0', 'globalId' => $globalId,

    'credentials' => [
            'appId'  => $appId,
            'certId' => $certId,
            'devId'  => $devId
    ]

] );

$request = new DTS\eBaySDK\Finding\Types\FindItemsByKeywordsRequest(); $request->keywords = 'Harry Potter';

// Ask for the first 25 items. $request->paginationInput = new DTS\eBaySDK\Finding\Types\PaginationInput(); $request->paginationInput->entriesPerPage = 1; $request->paginationInput->pageNumber = 1;

// Send the request. $response = $service->findItemsByKeywords( $request );`

I't would be great, if someone has an idea or can test the sample above....

inzamam-idrees commented 5 years ago

I face the same problem but could not find any solution for this. Please help us

firstroad commented 5 years ago

Having the same issue, with FileTransfer downloadFile call, could someone else confirm?

cservit commented 5 years ago

Hi, i found the solution for this issue. ebay has implemented a limitation of requests. If this daily limit is reached, you are getting this exception.

https://developer.ebay.com/support/api-call-limits

You can create a compatible check: https://developer.ebay.com/support/app-check

I've submitted ths app check and was approved. The error is gone.

firstroad commented 5 years ago

Hi, i found the solution for this issue. ebay has implemented a limitation of requests. If this daily limit is reached, you are getting this exception.

https://developer.ebay.com/support/api-call-limits

You can create a compatible check: https://developer.ebay.com/support/app-check

I've submitted ths app check and was approved. The error is gone.

didn't work for me, today with no requests, just got the tokens and then error again

cservit commented 5 years ago

didn't work for me, today with no requests, just got the tokens and then error again

Yeah, the api blocking is not just one day. A customer has testet it and told me the blocktime is arbitrary. That issue is not a problem of the php sdk. Just create a ticket and ask the ebay support. My issue was confirmed by them.