SyntaxError when the response payload isn't a proper JSON
STR :
- Create alerts/reports
- Email configured
- Manually fetch ops/accounts
- There is an error during alert/report transmission.
Here is the error (client) :
Object { code: null, message: "JSON.parse: unexpected character at line 1 column 1 of the JSON data", shortMessage: "SyntaxError" }
main.js:586:17
A request has failed with the following information:
- code: null
- short message: SyntaxError
- stack: no stack
- message: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- stringified: {"code":null,"message":"JSON.parse: unexpected character at line 1 column 1 of the JSON data","shortMessage":"SyntaxError"}
In the server log: error - alert-manager | Error when checking alerts for accounts: Error: Connection timeout
Edited by Benjamin Bouvier