For a project of ours we’ve integrated the Asana API into a basic Symfony app. This has been working correctly for about a month but now some issues are arising, specifically with creating webhooks. Here are the steps we undertake:
POST /webhooks resource: "1118598799868276" target: "https://app.sbsbelgium.sumoapp.be/webhook/1118598799868276"
When logging the request on the given target we see headers that look like these:
Connection: close Content-Length: 2 Content-Type: application/json Host: app.sbsbelgium.sumoapp.be X-Hook-Secret: 5a2ee55dea34b27b627bc97a5ae943a5 X-Php-Ob-Level: 1
When recreating above request in Postman we see our server returns the following information in about 200ms:
HTTP/1.1 200 status: 200 Date: Mon, 15 Apr 2019 06:28:39 GMT Server: Apache/2 X-Powered-By: PHP/7.2.14 X-Hook-Secret: 5a2ee55dea34b27b627bc97a5ae943a5 Cache-Control: no-cache, private Upgrade: h2,h2c Connection: Upgrade, Keep-Alive Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Content-Length: 24 Keep-Alive: timeout=2, max=100 Content-Type: application/json
Initial request response
However, when receiving the response of the initial request, Asana returns following error:
HTTP/1.1 400 The remote server did not respond within 10000 milliseconds.
Of course I cannot replicate a request of Asana to our webserver but it seems odd that Asana does not receive a response within 10000 milliseconds when I receive one in 200.