#shabaaz27
1 messages · Page 1 of 1 (latest)
Hi there
Hi bismarck
Likely a signature issue
Actually
Signature should be 400
Do you see an error in your local server logs?
Added same signature which got from stripe listen
I see error in stripe cli only
Are you thr?
Hello! I'm taking over and catching up...
A 404 error indicates your web server could not find the URL in question. That usually means you either have a file in the wrong place, the URL itself is wrong, or your code isn't handling requests for that URL.
What local web server are you using, and what language are you writing your webhook handler in?
Okay, can you share the route definition you're using?
Okay, and what is the full stripe listen command you're using?
stripe listen --forward-to http://localhost:4242/webhook
Interesting. If you run this command, what output do you get? curl -v -X POST http://localhost:4242/webhook
That's really odd. If you restart your node process what do you see in the console?
Also, just to clarify, the webhook code you shared above is in a file called server.js, and you're using node server.js in the same directory to start the server?
Right, but to clarify, the file that contains the code app.post('/webhook'... is in the server.js file?
Yes yes
That doesn't seem to make sense. I think there might be something else going on. If you type cat server.js in the same place you're running node server.js do you see the webhook code you expect?
Or do you see different code?
It's working thanks.
I closed and restarted vs code
Okay, cool.
Something happend with ide
I think you may have been in a different directory with a different server.js file.
You can type pwd to print the working directory to see where you are.
Ok thanks
Do you have any article related where we can use stripe webhook in aws lamba
If you have anything can suggest thanks in advance