Back
Checkout error: Error: Request body is empty or invalid JSON. Please check network payload
- 0
- Functions
- Cloud
Im absolutely stumped here.
TypeScript
stripe.ts:74 Calling Appwrite function with payload: {price_id: 'price_1RdZzoDCvcSnLsdCCu8z3KeQ', mode: 'subscription', success_url: 'http://localhost:4321/success', cancel_url: 'http://localhost:4321/', userId: '685abbdb0024f9a2f56f'}
stripe.ts:74 Calling Appwrite function with payload: {price_id: 'price_1RdZzoDCvcSnLsdCCu8z3KeQ', mode: 'subscription', success_url: 'http://localhost:4321/success', cancel_url: 'http://localhost:4321/', userId: '685abbdb0024f9a2f56f'}
stripe.ts:88 Function execution response: {$id: '685b5515e1d8ebe386e3', $createdAt: '2025-06-25T01:47:01.941+00:00', $updatedAt: '2025-06-25T01:47:01.941+00:00', $permissions: Array(1), functionId: 'stripe-checkout', …}
stripe.ts:131 Checkout error: Error: Request body is empty or invalid JSON. Please check network payload.
at handleCheckout (stripe.ts:106:19)
at async HTMLButtonElement.<anonymous> (stripe.ts:46:13)
overrideMethod @ hook.js:608
handleCheckout @ stripe.ts:131
await in handleCheckout
(anonymous) @ stripe.ts:46Understand this error
stripe.ts:88 Function execution response: {$id: '685b5515e0378b9a5a31', $createdAt: '2025-06-25T01:47:01.939+00:00', $updatedAt: '2025-06-25T01:47:01.939+00:00', $permissions: Array(1), functionId: 'stripe-checkout', …}
stripe.ts:131 Checkout error: Error: Request body is empty or invalid JSON. Please check network payload.
at handleCheckout (stripe.ts:106:19)
at async HTMLButtonElement.<anonymous> (stripe.ts:46:13)```
thats my console errors rn.
anyone else know an easy fix?
TL;DR
Checkout process is throwing an error due to invalid JSON in the request body. Error seems to be originating from line 106 in the code. Check the network payload for errors.What's the code? What's at the different line references if the stack trace?
Recommended threads
- DeploymentStatus enum value `canceled` m...
Hey, Sorry if it has been reported already, I found an issue using the Dart SDK where the `canceled` enum value is missing from `DeploymentStatus`. This causes...
- Frequent 500 Internal Server Errors - Pr...
PROJECT ID: 6951f2xxxxx1ee9e750a REGION: Singapore (sgp.cloud.appwrite.io) PLAN: Pro Our production application experiences **500 Internal Server Errors** mult...
- Issue with Custom SMTP
Hey everyone, I'm facing an issue when updating my Custom SMTP settings on Appwrite Cloud. The UI fails silently (no visual errors), but when checking the cons...