Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ shouldRetry
Method
shouldRetry
client-sdks/client-js/src/resources/base.ts:226–228 ·
view source on GitHub ↗
* 判断状态码是否应该重试
(statusCode: number)
Source
from the content-addressed store, hash-verified
224
* 判断状态码是否应该重试
225
*/
226
private shouldRetry(statusCode: number): boolean {
227
return
this.options.retry!.retryableStatusCodes!.includes(statusCode);
228
}
229
230
/**
231
* 判断错误是否可重试
Callers
1
request
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected