Just a quickie, as any (ex)Corona user will know trying to get decent support through their forums is a nightmare and as we seem to have lot's of (ex)Corona users on "the worlds most friendly and helpful forum"(tm) I thought I'd ask here as well.
For my sins, I'm still providing support on a Corona contract I did a while back. At some stage in the app it makes a network.request() call using a standard http GET request.
params = {}
params.timeout = 90
network.request(url, "GET", callback,params) |
Occasionally (and only using 3G never WiFi) the request will fail. This is picked up and dealt with correctly in the callback, by checking the "event" parameter .isError field.
When it does fail I wanted to check the error status code by checking event.status however instead of getting a http status error code, status always appears to be nil so I have no clue as to what generated the error.
Could anyone with Corona network coding experience give me a clue as too what's going on?
Cheers
WhiteTree Games - Home, home on the web, where the bits and bytes they do play!
#MakeABetterGame! "Never give up, Never
NEVER give up!" -
Winston Churchill
Comments
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
I was just wondering under what conditions event.status could be nil, I was expecting it to have a http status code.
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
Totally cool with us.
Cheers!
Likes: techdojo
Likes: deniz
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
@r2d2buzzsaw @ar2rsawseen - Actually I tried to reject your answer! How much did @hgvyas123 pay you to get me thrown out, just so's he can try and claim my star ???
@OZApp's - Kinda agree - sortof, I took on a job a while back BEFORE I found Gideros, which is why Corona was used and has to continue being used (there's no way I could ask the client to pay to have the whole app ported to Gideros and then ask him to shell out for a licence as well). I've asked in the Corona forums before and IF you get a reply generally (with some exceptions) they are nowhere near as helpful (or as quick) as my friends here >:D< and as we do tend to attract a lot of ex-Corona guys I thought I'd take a "punt".
You can take it as read that any new / future work will be based around Gideros, NOT Corona!
WHAT THE HECK, I'LL ACCEPT EVERY ANSWER - IT'S CHRISTMAS, LET'S ENJOY THE PARTY!!!!
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
@hgvyas123 sorry no refunds
@hgvyas123 - better luck next time, I'll be taking a week off over Christmas so you might be able to narrow the lead then!
Likes: ar2rsawseen
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
Likes: hgvyas123
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
@techdojo
now may be you need to afraid from me you can not see ur star or even ur name in the top poster :-q
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
oh sorry :- ok forgiven
kinda dropped off to sleep then whilst you were rambling :- ya i can understand every one need sleep especially when his loving star is in danger
was I supposed to be afraid :- of course dude you are in danger
sorry I'll try harder to pay more attention next time :- ohhh no need to say sorry again already forgiven
Likes: hgvyas123
A lifetime working in the computer industry will do that to you
Besides, I'm mot crazy, I'm InSAne )
Website: http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive