I have been getting the error below in my web hook log.
URL: https://webhooks-emmanuel-samuel-agbedejobis-projects.vercel.app/api/kyc-webhook Method: POST Status code: 400 Body: {"error":"Appwrite error","message":"request cannot have request body","code":400,"type":""}
I am willing to share a snippet of my code for a look through. Been fighting with this for 20 days now
Provide the code, please.
Please see the code snippets for your assistance @Kenny
hello?? anyone here @Moderator please check my request
I'll look at it today, but I will say you posted that message at 3 am my time :P So I was very much asleep.
Oh, sorry about that. I didn't factor timezone in, I'm kinda on a edge that is why. Thanks for your help
could you send all your logs? i see you put logging in place, but does any of it come up?
okay, I will trigger another webhook now
Incoming request
Environment variables check: { hasEndpoint: true, hasProjectId: true, hasApiKey: true, hasDatabaseId: true, hasNotificationsId: true, hasKycId: true, hasResendApiKey: true, hasTutorId: true }
ENV Variables
Just to verify, this is not realy data?
Error fetching tutor: AppwriteException [Error]: request cannot have request body at Client.call (/var/task/node_modules/node-appwrite/lib/client.js:172:31) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async Databases.listDocuments (/var/task/node_modules/node-appwrite/lib/services/databases.js:1638:16) at async module.exports [as handler] (/var/task/api/kyc-webhook.js:82:36) at async r (/opt/rust/nodejs.js:2:14648) at async Server.<anonymous> (/opt/rust/nodejs.js:2:11350) at async Server.<anonymous> (/opt/rust/nodejs.js:16:6960) { code: 400, type: '', response: 'request cannot have request body' }
sorry?
I saw bank account number, I just want to make sure this is fake data
lemme redact that part
I think the issue is the request is been added to the request
Appwrite error: { code: 400, message: 'request cannot have request body', type: '' }
Recommended threads
- Can Sites deployments be limited to the ...
Hey all! I’m using Appwrite Cloud Sites with GitHub connected. Right now, Appwrite seems to build for every push and PR, not just for my production branch (main...
- Adding Custom Domain to self-hosted Appw...
Hi, i deployed Appwrite with Coolify and reaching it with appw.appname.de. What is working so far. I wanted to add another custom Domain to activate email verif...
- Cannot connect to Github after migration...
I have migrated from 1.6.1 to 1.7.4. First moving to 1.6.2, then to 1.7.0 and after that to 1.7.4. I tried to deploy a new site but the connection to github wa...