You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2022/10/09 10:56:08 UTC
[GitHub] [shenyu] yzy2015 opened a new issue, #4059: [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500
yzy2015 opened a new issue, #4059:
URL: https://github.com/apache/shenyu/issues/4059
### Question
shenyu version: 2.5.0
shenyu-examples-http
Request:
POST http://localhost:9195/http/shenyu/client/timeout
Accept: application/json
Content-Type: application/json
Response:
{
"code": 500,
"message": "Internal Server Error"
}
![image](https://user-images.githubusercontent.com/15868072/194752192-18601743-1e95-45b8-868d-74b40aa0bfb8.png)
**when random Strategy is current or failover then Response code 500
Should a more friendly prompt be returned**
--
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: notifications-unsubscribe@shenyu.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] moremind commented on issue #4059: [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500
Posted by GitBox <gi...@apache.org>.
moremind commented on issue #4059:
URL: https://github.com/apache/shenyu/issues/4059#issuecomment-1273266227
what happens?
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] moremind commented on issue #4059: [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500
Posted by GitBox <gi...@apache.org>.
moremind commented on issue #4059:
URL: https://github.com/apache/shenyu/issues/4059#issuecomment-1274321391
second question:
```
{
"code": 503,
"message": "Can not find healthy upstream url after failover!"
}
```
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] yzy2015 commented on issue #4059: [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500
Posted by GitBox <gi...@apache.org>.
yzy2015 commented on issue #4059:
URL: https://github.com/apache/shenyu/issues/4059#issuecomment-1274553829
> > 1.when random Strategy is current The actual exception is "reactor.core.Exceptions$RetryExhaustedException". and I think RetryBackoffSpec need to add onRetryExhaustedThrow
> > 2.when random Strategy is failover The actual exception is "org.apache.shenyu.common.exception.ShenyuException: Can not find healthy upstream url after failover". This exception is not handled.GlobalErrorHandler handles 500 by default
>
> yes, I think you are right, can you fix it? if you can't, I will do it.
Wait for you, and thanks
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] yzy2015 commented on issue #4059: [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500
Posted by GitBox <gi...@apache.org>.
yzy2015 commented on issue #4059:
URL: https://github.com/apache/shenyu/issues/4059#issuecomment-1273442963
1.when random Strategy is current
The actual exception is "reactor.core.Exceptions$RetryExhaustedException".
and I think RetryBackoffSpec need to add onRetryExhaustedThrow
2.when random Strategy is failover
The actual exception is "org.apache.shenyu.common.exception.ShenyuException: Can not find healthy upstream url after failover".
This exception is not handled.GlobalErrorHandler handles 500 by default
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] dragon-zhang closed issue #4059: [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500
Posted by GitBox <gi...@apache.org>.
dragon-zhang closed issue #4059: [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500
URL: https://github.com/apache/shenyu/issues/4059
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] moremind commented on issue #4059: [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500
Posted by GitBox <gi...@apache.org>.
moremind commented on issue #4059:
URL: https://github.com/apache/shenyu/issues/4059#issuecomment-1274115509
>
yes, I think you are right, you can fix it? if you can't, I will do 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.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500 [shenyu]
Posted by "lixianli1987 (via GitHub)" <gi...@apache.org>.
lixianli1987 commented on issue #4059:
URL: https://github.com/apache/shenyu/issues/4059#issuecomment-2019772990
> the result maybe:
>
> ```
> {
> "code": 408,
> "message": "Request Timeout"
> }
> ```
I also encountered this problem, but I don't know how to solve 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.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] moremind commented on issue #4059: [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500
Posted by GitBox <gi...@apache.org>.
moremind commented on issue #4059:
URL: https://github.com/apache/shenyu/issues/4059#issuecomment-1274127955
the result maybe:
```
{
"code": 408,
"message": "Request Timeout"
}
```
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] moremind commented on issue #4059: [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500
Posted by GitBox <gi...@apache.org>.
moremind commented on issue #4059:
URL: https://github.com/apache/shenyu/issues/4059#issuecomment-1273017496
yes, I will focus on this question
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] moremind commented on issue #4059: [Question] When the proxy service is offline or times out, the shenyugateway reports exception 500
Posted by GitBox <gi...@apache.org>.
moremind commented on issue #4059:
URL: https://github.com/apache/shenyu/issues/4059#issuecomment-1274115791
> 1.when random Strategy is current The actual exception is "reactor.core.Exceptions$RetryExhaustedException". and I think RetryBackoffSpec need to add onRetryExhaustedThrow
>
> 2.when random Strategy is failover The actual exception is "org.apache.shenyu.common.exception.ShenyuException: Can not find healthy upstream url after failover". This exception is not handled.GlobalErrorHandler handles 500 by default
yes, I think you are right, you can fix it? if you can't, I will do 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.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org