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/02 06:30:47 UTC
[GitHub] [apisix] xyz101121 opened a new issue #3486: apisix通过consul的服务发现upstream报500错误
xyz101121 opened a new issue #3486:
URL: https://github.com/apache/apisix/issues/3486
1. apisix中的config.yaml已经配置dns_resolver
![image](https://user-images.githubusercontent.com/16227137/106560879-b868ac00-6562-11eb-8b7c-9d3371784d44.png)
2.route配置的upstream
![image](https://user-images.githubusercontent.com/16227137/106560982-e1893c80-6562-11eb-85ce-1c25e40eb15b.png)
3. consul解析没有问题
![image](https://user-images.githubusercontent.com/16227137/106561064-0087ce80-6563-11eb-8129-b0d4c6a5835c.png)
可是我访问的时候报500错误,当我把upstream直接替换成后端的ip地址,是没有问题的,-XPATCH -d '{"upstream":{"nodes":{"172.16.0.237":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] membphis commented on issue #3486: APISIX found that upstream reported 500 error through consul service
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-773397458
close this issue first.
@xyz101121 you can create a new issue with your question. feel free to reopen it if you think they are one bug.
----------------------------------------------------------------
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] membphis commented on issue #3486: APISIX found that upstream reported 500 error through consul service
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-773397458
close this issue first.
@xyz101121 you can create a new issue with your question. feel free to reopen it if you think they are one bug.
----------------------------------------------------------------
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] xyz101121 commented on issue #3486: APISIX found that upstream reported 500 error through consul service
Posted by GitBox <gi...@apache.org>.
xyz101121 commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-772342014
Now,suddenly it is ok, I don't know why !
----------------------------------------------------------------
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] tokers commented on issue #3486: APISIX found that upstream reported 500 error through consul service
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-773062744
> and now i find other question, Sometimes customize head for "env" is ok, sometimes not,But this routing level is the highest
> ![image](https://user-images.githubusercontent.com/16227137/106722997-9abe4400-6641-11eb-80e2-5f38a0ea59f1.png)
>
> ![image](https://user-images.githubusercontent.com/16227137/106723240-dc4eef00-6641-11eb-9cb1-be688b4ac941.png)
Would you like to close this issue and open another one to describe the problem (provide your configuration, error logs), one thread for one issue, or others will be confused when they check this thread.
----------------------------------------------------------------
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] membphis closed issue #3486: APISIX found that upstream reported 500 error through consul service
Posted by GitBox <gi...@apache.org>.
membphis closed issue #3486:
URL: https://github.com/apache/apisix/issues/3486
----------------------------------------------------------------
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] tokers commented on issue #3486: apisix通过consul的服务发现upstream报500错误
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-771628390
----------------------------------------------------------------
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] xyz101121 commented on issue #3486: apisix通过consul的服务发现upstream报500错误
Posted by GitBox <gi...@apache.org>.
xyz101121 commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-771636186
![image](https://user-images.githubusercontent.com/16227137/106607240-0bac2000-659e-11eb-8592-83b4871330f4.png)
----------------------------------------------------------------
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] tokers edited a comment on issue #3486: apisix通过consul的服务发现upstream报500错误
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-772133293
We have X-Upstream series headers, could you also provide a request/response sample by the curl? We want to see the response headers.
----------------------------------------------------------------
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] tokers commented on issue #3486: APISIX found that upstream reported 500 error through consul service
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-772474636
> and now i find other question, Sometimes customize head for "env" is ok, sometimes not,But this routing level is the highest
> ![image](https://user-images.githubusercontent.com/16227137/106722997-9abe4400-6641-11eb-80e2-5f38a0ea59f1.png)
>
> ![image](https://user-images.githubusercontent.com/16227137/106723240-dc4eef00-6641-11eb-9cb1-be688b4ac941.png)
Are you sure these requests were processed by APISIX? If so, the Server header should be `APISIX`.
----------------------------------------------------------------
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] tokers commented on issue #3486: apisix通过consul的服务发现upstream报500错误
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-771628390
It's weird, could you paste the generated nginx.conf? We need the `init_by_lua_block` section where the dns resolvers are passed in.
----------------------------------------------------------------
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 #3486: apisix通过consul的服务发现upstream报500错误
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-771402500
It would be better to provide relevant error log information.
----------------------------------------------------------------
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] xyz101121 commented on issue #3486: apisix通过consul的服务发现upstream报500错误
Posted by GitBox <gi...@apache.org>.
xyz101121 commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-771460940
access.log没有500的请求,error.log在请求失败的时候没有错误,配置文件如下:
![image](https://user-images.githubusercontent.com/16227137/106572661-acd1b100-6573-11eb-9bda-41994dc93ee4.png)
----------------------------------------------------------------
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 #3486: apisix通过consul的服务发现upstream报500错误
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-771402500
It would be better to provide relevant error log information.
----------------------------------------------------------------
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] xyz101121 commented on issue #3486: apisix通过consul的服务发现upstream报500错误
Posted by GitBox <gi...@apache.org>.
xyz101121 commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-771460940
----------------------------------------------------------------
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] xyz101121 commented on issue #3486: APISIX found that upstream reported 500 error through consul service
Posted by GitBox <gi...@apache.org>.
xyz101121 commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-772978974
Sure ,I customized the header server
----------------------------------------------------------------
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] xyz101121 commented on issue #3486: APISIX found that upstream reported 500 error through consul service
Posted by GitBox <gi...@apache.org>.
xyz101121 commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-772979119
![image](https://user-images.githubusercontent.com/16227137/106836605-72335a00-66d4-11eb-99bf-11fad628bec5.png)
----------------------------------------------------------------
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 #3486: apisix通过consul的服务发现upstream报500错误
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-772146516
@xyz101121 We have `X-APISIX-Upstream-Status` response header information, you should provide this information.
Similar to this:
```
curl http://127.0.0.1:9080/hello -i
HTTP/1.1 502 Bad Gateway
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: 502, 502, 502
......
```
----------------------------------------------------------------
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] tokers commented on issue #3486: APISIX found that upstream reported 500 error through consul service
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-773062744
> and now i find other question, Sometimes customize head for "env" is ok, sometimes not,But this routing level is the highest
> ![image](https://user-images.githubusercontent.com/16227137/106722997-9abe4400-6641-11eb-80e2-5f38a0ea59f1.png)
>
> ![image](https://user-images.githubusercontent.com/16227137/106723240-dc4eef00-6641-11eb-9cb1-be688b4ac941.png)
Would you like to close this issue and open another one to describe the problem (provide your configuration, error logs), one thread for one issue, or others will be confused when they check this thread.
----------------------------------------------------------------
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] xyz101121 commented on issue #3486: APISIX found that upstream reported 500 error through consul service
Posted by GitBox <gi...@apache.org>.
xyz101121 commented on issue #3486:
URL: https://github.com/apache/apisix/issues/3486#issuecomment-772350044
and now i find other question, Sometimes customize head for "env" is ok, sometimes not,But this routing level is the highest
![image](https://user-images.githubusercontent.com/16227137/106722997-9abe4400-6641-11eb-80e2-5f38a0ea59f1.png)
![image](https://user-images.githubusercontent.com/16227137/106723240-dc4eef00-6641-11eb-9cb1-be688b4ac941.png)
----------------------------------------------------------------
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] membphis closed issue #3486: APISIX found that upstream reported 500 error through consul service
Posted by GitBox <gi...@apache.org>.
membphis closed issue #3486:
URL: https://github.com/apache/apisix/issues/3486
----------------------------------------------------------------
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