lenra-io / server

GNU Affero General Public License v3.0
6 stars 0 forks source link

[Bug]: Cannot call webhooks endpoint (error 404) #486

Closed jonas-martinez closed 11 months ago

jonas-martinez commented 11 months ago

What happened?

It seems that we cannot call the /app/webhooks endpoint on the server as it always return a 404 error with no specific information as to where the error comes from. The route exists in the application_runner router so I guess this is either an error handling problem or a guard problem.

Example log I get from the devtool using my app :

lenra-devtool-1  | 14:46:46.743 request_id=F42yDcGlyqP7aFAAAAGD [info] POST /app/webhooks
lenra-devtool-1  | 14:46:46.743 request_id=F42yDcGlyqP7aFAAAAGD [info] Sent 404 in 308µs
taorepoara commented 11 months ago

The webhook API endpoint changed to /app-api/v1/webhooks

jonas-martinez commented 11 months ago

As @taorepoara said, I was using the wrong API endpoint