Edited 3 years ago by ingurgite
Hi,
I am trying to fetch an image from the Web: https://s3.amazonaws.com/marquee-test-akiaisur2rgicbmpehea/2cGnbrJxQCyeguL6vvRo_Engine%20to%20Increase%20Product-Market%20Fit.jpg
With HTTPRequest, I get an error from the Runtime (see attached).
I don't see:
1) Why there is an error as the URL is correct
2) Why the error is generated at the runtime level; even if the URL was ill formed, it should trigger the onError() callback
My code:
var _header = "https://s3.amazonaws.com/marquee-test-akiaisur2rgicbmpehea/2cGnbrJxQCyeguL6vvRo_Engine%20to%20Increase%20Product-Market%20Fit.jpg" var _request = HTTPRequest(_header) _request.responseSerializerType = HTTPResponseSerializer.Data _request.timeoutInterval = 120 _request.redirectMode = HTTPRedirectMode.Allow func _onSuccess(request, value) { Console.write("OK") } func _onError(request, error) { Console.write("ERROR") } _request.send(_onSuccess, _onError)
Thanks a lot.