Handle error responses from HTTP requests
Error responses from HTTP requests (using ixsl:schedule-action/@http-request) are not properly handled, i.e. when http.status >= 400.
Currently we get a crash:
Uncaught TypeError: Cannot read property 'split' of null at XMLHttpRequest.http.onreadystatechange
#1 Updated by Debbie Lockett 6 months ago
- Status changed from New to Resolved
- Fix Committed on JS Branch 1.0, Trunk added
Handle http.status >= 400 better in makeHttpRequestJS. Add this condition to the block of processing already dependant on !request["status-only"]. In this case, the HTTP response map will have entries for status, message, and headers, but no body.
Fix committed on 1.0 and trunk branches.
Please register to edit this issue