New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simple_request.lua from examples fails when response is json #82
Comments
|
I was able to hit that url without issue: simple_request.lua explicitly calls Could you try and narrow it down for me? |
|
Thank you for your help. It looks that the issue is platform specific. I'll try to debug through lua-http and get back with results. |
|
The issue comes from lua interpreting number ranges in I tried this test http://lua-users.org/wiki/IntegerDomain |
That lua behaviour is not compliant to the lua manual, such behaviour is sure to break plenty of lua code! However, a similar issue I've realised might exist is lua 5.3 compiled with |
The literal 0x80000000 might have overflowed in lua 5.3 if lua was compiled with `-DLUA_INT_TYPE=LUA_INT_INT`. Related to #82
|
Tested with your commit and it works fine now. Feel free to close the issue. |
|
@kcsoft did you mean to reopen? |
|
All good, closing. |
when running:
lua simple_reuqest.lua https://jsonplaceholder.typicode.com/posts/1
getting an error when reading the response body:
lua: (error object is not a string)
For text/html responses I'm getting the response just fine.
I'm testing this on openwrt x86 15.05, lua-http v0.2.
The text was updated successfully, but these errors were encountered: