Unable to validate a new hook
Hi,
I'm trying to create web hooks in order to be notified on item crete/update/delete.
The creation on the web dev application is ok but when I try to validate the hook I get a 404. I'm using the java api. I'm correctly having the verify request on my hook but have the 404 when I try to respond.
Any ideas?
Thanks
-
I'm not sure if you receive the request or is the 404 when you try to validate the hook.
If it is when validating, then you probably do the validation incorrectly. Are you sure you are posting /hook/{hook_id}/verify/validate with the verification code as JSON body added?
If the problem is with receiveing the verify request, then:
Have you tried with HTTP and HTTPS? If it only errors on HTTPS, then your HTTPS implementation is not supported. Podio API does not support SNI-based HTTPS for webhooks, for instance. -
I receive the request. I have the code (I can log it). It's when I do the validation that the problem occurs.
I use the Java library that works ok for all the other requests I make.
When debugging I can see in the ExceptionFilter:
POST https://api.podio.com:443/hook/7614164/verify/validate returned a response status of 404 Not Found
-
Using curl I have the same response:
curl -H "Content-Type: application/json" -X POST -d '{"code":"1234567"}' https://api.podio.com/hook/7614164/verify/validate
{"error_parameters":{},"error_detail":null,"error_propagate":false,"request":{"url":"http:\/\/api.podio.com\/hook\/7614164\/verify\/validate","query_string":"","method":"POST"},"error_description":"Object not found","error":"not_found"}
Please sign in to leave a comment.
Comments
5 comments