Mangopay/mangopay2-nodejs-sdk

Error with idempotencies key after token expiry

Ottunger opened this issue · 2 comments

This bug is a bug on Mangopay's side, not at the SDK side, but maybe you can work around it.

Steps to reproduce:

  • Make an API call when Oauth2 token is now invalid, the call using an Idempotency-Key header
  • SDK will reauth using long term key and obtain new Oauth2 token
  • SDK will redo the initial call

Expected: third call goes through

Happening: third call is rejected because idempotency key is said to be known.

I don't know if you can think of a way to avoid this?

Hello @Ottunger,

Thanks for the question. I will ask the API team.

Have a nice day

Hi,

Any chance you found a way around this?

Thanks