#ny_api

1 messages · Page 1 of 1 (latest)

trim crowBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1341968715088003143

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hidden spoke
#

Hi there, looks like your server returend a 500 error, have you checked your server log?

fresh grove
#

i thought this is the server log? this is the pm2 log in my server

#

thanks for your response!

hidden spoke
#

This looks like the front end log to me

fresh grove
#

1|app-production | 2025-02-20T02:12:47: Error in createCheckoutSession: Error: Missing required fields
1|app-production | at createCheckoutSession (/home/odots/backend/controllers/paymentController.js:21:19)
1|app-production | at newFn (/home/odots/backend/node_modules/express-async-errors/index.js:16:20)
1|app-production | at Layer.handle [as handle_request] (/home/odots/backend/node_modules/express/lib/router/layer.js:95:5)
1|app-production | at next (/home/odots/backend/node_modules/express/lib/router/route.js:149:13)
1|app-production | at Route.dispatch (/home/odots/backend/node_modules/express/lib/router/route.js:119:3)
1|app-production | at newFn (/home/odots/backend/node_modules/express-async-errors/index.js:16:20)
1|app-production | at Layer.handle [as handle_request] (/home/odots/backend/node_modules/express/lib/router/layer.js:95:5)
1|app-production | at /home/odots/backend/node_modules/express/lib/router/index.js:284:15
1|app-production | at Function.process_params (/home/odots/backend/node_modules/express/lib/router/index.js:346:12)
1|app-production | at next (/home/odots/backend/node_modules/express/lib/router/index.js:280:10)
1|app-production | 2025-02-20T02:12:47: POST /api//payments/create-checkout-session 500 5.112 ms - 35
1|app-production | 2025-02-20T02:12:47: 2025-02-20 02:12:47 error: POST /api//payments/create-checkout-session 500 8ms

it said i have missed a required field, is it the 'buyer '? coz it is the only field i added .

hidden spoke
fresh grove
#

17 Feb 2025
Updated Today 11:25:39
Refresh
200 POST
/v1/checkout/sessions
06:22:14
16 Feb 2025
400 POST
/v1/checkout/sessions
13:46:25
400 POST
/v1/checkout/sessions
13:46:22
200 POST
/v1/checkout/sessions
13:23:02
200 POST
/v1/checkout/sessions
13:06:11
15 Feb 2025
200 POST
/v1/checkout/sessions
18:11:56
200 POST
/v1/checkout/sessions
16:49:57
200 POST
/v1/checkout/sessions
12:58:43
200 POST
/v1/checkout/sessions
12:57:36
200 POST
/v1/checkout/sessions
12:45:26

#

nth, the most recent one is on 17 Feb, but i enconuter the problem today

hidden spoke
#

You can also filter by result, so that you can focus on failed requests only

#

Did you choose the correct mode? e.g., test mode

fresh grove
#

i choose live mode, it works well before 17 Feb

#

i can make the payment

hidden spoke
#

Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings -> Business -> Account Details

fresh grove
#

OK! acct_1QhSGdKlw98H8nmo

hidden spoke
#

I don't see any failed checkout session creation requests happening today on this account

#

Are you using a different account?

fresh grove
#

no hahaha,, i only got one account

#

i am confused too , just dont know why suddenly it cannot function

#

when i click on the checkout button, the message logged in network tab:

backend.o-dots.com/a…-checkout-session:1
Failed to load resource: the server responded with a status of 500 ()
C5mzITmC.js:1 Error redirecting to Stripe: Error: No session ID returned from API
at h (C5mzITmC.js:1:1124)
h @ C5mzITmC.js:1 and just stuck there without any response

hidden spoke
#

Looks like your server is expecting a session ID, but your frontend didn't provide.

fresh grove
#

i see , but i use the standard code only , how come it cannot provide the session ID?

#

so its the issue caused by my server instead of stripe? but i see from the website the 500 error is caused by stripe server?

hidden spoke
#

I don't see any recent failed requests in your Stripe Dashboard.