Exeu / apai-io

DISCONTINUED Amazon Product Adverstising Library based on PHP REST and SOAP (only V1) using the Product Advertising API.
http://apai-io.readthedocs.io/en/latest/
628 stars 154 forks source link

Error 503 Service Unavailable #181

Open ttib1996 opened 5 years ago

ttib1996 commented 5 years ago

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 Unavailableresponse: <?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?

neoteknic commented 5 years ago

Same problem, does this lib have throttle ?

JanKrohn-Khalibre commented 5 years ago

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.

rodurma commented 5 years ago

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

IvanBernatovic commented 5 years ago

So basically goodbye PA API.

kissifrot commented 5 years ago

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? :/

pwaring commented 5 years ago

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.