luvit / luvit

Lua + libUV + jIT = pure awesomesauce

Home Page:https://luvit.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught Error: [string "bundle:/deps/net.lua"]:139: attempt to call local 'callback' (a string value)

Devieth opened this issue · comments

Not exactly sure what is causing this error. I believe it is when I make a http get/post request (while running an https server) but there is no reply because the external server is down or not responding? Sorry I do not have more details.

Uncaught Error: [string "bundle:/deps/net.lua"]:139: attempt to call local 'callback' (a string value)
stack traceback:
        [string "bundle:/deps/net.lua"]:139: in function <[string "bundle:/deps/net.lua"]:137>
        [C]: in function 'run'
        [string "bundle:/init.lua"]:55: in function <[string "bundle:/init.lua"]:47>
        [C]: in function 'xpcall'
        [string "bundle:/init.lua"]:47: in function 'fn'
        [string "bundle:deps/require.lua"]:310: in function <[string "bundle:deps/require.lua"]:266>

To me this looks impossible to debug without any more code or info about the repro-case. Are you using weblit, net sockets or the http library?

Solution is to just use a proper timeout when making a request, sorry should have came back and close this. Thank you anyway.