I was playing around with the Webhook and I wanted to configure the call asynchronous. It didn't work as expected. After analyzing, I found that there is a little mistake in the DoProcess() method of class SendWebRequest:
In line 113 the Error case of the recieved answer is not handled with a throw, it just returns. This behaviour doesn't trigger the HandleError Method from the calling Process Method of AsyncTask. Therefore the request will never been replayed.
My solution:
case WebRequestSender::ENUM_SEND_STATE_ERROR:
throw new Exception('Failed: '.implode(', ', $aIssues));
Hello, thank you for reporting this problem and for proposing your solution :D
I've created an internal bug (n°8856).
If you find other issues, feel free to perform pull request(s) on our GitHub repositories :)