From the method of a makeWebRequest in the Simulator for a Venu2.
Background: 15:35:29 : Requesting vehicle data from temporalEvent
Background: 15:35:30 : onReceiveVehicleData: 200
Background: 15:35:30 : Total memory: 61408 Used memory: 32008 Free memory: 29400
Background: 15:35:30 : onReceiveVehicleData: Reading as a string
This is the same thing from my Venu2
16:45:58 : Requesting vehicle data from temporalEvent
16:46:03 : onReceiveVehicleData: -403
16:46:03 : Total memory: 61416 Used memory: 25328 Free memory: 36088
And I'm reading the data as plain text because of that 403 and yet, it still creates 403??? The data received is a string of 6.5KB! And if it would have read correctly, it would have dropped the free space to around 29500, just like in the simulator. So why that 403?
This is the makeWebRequest call
function makeTeslaPlainWebRequest(url, params, callback) { var options = { :method => Comms.HTTP_REQUEST_METHOD_GET, :headers => { "Authorization" => _accessToken }, :responseType => Comms.HTTP_RESPONSE_CONTENT_TYPE_TEXT_PLAIN }; Comms.makeWebRequest(url, params, options, callback); }
Why is it doing that? I don't understand. What am I doing wrong here?