Post

4 followers Follow
0
Avatar

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

Gaetan

Please sign in to leave a comment.

5 comments

0
Avatar

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.


Henrik Huhtinen 0 votes
0
Avatar

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"}

Gaetan 0 votes
0
Avatar

You are probably specifying incorrect hook_id (404 means that the hook was not found).
You can find the hook_id together with the 'code' in the verification request body.

br
Marek

Marek Hruzik 0 votes