-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
bug: runtime error: /usr/local/openresty/lualib/resty/core/request.lua:116: bad argument #1 to 'lower' (string expected, got nil) #7276
Comments
@hongbinhsu Hi, what are the route and upstream configurations to match your request? |
upstream configurations:IP:8080/page/layout?name=home_v1&platform=app route configurations: |
Could you just show the specific APISIX Route and Upstream objects? |
Same configuration,use version 2.12.1 is success,when upgraded to 2.13.0 2.13.1 2.14.0 Wait a minute, I'm trying to use more versions |
can you show the full function stacks? |
The test cases I tried to reproduce
it works well. |
I ran into a similar problem with this PR #6502 The following configuration can reproduce this problem
{
"uri": "/*",
"plugins": {
"key-auth": {
"disable": false
}
},
"upstream": {
"nodes": [
{
"host": "127.0.0.1",
"port": 9080,
"weight": 1
}
],
"type": "roundrobin",
"scheme": "http",
"pass_host": "pass",
},
"status": 1
}
|
@hongbinhsu Is your route associated with consumer, and consumer has more than one plug-in |
Which version of APISIX are you using? Can reproduce it on the latest version of APISIX? |
I am using apisix 2.13.2, 2.13.* can be reproduced Version 2.14.* Not tested yet |
I confirmed this as a bug on the master branch, thanks for the report and research. I will fix it soon. |
Current Behavior
When use docker apache/apisix:2.13.1-alpine or apache/apisix:2.14.1-alpine
"GET /test/api/data/page/layout?name=home_v1&platform=app"
请求时报
[error] 46#46: *8041 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/resty/core/request.lua:116: bad argument #1 to 'lower' (string expected, got nil)
use docker apache/apisix:2.12.1-alpine 版本正常
Expected Behavior
No response
Error Logs
No response
Steps to Reproduce
[error] 46#46: *8041 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/resty/core/request.lua:116: bad argument change: added doc of how to load plugin. #1 to 'lower' (string expected, got nil)
Environment
apisix version
): apache/apisix:2.13.1-alpine or apache/apisix:2.14.1-alpineuname -a
): centos 7openresty -V
ornginx -V
): /curl http://127.0.0.1:9090/v1/server_info
): bitnami/etcd:latestluarocks --version
): /The text was updated successfully, but these errors were encountered: