humanstupidity / amazon-advertising-api

This class helps you interfacing the Amazon Advertising API.
MIT License
3 stars 5 forks source link

Getting 400 error on all requests #6

Open ydancziger opened 3 years ago

ydancziger commented 3 years ago

Hi

Does anyone know why the past 10 hours I'm getting a 400 error on all requests, with no changes to the code :(

randommr3 commented 3 years ago

If you still haven't figured it out: AdvertisingClient.js:448

If data is null it shouldn't go through JSONbig.stringify(data) or the API will throw 400.

Change: JSONbig.stringify(data) with !!data ? JSONbig.stringify(data) : data

ydancziger commented 3 years ago

Thanks so much, will check it out

On Fri, Aug 13, 2021 at 5:57 AM randommr3 @.***> wrote:

If you still haven't figured it out: AdvertisingClient.js:448

If data is null it shouldn't go through JSONbig.stringify(data) or the API will throw 400.

Change: JSONbig.stringify(data) with !!data ? JSONbig.stringify(data) : data

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/humanstupidity/amazon-advertising-api/issues/6#issuecomment-898340601, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG4YHXCLFP4YCHQ2T7RG4OTT4TT65ANCNFSM5BUPKJWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .