#alex-webhook-405

1 messages ยท Page 1 of 1 (latest)

halcyon knollBOT
pale sleet
#

Hmm I'm looking at our logs but we don't really have anything that'd explain why your code fails with 405

Have you tried adding logging in your code and seeing what sort of requests you're seeing on your endpoint? Do you have a middleware of any sort?

twilit nimbus
#

We do have clerk middleware, but we've configured the webhook.ts route to be a public endpoint. I'm going to try and see if I can log the request method now

pale sleet
#

๐Ÿ‘

twilit nimbus
#

Ok so I just ran the exact same process with localhost:3000 and stripe listen instead of using the deployed webhook at dev.fuxam.app and it worked flawlessly. The webhook.ts API route in my localhost has no difference to the deployed version on dev.fuxam.app and neither does the middleware.

#

Going to try and get logs from the deployed version now

halcyon knollBOT
#

alex-webhook-405

pale sleet
#

๐Ÿ‘