balena-io-modules / balena-procbots

Process bots used for automating the development and deployment CI pipeline
https://balena-io-modules.github.io/balena-procbots/
Apache License 2.0
7 stars 3 forks source link

Print error response on Flowdock API errors #628

Closed lekkas closed 5 years ago

lekkas commented 5 years ago

This is to help debugging errors with the Flowdock API, because at the moment the only info we get is messages like:

Error in Flowdock service. Error - Received status 400

The flowdock API returns a more descriptive message even on errors, e.g.

"{"message":"Validation error","errors":{"content":["is too long(maximum length is 8096 characters)"]}}"

and that will help us narrow down which requests are malformed and why.

Change-type: patch Singed-off-by: Kostas Lekkas kostas@balena.io