openresty / openresty/lua-resty-websocket
Compilation errors while running sample programs https://github.com/openresty/lua-resty-websocket
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 523
- Forks
- 112
- Avg merge
- 1d 16m
- Merged PRs (30d)
- 2
Description
Hi,
I am new to Openresty and Lua programming.
I have installed openresty-1.15.8.3 and dependent libraries pcre-8.40, openssl-1.0.2k, zlib-1.2.11 successfully in Centos7.
I am trying to run server and client programs in the link https://github.com/openresty/lua-resty-websocket but I am getting compilation errors. Could you please let me know what I am missing here.
PFA the programs ida_client.lua and ida_server.lua.
Errors::
[root@IDA openresty-1.15.8.3]# resty ida_client.lua
ERROR: ida_client.lua:3: API disabled in the current context
stack traceback:
/usr/local/openresty/lualib/resty/core/var.lua:73: in function '__index'
ida_client.lua:3: in function 'file_gen'
init_worker_by_lua:45: in function <init_worker_by_lua:43>
[C]: in function 'xpcall'
init_worker_by_lua:52: in function <init_worker_by_lua:50>
[root@IDA openresty-1.15.8.3]#
[root@IDA openresty-1.15.8.3]#
[root@IDA openresty-1.15.8.3]#
[root@IDA openresty-1.15.8.3]# resty ida_server.lua
ERROR: /usr/local/openresty/lualib/resty/websocket/server.lua:36: API disabled in the current context
stack traceback:
/usr/local/openresty/lualib/resty/core/misc.lua:166: in function '__index'
/usr/local/openresty/lualib/resty/websocket/server.lua:36: in function 'new'
ida_server.lua:3: in function 'file_gen'
init_worker_by_lua:45: in function <init_worker_by_lua:43>
[C]: in function 'xpcall'
init_worker_by_lua:52: in function <init_worker_by_lua:50>
[root@IDA openresty-1.15.8.3]#
Thanks,
Rajasekhar
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the attached ida_client.lua and ida_server.lua files, then trace the reported calls through resty/core/var.lua and resty/websocket/server.lua. Reproduce the commands in the issue and determine the supported execution context; done means the sample programs run successfully or the repository documents the required setup and limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100