Skip to content

request help: vars_combinations can not work #3518

@pioneer-hash

Description

@pioneer-hash

Issue description

Upstream combination vars_combinations are selected for the upstream configuration this is my configuration :
{
"id" : "161190602766647283",
"desc" : "prod-tour",
"nodes" : {
"172.18.234.22:8888" : 1,
"172.18.234.22:7777" : 1
},
"type" : "chash",
"hash_on" : "vars_combinations",
"key" : "request_uri",
"checks" : {
"active" : {
"http_path" : "/",
"healthy" : {
"interval" : 10
},
"unhealthy" : {
"interval" : 10
}
}
}
start is ok,but when I access route go wrong,this is error info
2021/02/04 15:28:30 [error] 8611#8611: *46068 lua entry thread aborted: runtime error: /mios/ispthird/openresty/anhui-master-3.1.0//lua/nginx.lua:333: attempt to index local 'upstream' (a nil value)
stack traceback:
coroutine 0:
/mios/ispthird/openresty/anhui-master-3.1.0//lua/nginx.lua: in function 'fun_org'
...pthird/openresty/anhui-master-3.1.0//lua/nginx/debug.lua:127: in function 'http_access_phase'
access_by_lua(nginx.conf:147):2: in main chunk, client: 172.20.80.39, server: nginx, request: "GET /tour/test.html HTTP/1.1", host: "172.18.234.22:23111"

Environment

  • apisix version (cmd: apisix version):
  • OS (cmd: uname -a):
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API):
  • apisix-dashboard version, if have:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions