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.

0
2 comentarios
Spot On Innovative Approach Stellar Advice
Avatar
Hugh

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!

0
Acciones de comentarios Permalink
Spot On Innovative Approach Stellar Advice
Avatar

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!

0
Acciones de comentarios Permalink

Folllowing List for Post: Wrike Secure Webhooks registration issue
[this list is visible for admins and agents only]

Didn’t find what you were looking for? Write new post