httprequest on iOS

Monkey Forums/Monkey Bug Reports/httprequest on iOS

nigelibrown(Posted 2014) [#1]
If I make a POST request to my server and it returns status 204 'No Content' the very next httprequest I make crashes IOS with a libc++abi.dylib: terminating with uncaught exception of type char *const.

It looks almost as if a buffer is not being allocated if result is anything other that 200?

I can forward a small test program if you don't have access to a server that returns values other that 200 'Ok'?


marksibly(Posted 2014) [#2]
A small test program would certainly help a lot - if you can post it here, even better as someone else might pickup the problem.


marksibly(Posted 2014) [#3]
Ok, I modified bananas/mak/httprequest demo and aren't getting a crash.

The testpostserver used by the demo allows you to 'rig' a non-200 return code - code is:




nigelibrown(Posted 2014) [#4]
Mark, thank you for this example. I can confirm it runs correctly on my iPad. When I change the server address back to my own there is still a problem. Thank you again for confirming there is no problem with the monkey side of things!