#shabaaz27

1 messages · Page 1 of 1 (latest)

next wharfBOT
daring lintel
#

Hi there

near iris
#

Hi bismarck

daring lintel
#

Likely a signature issue

#

Actually

#

Signature should be 400

#

Do you see an error in your local server logs?

near iris
#

Added same signature which got from stripe listen

#

I see error in stripe cli only

#

Are you thr?

daring lintel
#

Can you share an event ID?

#

From the above

willow tide
#

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?

near iris
#

As per the steps in stripe webhook

#

I followed

#

Node js

#

localhost

willow tide
#

Okay, can you share the route definition you're using?

near iris
willow tide
#

Okay, and what is the full stripe listen command you're using?

near iris
willow tide
#

Interesting. If you run this command, what output do you get? curl -v -X POST http://localhost:4242/webhook

near iris
#

Cannot post

willow tide
#

That's really odd. If you restart your node process what do you see in the console?

near iris
#

response error

#

Running on port 4242

willow tide
#

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?

near iris
willow tide
#

Right, but to clarify, the file that contains the code app.post('/webhook'... is in the server.js file?

near iris
#

Yes yes

willow tide
#

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?

near iris
#

It's working thanks.
I closed and restarted vs code

willow tide
#

Okay, cool.

near iris
#

Something happend with ide

willow tide
#

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.

near iris
#

Ok thanks

#

Do you have any article related where we can use stripe webhook in aws lamba

willow tide
#

No.

#

I think there are a lot of third-party articles if you search the web though.

near iris
#

If you have anything can suggest thanks in advance