I am having the exact same problem as you are.
Followed the tutorial... successfully registered webhooks. But ngrok keeps giving me a 405 method not allowed on my webhook routes.
Uninstalling and reinstalling the app had no effect - still 405.
I'm not as familiar with koa-router, I normally just use express... I can see the line:
But we're not setting that anywhere, does it just infer the allowed methods based on what routes have been configured by the router?
Or does this have to do with a configuration of ngrok?
Thanks in advance.
I'm having same problem, exact same server.js as example, everything works properly including registering the webhook, yet when I create a product ngrok is displaying:
POST /webhooks/products/create 403 Forbidden
POST //webhooks/products/create 405 Method Not Allowed
Removing and reinstalling isn't fixing it. I'm also occasionally seeing the following errors in my node app.
Error: write EPIPE
at afterWriteDispatched (internal/stream_base_commons.js:149:25)
at writeGeneric (internal/stream_base_commons.js:140:3)
at Socket._writeGeneric (net.js:776:11)
at Socket._write (net.js:788:8)
at doWrite (_stream_writable.js:435:12)
at clearBuffer (_stream_writable.js:574:7)
at Socket.Writable.uncork (_stream_writable.js:329:7)
at connectionCorkNT (_http_outgoing.js:656:8)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
Also I'm running on MacOS Catalina, so I turned off the macos firewall, but didn't help.
OK, I found the problem. Registering the webhook using
I'm having the same problem as well. I'm using the exact same file from the tutorial and my HOST is declared correctly. However, I'm still receiving the 405 forbidden method error on NGROK. I'm trying to receive a product creation webhook from the Shopify admin. I'm able to successfully register the webhook, but cannot receive it. Any other tips you might have?
|2 hours ago|
|2 hours ago|
|4 hours ago|
|5 hours ago|
|7 hours ago|