[error] 5248#5248: *4905 [lua] server.lua:76: func(): .../deps/share/lua/5.1/orange/orange/plugins/common_api.lua:513: attempt to index local 'selector' (a nil value)
stack traceback:
/usr/local/lor/lor/lib/router/router.lua:204: in function '__newindex'
.../deps/share/lua/5.1/orange/orange/plugins/common_api.lua:513: in function 'func'
/usr/local/lor/lor/lib/router/router.lua:192: in function </usr/local/lor/lor/lib/router/router.lua:191>
[C]: in function 'xpcall'
/usr/local/lor/lor/lib/router/router.lua:191: in function 'func'
/usr/local/lor/lor/lib/router/router.lua:192: in function </usr/local/lor/lor/lib/router/router.lua:191>
[C]: in function 'xpcall'
/usr/local/lor/lor/lib/router/router.lua:191: in function 'next'
/usr/local/lor/lor/lib/router/router.lua:213: in function 'handle'
/usr/local/lor/lor/lib/application.lua:95: in function </usr/local/lor/lor/lib/application.lua:94>
[C]: in function 'xpcall'
/usr/local/lor/lor/lib/application.lua:94: in function 'handle'
/usr/local/lor/lor/lib/application.lua:54: in function 'run'
content_by_lua(nginx.conf:154):3: in main chunk, client: 10.254.111.40, server: , request: "POST /waf/selectors HTTP/1.1", host: "127.0.0.1:7777"
使用的Orange版本
v0.8.1
需求或场景
使用 api 添加 waf selector
使用的插件
无,涉及waf
具体的配置
期望的结果
期望能够创建成功 selector
错误的结果
api_error.log 如下: