mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
updated shouldBeRetryableServerErrorException in base api action utils to only retry on 500 errors if query or get actions
This commit is contained in:
@ -996,10 +996,15 @@ public class BaseAPIActionUtil
|
|||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
protected boolean shouldBeRetryableServerErrorException(QHttpResponse qResponse)
|
protected boolean shouldBeRetryableServerErrorException(QHttpResponse qResponse)
|
||||||
|
{
|
||||||
|
if(actionInput instanceof QueryInput || actionInput instanceof GetInput)
|
||||||
{
|
{
|
||||||
return (qResponse.getStatusCode() != null && qResponse.getStatusCode() >= 500);
|
return (qResponse.getStatusCode() != null && qResponse.getStatusCode() >= 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return (false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
Reference in New Issue
Block a user