#heymato
1 messages · Page 1 of 1 (latest)
Hi there!
Hello
I think it would be better to fix the underlying issue, so that your code is only called once.
Otherwise, you can see how to use idempotency key in node.js here: https://stripe.com/docs/api/idempotent_requests?lang=node
So it is not necessary to have a idempotancy key?
It is recommended to use idempotancy key (in order to better handle cases when an API call is disrupted in transit and you do not receive a response), but no it's not necessary.
And in your specific case I would recommend to try to understand why your code is running twice, and try to fix that.
Yes, I completely agree, the thing is, I can't seem to find any help for this problem. I know this is off topic, but any idea why my post is grayed out in Discord ?
Where is that screenshot from?
I'm not sure sorry. But yes if you don't find a solution to this, then making sure you pass the same idempotency key would fix the issue.
Thank you!