-
Notifications
You must be signed in to change notification settings - Fork 429
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
https error #1360
Labels
Comments
I believe this was an issue with luasec and Lua 5.4. Upgrading LuaSec to 1.0.2 should work. Feel free to reopen if the problem persists with the latest LuaSec. |
@hishamhm, was it really fixed in $ dpkg -l | grep lua-sec | awk '{print $2" | "$3}'
lua-sec:amd64 | 1.0.2-1 $ grep PRETTY /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS" $ luarocks-5.4 --local install jsonschema
Error: LuaRocks 3.8.0 bug (please report at https://github.com/luarocks/luarocks/issues).
Arch.: linux-x86_64
/usr/share/lua/5.4/ssl/https.lua:66: bad argument #2 to 'method' (string expected, got light userdata)
stack traceback:
[C]: in function 'socket.http.request'
/usr/share/lua/5.4/ssl/https.lua:132: in function 'ssl.https.request'
/usr/share/lua/5.4/luarocks/fs/lua.lua:729: in upvalue 'request'
/usr/share/lua/5.4/luarocks/fs/lua.lua:837: in upvalue 'http_request'
/usr/share/lua/5.4/luarocks/fs/lua.lua:904: in function 'luarocks.fs.lua.download'
(...tail calls...)
/usr/share/lua/5.4/luarocks/fetch.lua:154: in function 'luarocks.fetch.fetch_url'
/usr/share/lua/5.4/luarocks/fetch.lua:50: in function 'luarocks.fetch.fetch_caching'
/usr/share/lua/5.4/luarocks/manif.lua:108: in function 'luarocks.manif.load_manifest'
/usr/share/lua/5.4/luarocks/search.lua:111: in function </usr/share/lua/5.4/luarocks/search.lua:101>
(...tail calls...)
/usr/share/lua/5.4/luarocks/search.lua:155: in function 'luarocks.search.search_repos'
/usr/share/lua/5.4/luarocks/search.lua:241: in function 'luarocks.search.find_suitable_rock'
/usr/share/lua/5.4/luarocks/search.lua:263: in function 'luarocks.search.find_rock_checking_lua_versions'
/usr/share/lua/5.4/luarocks/cmd/install.lua:242: in function 'luarocks.cmd.install.command'
(...tail calls...)
[C]: in function 'xpcall'
/usr/share/lua/5.4/luarocks/cmd.lua:666: in function 'luarocks.cmd.run_command'
/usr/bin/luarocks:35: in main chunk
[C]: in ? |
@filipmnowak I don't know for sure, but luasec is currently at 1.2.0. I just enabled the latest luasec in our test suite, and it looks like things are working: #1434 |
hishamhm
added a commit
that referenced
this issue
Feb 28, 2024
hishamhm
added a commit
that referenced
this issue
Feb 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Platform:
LuaRocks version:
luarocks --version
3.7Unable to download package
The text was updated successfully, but these errors were encountered: