Using HTTP lua library on linux server causing issues
1 replies, posted
When running the code below
[CODE]local function onHttpSuccess(code, body, headers)
print(code)
print(body)
end
local function makeRequest()
HTTP({
url="localhost:1337",
body="Hello",
success=onHttpSuccess
})
makeRequest()
end[/CODE]
I get the following error in the terminal:
[CODE]httpclient.cpp (2442) : Assertion Failed: pHost && *pHost
Assert( Assertion Failed: pHost && *pHost ):httpclient.cpp:2442
assert_20170511202510_12.dmp[25670]: Uploading dump (out-of-process)
/tmp/dumps/assert_20170511202510_12.dmp
assert_20170511202510_12.dmp[25670]: Finished uploading minidump (out-of-process): success = yes
assert_20170511202510_12.dmp[25670]: response: Discarded=1
assert_20170511202510_12.dmp[25670]: file ''/tmp/dumps/assert_20170511202510_12.dmp'', upload yes: ''Discarded=1''[/CODE]
I am running a dedicated server on a 64 bit ubuntu machine, I had to install 32 bit curl to solve a previous error if that is any clue.
Thankyou for any help!
Report it here: [url]https://github.com/Facepunch/garrysmod-issues[/url]
Sorry, you need to Log In to post a reply to this thread.