apai-io icon indicating copy to clipboard operation
apai-io copied to clipboard

Error 503 Service Unavailable

Open ttib1996 opened this issue 6 years ago • 6 comments

Everytime i'm trying to make a request to the api, i'm getting a 503 Service Unavailable. Full error: Fatal error: Uncaught GuzzleHttp\Exception\ServerException: Server error: GET http://webservices.amazon.de/onca/xml?AWSAccessKeyId=AKIAJTPPKLFTJDDXUZGQ&Actor=Bruce%20Willis&AssociateTag=mdomocos20&ItemPage=1&Keywords=Stirb%20Langsam&Operation=ItemSearch&ResponseGroup=Large&SearchIndex=DVD&Service=AWSECommerceService&Timestamp=2019-02-14T12%3A52%3A36Z&Version=2013-08-01&Signature=Y1nESl8%2B106sI8D1aMihc%2FKFQFnrO0o%2BNishcqXaf4M%3Dresulted in a503 Service Unavailable response: <?xml version="1.0"?> <ItemSearchErrorResponse xmlns="http://ecs.amazonaws.com/doc/2013-08-01/"><Error><Code>RequestThro (truncated...) in C:\Users\ID\Desktop\test\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113 Stack trace: #0 C:\Users\ID\Desktop\test\vendor\guzzlehttp\guzzle\src\Middleware.php(66): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 C:\Users\ID\Desktop\test\vendor\guzzlehttp\promises\src\Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closur in C:\Users\ID\Desktop\test\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113

From what I understand, it means that I'm sending requests too fast. But I'm sending only one request. Does anybody know what the problem is?

ttib1996 avatar Feb 14 '19 13:02 ttib1996

Same problem, does this lib have throttle ?

neoteknic avatar Feb 25 '19 16:02 neoteknic

The new thresholds are silly. The API is becoming unusable. If you have no sales in a particular region, you basically have zero API privileges.

JanKrohn-Khalibre avatar Feb 25 '19 18:02 JanKrohn-Khalibre

Note that your account will lose access to Product Advertising API if it has not generated referring sales using PA API in the last 30 days.

https://docs.aws.amazon.com/pt_br/AWSECommerceService/latest/DG/TroubleshootingApplications.html

rodurma avatar Mar 13 '19 00:03 rodurma

So basically goodbye PA API.

IvanBernatovic avatar Apr 19 '19 14:04 IvanBernatovic

Do anyone know an alternative? I was trying to use it to suggest books depending on books users already have, but how to start getting sales if you can't even setuop the system before? :/

kissifrot avatar May 06 '19 16:05 kissifrot

You have to make some sales through another channel, such as Site Stripe or direct links to products. If you want data about book suggestions, you might be able to use the Goodreads API instead (Goodreads is also owned by Amazon):

https://www.goodreads.com/api/terms

Since it's fairly easy to build Amazon URLs from an ISBN, the main thing you'll lose by not having the Product Advertising API is the ability to extract price and other data automatically.

pwaring avatar May 06 '19 16:05 pwaring