Good day.
In general, many API services return a response when there's an error sending or processing data; that response often contains a JSON object with useful error details. However, it looks like Dialog.HTTPRequest when it receives an error status code, doesn't return the response body, both ReadResponse and ReadResponseData are "0". Is there a way to retrieve those error details?
Thanks.
just dabbling here, know hardly anything about http, but using ActiveXObject might help,
it uses a synchronous HTTP request (Opus uses an async HTTP request)
EDITED:
var http = new ActiveXObject('WinHttp.WinHttpRequest.5.1');
var json = JSON.parse(http.ResponseText);
In the next beta we'll make it still return the response data even if an error occurs.
1 Like
