Error Response NetWorkListener

Hi,

when I do a             network.request( url, “POST”, networkListener,  params)

and I get an Error, the response from my

            local function networkListener ( event )

event.isError =  true

event.status    = -1

event.response = nil

BUT from Corona in the Console I get a more detailed Info like

ERROR: Error during request, code: -1009, details: The Internet connection appears to be offline.

Why I do not get the same Response Message within my NetWorkListener??

(i could use to show my users)

Thanks

Chris

When do you get this message?
 

ERROR: Error during request, code: -1009, details: The Internet connection appears to be offline.

In my app i would connect to my server to send a file via network.request( url, “POST”, networkListener,  params)

when i test it in my simulator on osx and just disable my Wifi, i have above behavior,

that i got in the console a detailed info, but in the networklistener only that simple -1

Well the simulator uses OS-X calls to do it’s work, where the device uses iOS calls and the return results are likely different.

Rob

When do you get this message?
 

ERROR: Error during request, code: -1009, details: The Internet connection appears to be offline.

In my app i would connect to my server to send a file via network.request( url, “POST”, networkListener,  params)

when i test it in my simulator on osx and just disable my Wifi, i have above behavior,

that i got in the console a detailed info, but in the networklistener only that simple -1

Well the simulator uses OS-X calls to do it’s work, where the device uses iOS calls and the return results are likely different.

Rob