#GeochiNova
1 messages · Page 1 of 1 (latest)
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
i think it is this: req_LUYiToQD6TbS1m
Also, what does console.error(error); print out?
Don't think so, that was a request made by something you did in the Dashboard
then it is not even reaching the logs from my local development environment...
I can't see any test mode errors indicative of an issue of an API request to made to us, which implies there's an issue in your /create-subscription endpoint
You need to log out the errors in there, and work backwards from there. As I said, your catch block should print the error
this is the code for the server.js
https://codepen.io/ar78studio/pen/PoyxZXg?editors=0010
and this one is for the paymentform.jsx
https://codepen.io/ar78studio/pen/poxQgGy?editors=0010
Is console.error logging an error?
let me check again...
I'm just getting this: 'Payment unsuccessful! Response not ok at paymentform.jsx line 42'
You need to check the logs of your /create-subscription endpoint/route
will do
does this help you help me?
@oblique steeple haya, have you had any aha moments with this?
Sorry for the delay, Discord is busy... looking at it now!
OK, so your frontend called your backend server (/create-subscription), and your server responded with a 400 error. It means there's an error in your backend code.
To debut this, you would need to check your backend logs to see what exactly is the error
the screen shots I posted, are these not the logs from the Network
this would be the backend code: https://codepen.io/ar78studio/pen/PoyxZXg?editors=0010
True they are logs from the network, but what you need to investigate is logs from the backend directly. It will contain more information about the exact error.
I can't review your full code to try to guess where the error is, you need to find the error logs so we can know where/what to look for.
Thank you, how do I find the logs from the backend then?
Thank you, where do I find the logs from the backend then?
On your backend server
Hey! Taking over for my colleague. who is maintaining the backend deployment, you need to ask them for the backend's logs
Hey! I'm developing it locally at the moment
I'm a junior dev hired to implement Stripe lol - my company is broke :))
You need to check in the community of the framework/language you are using how to manage/handle your backend logs first.
Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.