I’m getting a server error when attempting to run the code below and hit the Stripe payments api.
What’s strange is that this function was working properly before but now it’s not. The console logs out “1” but does not make it to the second console log for “2”. Which tells me something is going wrong with Stripe-Glitch connection.
Are there any other errors? Can you maybe set up error handling in your code to find out what went wrong? I have a feeling this is some sort of CORS related error.
great, then your error reporting code is working. gather up any information you can from that error response. (I personally don’t know how to do this in axios–does err here contain all the response body?) and see if you can figure out what’s wrong. but given that it’s in the 5xx range, it may be something that you’ll have to ask stripe support about