#israel-webhook-403

1 messages · Page 1 of 1 (latest)

prisma wingBOT
barren dirge
#

Hi 👋

I'm sorry it's not clear what you mean by "request one event"

winter marten
#

For example, when I try to register a client, I get a 403, but registers normally

#

And on the locally configured webhook it returns 200 perfectly

barren dirge
#

Your server is sending back the 400 response

#

THe CLI forwards the events to your local development endponit

#

So the problem is the endpoint you are registering is not accepting the request

winter marten
#

Hmm

#

The webhook endpoint is configured in the NextJs API, has nothing to do with it in this case but with the domain that is hosting my test environment?

barren dirge
#

I can't speak to that. I don't have enough insight into how the server that your endpoint is using works. But from what I can see the issue is that the server is returning an Access Denied message

#

Does your server accept POST requests to that endpoint?

prisma wingBOT
winter marten
#

If I show you how the implementation of the webhook code is it would help?

umbral bronze
#

@winter marten not really, it's more likely something on your server's configuration

#

The first step is to track the incoming request on your server to figure out where it's denied

#

israel-webhook-403

winter marten
#

i'll try

umbral bronze
#

Like really if your code returns 200 locally it's really likely that the problem is with your server's configuration in prod. You can hit your own webhook endpoint with curl for example to see what happens to the request

winter marten
#

The server is being maintained by the infra of my company so I do not have as much access to see, I will contact them

umbral bronze
#

sounds good, they should be able to help you debug incoming POST requests

winter marten
#

Thanks for you patience ❤️ good work