double-break / spapi-php

Amazon Selling Partner API PHP Client
MIT License
56 stars 48 forks source link

getFeedDocument 429 Too Many Active Keys #30

Closed aniruddhaad closed 3 years ago

aniruddhaad commented 3 years ago

Hi, I just tried your 2 examples 1. Upload feed 2. Download feed submission report amzn/selling-partner-api-models#670 worked fine but amzn/selling-partner-api-models#671 i am getting error with feed document id amzn1.tortuga.3.60a2888e-d6da-435b-a1b2-9fb8a59be55a.T2GADJFXSJAN2W- < HTTP/1.1 429 < Date: Wed, 02 Jun 2021 16:53:09 GMT < Content-Type: application/json < Content-Length: 103 < Connection: keep-alive < x-amzn-RequestId: dbc4ed29-f922-4f20-8fde-714087f098fd < x-amzn-ErrorType: TooManyActiveKeysException < x-amz-apigw-id: ATmaWG6AIAMFbdg= <

Any suggestions?

xbaha commented 3 years ago

this was an issue from amazon and it should work now, can you try again?

https://github.com/amzn/selling-partner-api-models/issues/1412

aniruddhaad commented 3 years ago

@xbaha glad that your replied. I wasted many hours trying to find if it was a mistake from my side as I am new to this & just started integration. Thank you for your quick response. I appreciate.

I just tried and now got different error - < HTTP/1.1 400 Bad Request < Date: Thu, 03 Jun 2021 06:06:20 GMT < Content-Type: application/json < Content-Length: 126 < Connection: keep-alive < x-amzn-RequestId: 3ef4f278-f078-4ffb-8128-23c712369825 < x-amzn-RateLimit-Limit: 0.0222 < x-amz-apigw-id: AVamZHxnoAMFVYA= < X-Amzn-Trace-Id: Root=1-60b8715b-693968cb612bf5d70b8a68b6 <

Probably I should upload new feed and test again. I will send another reply later today after testing.

Thanks

aniruddhaad commented 3 years ago

Uploaded a new product feed , here is response -

feedDocumentId: amzn1.tortuga.3.69489f26-9c03-46d5-9cf7-4af0f1026135.T11FZEMT0YCSB4

Then i tried getfeed and got error -

  • About to connect() to sellingpartnerapi-na.amazon.com port 443 (#0)
  • Trying 34.237.33.46...
  • Connected to sellingpartnerapi-na.amazon.com (34.237.33.46) port 443 (#0)
  • Initializing NSS with certpath: sql:/etc/pki/nssdb
  • skipping SSL peer certificate verification
  • SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  • Server certificate:
  • subject: CN=sellingpartnerapi-na.amazon.com
  • start date: Apr 04 00:00:00 2021 GMT
  • expire date: May 03 23:59:59 2022 GMT
  • common name: sellingpartnerapi-na.amazon.com
  • issuer: CN=Amazon,OU=Server CA 1B,O=Amazon,C=US

    GET /feeds/2020-09-04/documents/amzn1.tortuga.3.69489f26-9c03-46d5-9cf7-4af0f1026135.T11FZEMT0YCSB4 HTTP/1.1 accept: application/json host: sellingpartnerapi-na.amazon.com user-agent: spapi_client x-amz-access-token: Atza|IwEBIEsx-gG0T_csSIMQedNVN7g6jugfBn1FAvLI_lHiFTtFbXtFAgupbMN4rgiHT-fzQYwOnw34f_6MgQqIKetOlaVpY2dn_rmGJb5UCrHZA3Y4l4E6DfIBmgxJLIHxCaJS_pItvO5_8ilysIdTZqvg_gEEyyLa4OBWqLpq5fnMREhZsPuVwnORdbOUV2KHay1rQOXwA93WbgeNl7Oym2dzTEq9ZfD5W7WJ_SiHUH0Y3gis16J_xSLCc_wgr6XThGu2eNa6RRokGwYLK-3KMJ7MkKcWtMQ-dJNxz8I4k5w3VQHDyHDTBHSKfOQjD9g5V5ivJ2gbY2dRu8meh7y61bPfCZ_6 x-amz-date: 20210603T170437Z x-amz-security-token: FwoGZXIvYXdzEFoaDL8qFPjg/otgo7Ht8SKsAX1DcMJIZ7YchZN1UUmR4Cx1IjLkukjXFQdhNLeiAxcVgzxldtKeFOn4P9yGef/rnirQJ8lfjIlGEwZ6GnD5IRiJYaj5fydFK2gUC82hlFuB81ODxt/8n9ozJNi3KiBypERrQJEJtrHi4JpnSC5IEdSLnZ1hmgBRX6bdR2cKTDwIPEUIv/F2sY5tWC9DpKGUyu29/FsKWNU1YukmRPLYKIx8zNKlDk0iL3xqM7Ao3ZbkhQYyLRwqvqyoymK/yLx9cCElB60cy2YGBHuZovyCvh1bFOrcdLHE70mvq2dG3RDhFA== Authorization: AWS4-HMAC-SHA256 Credential=ASIA6PT4UXCKZ2P7NZ5J/20210603/us-east-1/execute-api/aws4_request, SignedHeaders=host;user-agent;x-amz-access-token;x-amz-date;x-amz-security-token, Signature=ec934808a2e4b86f0fae555c14a1a245456ae5558b342d35fa9e72c5e481ce12

< HTTP/1.1 400 Bad Request < Date: Thu, 03 Jun 2021 17:04:37 GMT < Content-Type: application/json < Content-Length: 126 < Connection: keep-alive < x-amzn-RequestId: 6431a60b-342b-4a41-88e5-b22031f89670 < x-amzn-RateLimit-Limit: 0.0222 < x-amz-apigw-id: AW7B7F3uoAMF62Q= < X-Amzn-Trace-Id: Root=1-60b90ba5-1ddc929a4760a2c8247df772 <

  • Connection #0 to host sellingpartnerapi-na.amazon.com left intact Amazon SP API responded with HTTP 400 { "errors": [ { "code": "InvalidInput", "message": "Invalid feedDocumentId", "details": "" } ] }

Any idea?