ScaleLeap / selling-partner-api-sdk

A fully typed TypeScript and Node.js SDK library for Amazon Selling Partner API
https://npm.im/@scaleleap/selling-partner-api-sdk
MIT License
68 stars 28 forks source link

test: update api clients #1103

Closed nguyentoanit closed 2 months ago

nguyentoanit commented 2 months ago

Updates report api clients in tests because they are no longer available.

nguyentoanit commented 2 months ago

@moltar : I'm pretty sure the Test Integration is failed because of invalid credentials. Could you please update them again? 🙏

moltar commented 2 months ago

I don't see invalid credentials anywhere. It's some kind of circular reference error.

nguyentoanit commented 2 months ago

I don't see invalid credentials anywhere. It's some kind of circular reference error.

Perhaps, Axios attempts to parse the response under the hood, when the request is failed. And because the response model is very complex (it contains a copy of the request and cyclical types). Therefore, It caused a Converting circular structure to JSON error.

https://github.com/axios/axios/issues/5332


Also, The credential you added in the BitWarden card looks good when I test from my local machine. Maybe, A copy-paste issue? 😄 https://github.com/ScaleLeap/selling-partner-api-sdk/pull/1072#issuecomment-2305841364

moltar commented 2 months ago

Also, The credential you added in the BitWarden card looks good when I test from my local machine.

made you the repo admin, please update the secrets and test

nguyentoanit commented 2 months ago

made you the repo admin, please update the secrets and test

It's just as I thought. The issue comes from the invalid REFRESH_TOKEN we updated in the GH Secret.

github-actions[bot] commented 1 month ago

:tada: This PR is included in version 8.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: