#GeochiNova

1 messages · Page 1 of 1 (latest)

mental masonBOT
fervent lagoon
noble magnet
#

i think it is this: req_LUYiToQD6TbS1m

fervent lagoon
#

Also, what does console.error(error); print out?

fervent lagoon
noble magnet
#

then it is not even reaching the logs from my local development environment...

fervent lagoon
#

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

noble magnet
fervent lagoon
#

Is console.error logging an error?

mental masonBOT
noble magnet
#

let me check again...

#

I'm just getting this: 'Payment unsuccessful! Response not ok at paymentform.jsx line 42'

fervent lagoon
#

You need to check the logs of your /create-subscription endpoint/route

noble magnet
#

will do

noble magnet
#

does this help you help me?

oblique steeple
#

Hi! I'm taking over this thread.

#

Give me a few minutes to catchup.

noble magnet
#

Haya, thank you

noble magnet
#

@oblique steeple haya, have you had any aha moments with this?

oblique steeple
#

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

noble magnet
#

the screen shots I posted, are these not the logs from the Network

oblique steeple
#

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.

noble magnet
#

Thank you, how do I find the logs from the backend then?

mental masonBOT
noble magnet
#

Thank you, where do I find the logs from the backend then?

oblique steeple
#

On your backend server

errant wind
#

Hey! Taking over for my colleague. who is maintaining the backend deployment, you need to ask them for the backend's logs

noble magnet
#

Hey! I'm developing it locally at the moment

#

I'm a junior dev hired to implement Stripe lol - my company is broke :))

errant wind
#

You need to check in the community of the framework/language you are using how to manage/handle your backend logs first.

twin nimbus
#

Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.