Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

405 "Method Not Allowed." #8

Open
cemalokten opened this issue Nov 18, 2024 · 0 comments
Open

405 "Method Not Allowed." #8

cemalokten opened this issue Nov 18, 2024 · 0 comments

Comments

@cemalokten
Copy link

I'm having a few issues getting this working properly.

When I use the command in the readme:

stripe listen --forward-to=http://127.0.0.1:8090/api/webhooks
2024-11-18 18:34:44  <--  [404] POST http://127.0.0.1:8090/api/webhooks [evt_1QMZma05BCWHhnEgX8xC794x]
2024-11-18 18:34:45   --> price.created [evt_1QMZma05BCWHhnEgp12emTQe]
2024-11-18 18:34:45   --> plan.created [evt_1QMZma05BCWHhnEgdkDmpnoW]
2024-11-18 18:34:45  <--  [404] POST http://127.0.0.1:8090/api/webhooks [evt_1QMZma05BCWHhnEgp12emTQe]
2024-11-18 18:34:45  <--  [404] POST http://127.0.0.1:8090/api/webhooks [evt_1QMZma05BCWHhnEgdkDmpnoW]
2024-11-18 18:34:45   --> product.updated [evt_1QMZmb05BCWHhnEgi0Nji002]
2024-11-18 18:34:45  <--  [404] POST http://127.0.0.1:8090/api/webhooks [evt_1QMZmb05BCWHhnEgi0Nji002]

I get the error from pocketbase:

ERROR POST /api/webhooks
└─ Not Found.
   └─ code=404, message=Not Found

But looking at the code I can see that /stripe seems to be an endpoint, so when I listen on that:

stripe listen --forward-to=http://127.0.0.1:8090/stripe
2024-11-18 18:35:08   --> product.created [evt_1QMZmy05BCWHhnEgOP8JAzu3]
2024-11-18 18:35:08  <--  [400] POST http://127.0.0.1:8090/stripe [evt_1QMZmy05BCWHhnEgOP8JAzu3]
2024-11-18 18:35:08   --> plan.created [evt_1QMZmy05BCWHhnEg5guzFKH5]
2024-11-18 18:35:08  <--  [400] POST http://127.0.0.1:8090/stripe [evt_1QMZmy05BCWHhnEg5guzFKH5]
2024-11-18 18:35:08   --> price.created [evt_1QMZmy05BCWHhnEgjSJEjhvG]
2024-11-18 18:35:08  <--  [400] POST http://127.0.0.1:8090/stripe [evt_1QMZmy05BCWHhnEgjSJEjhvG]
2024-11-18 18:35:09   --> product.updated [evt_1QMZmz05BCWHhnEgvSbGzE0B]
2024-11-18 18:35:09  <--  [400] POST http://127.0.0.1:8090/stripe [evt_1QMZmz05BCWHhnEgvSbGzE0B]

I get this in pocketbase:

└─ Method Not Allowed.
  └─ code=405, message=Method Not Allowed

Any help would be really really appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant