githubxubin commented on issue #8908:
URL: https://github.com/apache/apisix/issues/8908#issuecomment-1439682586
> Can you share your config here? Mabe your configuration is wrong.
1.first one: the plugin config is :
{
"disable": false,
"uri": "/apisix/plugin/jwt/sign"
}
2.the route config is :
{
"uri": "/test1/*",
"name": "xubin_01",
"desc": "xubin_01",
"methods": [
"GET",
"POST",
"PUT",
"DELETE",
"PATCH",
"HEAD",
"OPTIONS",
"CONNECT",
"TRACE"
],
"plugins": {
"proxy-rewrite": {
"regex_uri": [
"^/test1(/|$)(.*)",
"/$2"
]
}
},
"upstream": {
"nodes": [
{
"host": "10.210.21.123",
"port": 80,
"weight": 1
}
],
"retries": 2,
"timeout": {
"connect": 6,
"send": 6,
"read": 6
},
"type": "roundrobin",
"scheme": "http",
"pass_host": "pass",
"keepalive_pool": {
"idle_timeout": 60,
"requests": 1000,
"size": 320
},
"retry_timeout": 2
},
"labels": {
"API_VERSION": "v1.0"
},
"status": 1
}
and it return 400 Bad Request;
the error log is:
#48: *1490106 [lua] balancer.lua:349: run(): proxy retry timeout, retry
count: 0, deadline: 1677057988.934 now: 1677057993.935 while connecting to
upstream, client: 192.168.88.66, server: _, request: "GET
/js/login/thirdlogin.js HTTP/1.1", upstream:
"http://12.12.12.12:1/js/login/thirdlogin.js", host: "10.210.21.110:9080",
referrer: "http://10.210.21.110:9080/test1/"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]