You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/04 07:25:43 UTC
[GitHub] [apisix] zhangxiaohui123456 opened a new issue #3518: request help: vars_combinations can not work
zhangxiaohui123456 opened a new issue #3518:
URL: https://github.com/apache/apisix/issues/3518
### Issue description
Upstream combination vars_combinations are selected for the upstream configuration this is my configuration :
### 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:
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773143858
You need to provide the installation method and version information of apisix. It is best to have a minimum reproduction step.
> > > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > > ```
> > > > > $ curl http://127.0.0.1:9080/hello -i
> > > > > HTTP/1.1 500 Internal Server Error
> > > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > > Content-Type: text/html; charset=utf-8
> > > > > Content-Length: 154
> > > > > Connection: keep-alive
> > > > > Server: APISIX/2.2
> > > > > X-APISIX-Upstream-Status: 500, 500
> > > > > ......
> > > > > ```
> > > > >
> > > > >
> > > > > This helps us troubleshoot the issue.
> > > >
> > > >
> > > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > > ```
> > > > > $ curl http://127.0.0.1:9080/hello -i
> > > > > HTTP/1.1 500 Internal Server Error
> > > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > > Content-Type: text/html; charset=utf-8
> > > > > Content-Length: 154
> > > > > Connection: keep-alive
> > > > > Server: APISIX/2.2
> > > > > X-APISIX-Upstream-Status: 500, 500
> > > > > ......
> > > > > ```
> > > > >
> > > > >
> > > > > This helps us troubleshoot the issue.
> > > > > curl http://172.18.234.22:23111/tour/test.html -i
> > > > > log is :
> > > > > HTTP/1.1 500 Internal Server Error
> > > > > Date: Thu, 04 Feb 2021 07:51:51 GMT
> > > > > Content-Type: text/html; charset=utf-8
> > > > > Content-Length: 1502
> > > > > Connection: close
> > > > > X-XSS-Protection: 1; mode=block
> > > > > X-Content-Type-Options: nosniff
> > > > > Referrer-Policy: no-referrer-when-downgrade
> > > > > Strict-Transport-Security: max-age=31536000; includeSubdomains
> > > > > Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline'
> > > > > Cache-Control: no-cache, no-store, max-age=0, must-revalidate
> > > > > Pragma: no-cache
> > > > > Expires: 0
> > >
> > >
> > > Why is there no response header information for `Server: APISIX/2.2` ?
>
> I set up apisix-2.1 In my machine and I use configuration
> {"hash_on":"vars","enable_websocket":false,"timeout":{"connect":15,"send":15,"read":15},"type":"chash","hash_on" : "vars_combinations","key" : "$request_uri$remote_addr","retries":3,"desc":"photo-api","id":"photo-api-upstream","name":"photo-api","nodes":{"192.168.17.14:23095":8,"192.168.17.14:23096":8}} , error info is change :
> HTTP/1.1 500 Internal Server Error
> Date: Thu, 04 Feb 2021 08:44:16 GMT
> Content-Type: text/html; charset=utf-8
> Content-Length: 174
> Connection: close
> Server: APISIX/2.1
>
> Please check this error again
What is your apisix version? Is it 2.1?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] nanamikon commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
nanamikon commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773818944
Refer to https://github.com/apache/apisix/issues/3261 and https://github.com/apache/apisix/releases/tag/2.2
I think 2.2 does not support vars_combinations , master branch may be you choice
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhangxiaohui123456 commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773108535
> These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
>
> ```
> $ curl http://127.0.0.1:9080/hello -i
> HTTP/1.1 500 Internal Server Error
> Date: Wed, 03 Feb 2021 01:35:00 GMT
> Content-Type: text/html; charset=utf-8
> Content-Length: 154
> Connection: keep-alive
> Server: APISIX/2.2
> X-APISIX-Upstream-Status: 500, 500
> ......
> ```
>
> This helps us troubleshoot the issue.
> These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
>
> ```
> $ curl http://127.0.0.1:9080/hello -i
> HTTP/1.1 500 Internal Server Error
> Date: Wed, 03 Feb 2021 01:35:00 GMT
> Content-Type: text/html; charset=utf-8
> Content-Length: 154
> Connection: keep-alive
> Server: APISIX/2.2
> X-APISIX-Upstream-Status: 500, 500
> ......
> ```
>
> This helps us troubleshoot the issue.
curl http://172.18.234.22:23111/tour/test.html -i
log is :
HTTP/1.1 500 Internal Server Error
Date: Thu, 04 Feb 2021 07:51:51 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 1502
Connection: close
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Referrer-Policy: no-referrer-when-downgrade
Strict-Transport-Security: max-age=31536000; includeSubdomains
Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline'
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhangxiaohui123456 commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773137632
> > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > ```
> > > > $ curl http://127.0.0.1:9080/hello -i
> > > > HTTP/1.1 500 Internal Server Error
> > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > Content-Type: text/html; charset=utf-8
> > > > Content-Length: 154
> > > > Connection: keep-alive
> > > > Server: APISIX/2.2
> > > > X-APISIX-Upstream-Status: 500, 500
> > > > ......
> > > > ```
> > > >
> > > >
> > > > This helps us troubleshoot the issue.
> > >
> > >
> > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > ```
> > > > $ curl http://127.0.0.1:9080/hello -i
> > > > HTTP/1.1 500 Internal Server Error
> > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > Content-Type: text/html; charset=utf-8
> > > > Content-Length: 154
> > > > Connection: keep-alive
> > > > Server: APISIX/2.2
> > > > X-APISIX-Upstream-Status: 500, 500
> > > > ......
> > > > ```
> > > >
> > > >
> > > > This helps us troubleshoot the issue.
> > > > curl http://172.18.234.22:23111/tour/test.html -i
> > > > log is :
> > > > HTTP/1.1 500 Internal Server Error
> > > > Date: Thu, 04 Feb 2021 07:51:51 GMT
> > > > Content-Type: text/html; charset=utf-8
> > > > Content-Length: 1502
> > > > Connection: close
> > > > X-XSS-Protection: 1; mode=block
> > > > X-Content-Type-Options: nosniff
> > > > Referrer-Policy: no-referrer-when-downgrade
> > > > Strict-Transport-Security: max-age=31536000; includeSubdomains
> > > > Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline'
> > > > Cache-Control: no-cache, no-store, max-age=0, must-revalidate
> > > > Pragma: no-cache
> > > > Expires: 0
> >
> >
> > Why is there no response header information for `Server: APISIX/2.2` ?
>
I set up apisix-2.1 In my machine and I use configuration
{"hash_on":"vars","enable_websocket":false,"timeout":{"connect":15,"send":15,"read":15},"type":"chash","hash_on" : "vars_combinations","key" : "$request_uri$remote_addr","retries":3,"desc":"photo-api","id":"photo-api-upstream","name":"photo-api","nodes":{"192.168.17.14:23095":8,"192.168.17.14:23096":8}} , error info is change :
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] nanamikon commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
nanamikon commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773818944
Refer to https://github.com/apache/apisix/issues/3261 and https://github.com/apache/apisix/releases/tag/2.2
I think 2.2 does not support vars_combinations , master branch may be you choice
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhangxiaohui123456 commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773108535
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773123983
> > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > ```
> > $ curl http://127.0.0.1:9080/hello -i
> > HTTP/1.1 500 Internal Server Error
> > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > Content-Type: text/html; charset=utf-8
> > Content-Length: 154
> > Connection: keep-alive
> > Server: APISIX/2.2
> > X-APISIX-Upstream-Status: 500, 500
> > ......
> > ```
> >
> >
> > This helps us troubleshoot the issue.
>
> > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > ```
> > $ curl http://127.0.0.1:9080/hello -i
> > HTTP/1.1 500 Internal Server Error
> > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > Content-Type: text/html; charset=utf-8
> > Content-Length: 154
> > Connection: keep-alive
> > Server: APISIX/2.2
> > X-APISIX-Upstream-Status: 500, 500
> > ......
> > ```
> >
> >
> > This helps us troubleshoot the issue.
> > curl http://172.18.234.22:23111/tour/test.html -i
> > log is :
> > HTTP/1.1 500 Internal Server Error
> > Date: Thu, 04 Feb 2021 07:51:51 GMT
> > Content-Type: text/html; charset=utf-8
> > Content-Length: 1502
> > Connection: close
> > X-XSS-Protection: 1; mode=block
> > X-Content-Type-Options: nosniff
> > Referrer-Policy: no-referrer-when-downgrade
> > Strict-Transport-Security: max-age=31536000; includeSubdomains
> > Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline'
> > Cache-Control: no-cache, no-store, max-age=0, must-revalidate
> > Pragma: no-cache
> > Expires: 0
Why is there no response header information for `Server: APISIX/2.2` ?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773106113
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773106113
These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
```
$ curl http://127.0.0.1:9080/hello -i
HTTP/1.1 500 Internal Server Error
Date: Wed, 03 Feb 2021 01:35:00 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 154
Connection: keep-alive
Server: APISIX/2.2
X-APISIX-Upstream-Status: 500, 500
......
```
This helps us troubleshoot the issue.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhangxiaohui123456 commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773126148
> > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > ```
> > > $ curl http://127.0.0.1:9080/hello -i
> > > HTTP/1.1 500 Internal Server Error
> > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > Content-Type: text/html; charset=utf-8
> > > Content-Length: 154
> > > Connection: keep-alive
> > > Server: APISIX/2.2
> > > X-APISIX-Upstream-Status: 500, 500
> > > ......
> > > ```
> > >
> > >
> > > This helps us troubleshoot the issue.
> >
> >
> > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > ```
> > > $ curl http://127.0.0.1:9080/hello -i
> > > HTTP/1.1 500 Internal Server Error
> > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > Content-Type: text/html; charset=utf-8
> > > Content-Length: 154
> > > Connection: keep-alive
> > > Server: APISIX/2.2
> > > X-APISIX-Upstream-Status: 500, 500
> > > ......
> > > ```
> > >
> > >
> > > This helps us troubleshoot the issue.
> > > curl http://172.18.234.22:23111/tour/test.html -i
> > > log is :
> > > HTTP/1.1 500 Internal Server Error
> > > Date: Thu, 04 Feb 2021 07:51:51 GMT
> > > Content-Type: text/html; charset=utf-8
> > > Content-Length: 1502
> > > Connection: close
> > > X-XSS-Protection: 1; mode=block
> > > X-Content-Type-Options: nosniff
> > > Referrer-Policy: no-referrer-when-downgrade
> > > Strict-Transport-Security: max-age=31536000; includeSubdomains
> > > Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline'
> > > Cache-Control: no-cache, no-store, max-age=0, must-revalidate
> > > Pragma: no-cache
> > > Expires: 0
>
> Why is there no response header information for `Server: APISIX/2.2` ?
I delete that part ,this is a success response log info:
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Content-Length: 231
Connection: keep-alive
Date: Thu, 04 Feb 2021 08:25:22 GMT
X-Frame-Options: sameorigin
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Referrer-Policy: no-referrer-when-downgrade
Strict-Transport-Security: max-age=31536000; includeSubdomains
Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline'
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
I don't think that will matter
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhangxiaohui123456 commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773150062
> > > You need to provide the installation method and version information of apisix. It is best to have a minimum reproduction step.
> > > > > > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > > > > > ```
> > > > > > > > $ curl http://127.0.0.1:9080/hello -i
> > > > > > > > HTTP/1.1 500 Internal Server Error
> > > > > > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > > > > > Content-Type: text/html; charset=utf-8
> > > > > > > > Content-Length: 154
> > > > > > > > Connection: keep-alive
> > > > > > > > Server: APISIX/2.2
> > > > > > > > X-APISIX-Upstream-Status: 500, 500
> > > > > > > > ......
> > > > > > > > ```
> > > > > > > >
> > > > > > > >
> > > > > > > > This helps us troubleshoot the issue.
> > > > > > >
> > > > > > >
> > > > > > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > > > > > ```
> > > > > > > > $ curl http://127.0.0.1:9080/hello -i
> > > > > > > > HTTP/1.1 500 Internal Server Error
> > > > > > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > > > > > Content-Type: text/html; charset=utf-8
> > > > > > > > Content-Length: 154
> > > > > > > > Connection: keep-alive
> > > > > > > > Server: APISIX/2.2
> > > > > > > > X-APISIX-Upstream-Status: 500, 500
> > > > > > > > ......
> > > > > > > > ```
> > > > > > > >
> > > > > > > >
> > > > > > > > This helps us troubleshoot the issue.
> > > > > > > > curl http://172.18.234.22:23111/tour/test.html -i
> > > > > > > > log is :
> > > > > > > > HTTP/1.1 500 Internal Server Error
> > > > > > > > Date: Thu, 04 Feb 2021 07:51:51 GMT
> > > > > > > > Content-Type: text/html; charset=utf-8
> > > > > > > > Content-Length: 1502
> > > > > > > > Connection: close
> > > > > > > > X-XSS-Protection: 1; mode=block
> > > > > > > > X-Content-Type-Options: nosniff
> > > > > > > > Referrer-Policy: no-referrer-when-downgrade
> > > > > > > > Strict-Transport-Security: max-age=31536000; includeSubdomains
> > > > > > > > Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline'
> > > > > > > > Cache-Control: no-cache, no-store, max-age=0, must-revalidate
> > > > > > > > Pragma: no-cache
> > > > > > > > Expires: 0
> > > > > >
> > > > > >
> > > > > > Why is there no response header information for `Server: APISIX/2.2` ?
> > > >
> > > >
> > > > I set up apisix-2.1 In my machine and I use configuration
> > > > {"hash_on":"vars","enable_websocket":false,"timeout":{"connect":15,"send":15,"read":15},"type":"chash","hash_on" : "vars_combinations","key" : "$request_uri$remote_addr","retries":3,"desc":"photo-api","id":"photo-api-upstream","name":"photo-api","nodes":{"192.168.17.14:23095":8,"192.168.17.14:23096":8}} , error info is change :
> > > > HTTP/1.1 500 Internal Server Error
> > > > Date: Thu, 04 Feb 2021 08:44:16 GMT
> > > > Content-Type: text/html; charset=utf-8
> > > > Content-Length: 174
> > > > Connection: close
> > > > Server: APISIX/2.1
> > > > Please check this error again
> > >
> > >
> > > What is your apisix version? Is it 2.1?
> >
> >
> > yes ,what version can support the configuration ?
>
> Yes, you need to update to version 2.2, version 2.1 does not support it.
ok, I have a try。 Thank you
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773148224
> > You need to provide the installation method and version information of apisix. It is best to have a minimum reproduction step.
> > > > > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > > > > ```
> > > > > > > $ curl http://127.0.0.1:9080/hello -i
> > > > > > > HTTP/1.1 500 Internal Server Error
> > > > > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > > > > Content-Type: text/html; charset=utf-8
> > > > > > > Content-Length: 154
> > > > > > > Connection: keep-alive
> > > > > > > Server: APISIX/2.2
> > > > > > > X-APISIX-Upstream-Status: 500, 500
> > > > > > > ......
> > > > > > > ```
> > > > > > >
> > > > > > >
> > > > > > > This helps us troubleshoot the issue.
> > > > > >
> > > > > >
> > > > > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > > > > ```
> > > > > > > $ curl http://127.0.0.1:9080/hello -i
> > > > > > > HTTP/1.1 500 Internal Server Error
> > > > > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > > > > Content-Type: text/html; charset=utf-8
> > > > > > > Content-Length: 154
> > > > > > > Connection: keep-alive
> > > > > > > Server: APISIX/2.2
> > > > > > > X-APISIX-Upstream-Status: 500, 500
> > > > > > > ......
> > > > > > > ```
> > > > > > >
> > > > > > >
> > > > > > > This helps us troubleshoot the issue.
> > > > > > > curl http://172.18.234.22:23111/tour/test.html -i
> > > > > > > log is :
> > > > > > > HTTP/1.1 500 Internal Server Error
> > > > > > > Date: Thu, 04 Feb 2021 07:51:51 GMT
> > > > > > > Content-Type: text/html; charset=utf-8
> > > > > > > Content-Length: 1502
> > > > > > > Connection: close
> > > > > > > X-XSS-Protection: 1; mode=block
> > > > > > > X-Content-Type-Options: nosniff
> > > > > > > Referrer-Policy: no-referrer-when-downgrade
> > > > > > > Strict-Transport-Security: max-age=31536000; includeSubdomains
> > > > > > > Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline'
> > > > > > > Cache-Control: no-cache, no-store, max-age=0, must-revalidate
> > > > > > > Pragma: no-cache
> > > > > > > Expires: 0
> > > > >
> > > > >
> > > > > Why is there no response header information for `Server: APISIX/2.2` ?
> > >
> > >
> > > I set up apisix-2.1 In my machine and I use configuration
> > > {"hash_on":"vars","enable_websocket":false,"timeout":{"connect":15,"send":15,"read":15},"type":"chash","hash_on" : "vars_combinations","key" : "$request_uri$remote_addr","retries":3,"desc":"photo-api","id":"photo-api-upstream","name":"photo-api","nodes":{"192.168.17.14:23095":8,"192.168.17.14:23096":8}} , error info is change :
> > > HTTP/1.1 500 Internal Server Error
> > > Date: Thu, 04 Feb 2021 08:44:16 GMT
> > > Content-Type: text/html; charset=utf-8
> > > Content-Length: 174
> > > Connection: close
> > > Server: APISIX/2.1
> > > Please check this error again
> >
> >
> > What is your apisix version? Is it 2.1?
>
> yes ,what version can support the configuration ?
Yes, you need to update to version 2.2, version 2.1 does not support it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander closed issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
spacewander closed issue #3518:
URL: https://github.com/apache/apisix/issues/3518
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhangxiaohui123456 edited a comment on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 edited a comment on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773137632
> > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > ```
> > > > $ curl http://127.0.0.1:9080/hello -i
> > > > HTTP/1.1 500 Internal Server Error
> > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > Content-Type: text/html; charset=utf-8
> > > > Content-Length: 154
> > > > Connection: keep-alive
> > > > Server: APISIX/2.2
> > > > X-APISIX-Upstream-Status: 500, 500
> > > > ......
> > > > ```
> > > >
> > > >
> > > > This helps us troubleshoot the issue.
> > >
> > >
> > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > ```
> > > > $ curl http://127.0.0.1:9080/hello -i
> > > > HTTP/1.1 500 Internal Server Error
> > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > Content-Type: text/html; charset=utf-8
> > > > Content-Length: 154
> > > > Connection: keep-alive
> > > > Server: APISIX/2.2
> > > > X-APISIX-Upstream-Status: 500, 500
> > > > ......
> > > > ```
> > > >
> > > >
> > > > This helps us troubleshoot the issue.
> > > > curl http://172.18.234.22:23111/tour/test.html -i
> > > > log is :
> > > > HTTP/1.1 500 Internal Server Error
> > > > Date: Thu, 04 Feb 2021 07:51:51 GMT
> > > > Content-Type: text/html; charset=utf-8
> > > > Content-Length: 1502
> > > > Connection: close
> > > > X-XSS-Protection: 1; mode=block
> > > > X-Content-Type-Options: nosniff
> > > > Referrer-Policy: no-referrer-when-downgrade
> > > > Strict-Transport-Security: max-age=31536000; includeSubdomains
> > > > Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline'
> > > > Cache-Control: no-cache, no-store, max-age=0, must-revalidate
> > > > Pragma: no-cache
> > > > Expires: 0
> >
> >
> > Why is there no response header information for `Server: APISIX/2.2` ?
>
I set up apisix-2.1 In my machine and I use configuration
{"hash_on":"vars","enable_websocket":false,"timeout":{"connect":15,"send":15,"read":15},"type":"chash","hash_on" : "vars_combinations","key" : "$request_uri$remote_addr","retries":3,"desc":"photo-api","id":"photo-api-upstream","name":"photo-api","nodes":{"192.168.17.14:23095":8,"192.168.17.14:23096":8}} , error info is change :
HTTP/1.1 500 Internal Server Error
Date: Thu, 04 Feb 2021 08:44:16 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 174
Connection: close
Server: APISIX/2.1
Please check this error again
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhangxiaohui123456 edited a comment on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 edited a comment on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773137632
> > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > ```
> > > > $ curl http://127.0.0.1:9080/hello -i
> > > > HTTP/1.1 500 Internal Server Error
> > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > Content-Type: text/html; charset=utf-8
> > > > Content-Length: 154
> > > > Connection: keep-alive
> > > > Server: APISIX/2.2
> > > > X-APISIX-Upstream-Status: 500, 500
> > > > ......
> > > > ```
> > > >
> > > >
> > > > This helps us troubleshoot the issue.
> > >
> > >
> > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > ```
> > > > $ curl http://127.0.0.1:9080/hello -i
> > > > HTTP/1.1 500 Internal Server Error
> > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > Content-Type: text/html; charset=utf-8
> > > > Content-Length: 154
> > > > Connection: keep-alive
> > > > Server: APISIX/2.2
> > > > X-APISIX-Upstream-Status: 500, 500
> > > > ......
> > > > ```
> > > >
> > > >
> > > > This helps us troubleshoot the issue.
> > > > curl http://172.18.234.22:23111/tour/test.html -i
> > > > log is :
> > > > HTTP/1.1 500 Internal Server Error
> > > > Date: Thu, 04 Feb 2021 07:51:51 GMT
> > > > Content-Type: text/html; charset=utf-8
> > > > Content-Length: 1502
> > > > Connection: close
> > > > X-XSS-Protection: 1; mode=block
> > > > X-Content-Type-Options: nosniff
> > > > Referrer-Policy: no-referrer-when-downgrade
> > > > Strict-Transport-Security: max-age=31536000; includeSubdomains
> > > > Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline'
> > > > Cache-Control: no-cache, no-store, max-age=0, must-revalidate
> > > > Pragma: no-cache
> > > > Expires: 0
> >
> >
> > Why is there no response header information for `Server: APISIX/2.2` ?
>
I set up apisix-2.1 In my machine and I use configuration
{"hash_on":"vars","enable_websocket":false,"timeout":{"connect":15,"send":15,"read":15},"type":"chash","hash_on" : "vars_combinations","key" : "$request_uri$remote_addr","retries":3,"desc":"photo-api","id":"photo-api-upstream","name":"photo-api","nodes":{"192.168.17.14:23095":8,"192.168.17.14:23096":8}} , error info is change :
HTTP/1.1 500 Internal Server Error
Date: Thu, 04 Feb 2021 08:44:16 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 174
Connection: close
Server: APISIX/2.1
Please check this error again
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] zhangxiaohui123456 commented on issue #3518: request help: vars_combinations can not work
Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773145366
> You need to provide the installation method and version information of apisix. It is best to have a minimum reproduction step.
>
> > > > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > > > ```
> > > > > > $ curl http://127.0.0.1:9080/hello -i
> > > > > > HTTP/1.1 500 Internal Server Error
> > > > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > > > Content-Type: text/html; charset=utf-8
> > > > > > Content-Length: 154
> > > > > > Connection: keep-alive
> > > > > > Server: APISIX/2.2
> > > > > > X-APISIX-Upstream-Status: 500, 500
> > > > > > ......
> > > > > > ```
> > > > > >
> > > > > >
> > > > > > This helps us troubleshoot the issue.
> > > > >
> > > > >
> > > > > > These error logs look very strange, the file that reported the error does not belong to apisix. Can you provide the response header data of the wrong request, like this:
> > > > > > ```
> > > > > > $ curl http://127.0.0.1:9080/hello -i
> > > > > > HTTP/1.1 500 Internal Server Error
> > > > > > Date: Wed, 03 Feb 2021 01:35:00 GMT
> > > > > > Content-Type: text/html; charset=utf-8
> > > > > > Content-Length: 154
> > > > > > Connection: keep-alive
> > > > > > Server: APISIX/2.2
> > > > > > X-APISIX-Upstream-Status: 500, 500
> > > > > > ......
> > > > > > ```
> > > > > >
> > > > > >
> > > > > > This helps us troubleshoot the issue.
> > > > > > curl http://172.18.234.22:23111/tour/test.html -i
> > > > > > log is :
> > > > > > HTTP/1.1 500 Internal Server Error
> > > > > > Date: Thu, 04 Feb 2021 07:51:51 GMT
> > > > > > Content-Type: text/html; charset=utf-8
> > > > > > Content-Length: 1502
> > > > > > Connection: close
> > > > > > X-XSS-Protection: 1; mode=block
> > > > > > X-Content-Type-Options: nosniff
> > > > > > Referrer-Policy: no-referrer-when-downgrade
> > > > > > Strict-Transport-Security: max-age=31536000; includeSubdomains
> > > > > > Content-Security-Policy: default-src * data: 'unsafe-eval' 'unsafe-inline'
> > > > > > Cache-Control: no-cache, no-store, max-age=0, must-revalidate
> > > > > > Pragma: no-cache
> > > > > > Expires: 0
> > > >
> > > >
> > > > Why is there no response header information for `Server: APISIX/2.2` ?
> >
> >
> > I set up apisix-2.1 In my machine and I use configuration
> > {"hash_on":"vars","enable_websocket":false,"timeout":{"connect":15,"send":15,"read":15},"type":"chash","hash_on" : "vars_combinations","key" : "$request_uri$remote_addr","retries":3,"desc":"photo-api","id":"photo-api-upstream","name":"photo-api","nodes":{"192.168.17.14:23095":8,"192.168.17.14:23096":8}} , error info is change :
> > HTTP/1.1 500 Internal Server Error
> > Date: Thu, 04 Feb 2021 08:44:16 GMT
> > Content-Type: text/html; charset=utf-8
> > Content-Length: 174
> > Connection: close
> > Server: APISIX/2.1
> > Please check this error again
>
> What is your apisix version? Is it 2.1?
yes ,what version can support the configuration ?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org