My backend is build on Google App Engine…App engine runs locally (on my mac) at port 8080
App engine won’t easily bind to port 80
But I can (and have) forwarded all port 80 traffic to 8080
I have tested the forwarding from both the browser and terminal
Even inside the corona simulator, network.setStatusListener tells me “true” (meaning the server address [hostmac.com] is reachable)
However, whenever I try to make network.request (from inside corona simulator) to the server, I get:
Corona Simulator[57220:507] recent net-reachability status for “hostmac.com” was true
Corona Simulator[57220:507] ERROR: Error during request, code: -1002, details: unsupported URL
Corona Simulator[57220:507] Network error occured in original WS call! nil
Corona Simulator[57220:507] table: 0x7fad2d76dbf0 {
[“phase”]=“ended”
[“bytesTransferred”]=0
[“name”]=“networkRequest”
[“isError”]=true
[“status”]=-1
[“url”]=“hostmac.com/user/create”
[“bytesEstimated”]=0
[“requestId”]=userdata: 0x7fad2d73f978}
All but one (#2) of the above error messages are my own debugging output.
That final table is the event-record received by my listener/callback function passed to network.request
Can anyone tell me whats going wrong here??
As a final note, if network.request DOES NOT allow you to override the port (other than 80) in the URL, that should be noted in the docs and its not. I suspected that was the problem and went to all this trouble to forward port 80 and I’m pretty frustrated that it’s still not working