Unable to validate a new hook

Comments

5 comments

  • Henrik Huhtinen

    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.


    0
    Comment actions Permalink
  • Gaetan

    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

    0
    Comment actions Permalink
  • Gaetan

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

    0
    Comment actions Permalink
  • Marek Hruzik

    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

    0
    Comment actions Permalink
  • Gaetan

    Thanks a lot for pointing out my mistake. I had an error with the hook id. It's working now.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk