Skip to content

attempt to yield across C-call boundary in function 'require' with Openresty #78

Closed
@Blasterdick

Description

@Blasterdick

With uncommented line:

local http_request = require("http.request")

I'm seeing this error, while line:

local http_headers = require("http.headers")

doesn't lead to it.

I'm using docker openresty:alpine inage, lua-http installed with luarocks5.1.

lua_package_path "/usr/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?.lua;;";

Path to a /usr/local/share/lua/5.1/http/ provided with a symlink.

bash-4.3# ls -l /usr/local/share/lua/5.1/
total 56
-rw-r--r--    1 root     root          9559 Jul  5 11:07 basexx.lua
drwxr-xr-x    2 root     root          4096 Jul  5 11:06 compat53
drwxr-xr-x    3 root     root          4096 Jul  5 11:07 cqueues
-rw-r--r--    1 root     root          4105 Jul  5 11:07 cqueues.lua
-rw-r--r--    1 root     root          2097 Jul  5 11:07 fifo.lua
lrwxrwxrwx    1 root     root            41 Jul  5 11:07 http -> /usr/local/share/lua/5.1/http_0_2_0-http/
drwxr-xr-x    3 root     root          4096 Jul  5 11:07 http_0_2_0-http
drwxr-xr-x    2 root     root          4096 Jul  5 11:07 lpeg_patterns
drwxr-xr-x    4 root     root          4096 Jul  5 11:07 openssl
-rw-r--r--    1 root     root            25 Jul  5 11:07 openssl.lua
-rw-r--r--    1 root     root          6286 Jul  5 11:07 re.lua

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions