when you create the webhook asana will test the route making a POST request at the url you provided.
The handshake token of the request will be in ‘X-Hook-Secret’ header.
The rest webhook requests will be performed when an event happened at your resource in asana and you will see on these requests the ‘X-Hook-Signature’ header.
Thanks, I saw the thread but didn’t see the resolution. Looks like something is not good with this API. I’m sure that I do all steps described in the documentation in correct way.
Seems like the flow is right, however there might be an issue if you’re trying to post directly to a url with .php at the end. I remember a I seen issues similar to that a few years ago when I was using PHP. try using an index.php file inside a folder named “recievehook” so your target path ends up without the .php filename and see if that helps.
Are you able to access your target url yourself? from both local and an outside environment?
Are your returning a 200 status code a long with the handshake token?
Are you 100% you’re using a valid SSL certificate? if you’re developing locally I would suggest you give a try to ngrok or similar https tunnel service to make it easier to debug
That’s actually not relevant…
you can have an endpoint available for GET requests, but not for POST request. I would suggest to make sure your code supports accepting POST request to that endpoint. then move forward with everything else
Thank you Guys for the replies. I think that there are not documented limitations.
I have tried many different solutions but nothing.
I used ngrok - nothing. There were no request from Asana.
I tested POST method to my site. It’s working according to handshake process.
Interesting thing - we decided to use asana events api and I also got errors. Then I try premium account - and all get working. Looks like api doesn’t work well with free accounts.
Hi @Vasyl_Lupynis, I’d love to know if you were able to get webhooks working here.
This may not be directly helpful for your php server, but I recently put together an example of this in nodejs on Glitch. You can check that out here: Glitch :・゚✧
At the very least this might let you troubleshoot working with your resource, access token, and Asana’s responses in a safe environment.