I’m trying to make an forecast app based on wunderground data. It works fine in the simulator but when I run it on fenix 5x it returns INVALID_HTTP_BODY_IN_NETWORK_RESPONSE error (-400). I have no idea where could be a problem... Any help will be much appreciated :)
Here is a portion of code:
var options = {
:method => Comm.HTTP_REQUEST_METHOD_GET,
:headers => {
"Content-Type" => Comm.REQUEST_CONTENT_TYPE_JSON
},
:responseType => Comm.HTTP_RESPONSE_CONTENT_TYPE_JSON
};
var params = {
};
var url = "api.wunderground.com/.../myAPIkey/forecast/q/pws:KKSOLATH93.json";
Comm.makeWebRequest(url, params, options, method(:onReceive));