WilliamVenner / gmsv_reqwest

🌐 Drop-in HTTP replacement module for Garry's Mod
MIT License
66 stars 6 forks source link

The server crashes during loading of the addon that uses the example function #8

Open TedBarbier opened 3 months ago

TedBarbier commented 3 months ago

while trying the function I tried this code

require("reqwest")

local success, status, body, headers = reqwest({ blocking = true, -- note this!

url = "https://google.com",

-- callbacks will still be called for blocking requests
success = function(status, body, headers) PrintTable({status, body, headers}) end,
failed = function(err, errExt) PrintTable({err, errExt}) end

}) if success then print("HTTP " .. status) PrintTable(headers) print(body) else local err, errExt = status, body -- In this case, status will be the "error message" that Garry's Mod provides (typically always "unsuccessful") -- and body will be a custom error message from reqwest which actually describes what the error was. print("Error: " .. err .. " (" .. errExt .. ")") end

the server crashes during addon loading only when this file is loaded.

the only error code i have is [Pterodactyl Daemon]: Exit code: 139

WilliamVenner commented 3 months ago

I couldn't reproduce the problem on Linux 32-bit or Windows 64-bit.

Can you tell me what platform you are using and what host?

Also, if you can get a crash dump, that might be useful.