Wrike Secure Webhooks registration issue
Hello!
I've implemented webhook automatic registration in our application but at one moment it was broken. It happened because I check the body content-length is 0 to detect that is exactly a registration request and then send a handshake response. Suddenly one day the body of the request becomes different from the empty and contains string `{"requestType": "WebHook secret verification"}`. There are a few problems with this request. The first one is the request is not like an array as typically Wrike-event payload. Besides, it is not a good way to analyze the body per request every time to detect that registration is needed.
I suggest you send RequestType in headers, it will help to eliminate rereading the body-stream a few times per request.
Hi Alexander Salamatov,
I can see that you were talking to our Support team about this. If you need anything else, be sure to let me know!
Hi Hugh!
I've never had a big problem with this topic, I just find the current implementation a little strange, that's it 🙂
Thank you for your attention anyway!