local function networkListener( event ) if ( event.isError ) then print( "error") else print ( "RESPONSE: " .. event.response ) end end local headers = {} headers["X-Parse-Application-Id"] = "my key here" headers["X-Parse-REST-API-Key"] = "my key2 here" headers["Content-Type"] = "application/json" local params = {} params.headers = headers network.request( "https://api.parse.com/1/config", "GET", networkListener, params )
Corona team, please try this code on some Windows Phone (using CoronaCards).
It will give you this:
A request with this method cannot have a request body.
And the event table looks like this:
table: 095D3C08 {
[name] => “networkRequest”
[isError] => true
[bytesTransferred] => 0
[phase] => “ended”
[url] => "https://api.parse.com/1/config"
[bytesEstimated] => 0
[requestId] => userdata: 00000008
}
You don’t need to create an app on Parse, because I get the same error even if I do not provide the right keys. Obviously, the error triggers before it gets to Parse verification.
I have tried some network.request without custom headers and that works.
Hopefully, this is enough info to help you find the bug.