I’m making a web request that returns JSON and I’m passing it to json.decode(). How do I handle instances where I get an http error response (like a 503, etc which is HTML)?
Currently it just spits out:
: Lua Runtime Error: lua_pcall failed with status: 2, error message is: Invalid input: '
The documentation doesn’t specify any sort of return value for error conditions like invalid input.
[import]uid: 8692 topic_id: 14900 reply_id: 314900[/import]