Is this a known issue with makeWebRequest?
When I include an integer value in the dictionary in the parameters field works fine in the simulator but, on the device, fails with response -201 (INVALID_HTTP_BODY_IN_REQUEST).
It's fine with the integer formatted as a string (format("%d")) like:
var params = {
...
,"accessDate"=> accessDate.format("%d")
...
};
var headers = {
"Content-Type" => Comm.REQUEST_CONTENT_TYPE_JSON,
"Accept" => "application/json"
};
Comm.makeWebRequest(
url,
params,
{ :headers => headers,
:method => Comm.HTTP_REQUEST_METHOD_POST,
:responseType => Comm.HTTP_RESPONSE_CONTENT_TYPE_JSON
},
method(:registerAppStartCallback)
) ;
The error occurs with the above code except:
...
,"accessDate"=> accessDate
...
when accessDate is a Long like accessDate=>1546485736000. ( Also when it's a number)
Sim 2.4.1 Mac Mojave
Device VA-HR S/W 5.00
iPhone 6 iOS 12.1.2
Connect 4.13.2.1