#spicyjungle_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ 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/1237429304833474580
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Worth adding "payload" is just await req.text();
Hello
Hello
Are you using Express here?
Gotcha, that router is probably manipulating the raw body
Can you log your req.text()?
Yes, 1 sec
It should be binary (a buffer data type)
If you see JSON or a string or anything then you know that isn't the raw body
So just logging the payload?
Yep
That will indicate whether you have the raw body or not
You probably want to follow something like: https://stackoverflow.com/questions/69968460/nextjs-stripe-webhook-raw-body
So seems like you want export const config = { api: { bodyParser: false, }, };
and
const buf = await buffer(req);
Yeah payload is JSON. Thanks, i'll try that out!
๐