mirror of https://github.com/status-im/metro.git
packager: GlobalTransformCache: fix bug in retry logic
Reviewed By: bestander Differential Revision: D4850644 fbshipit-source-id: ede9991eaac3c7bfd045f2a9c3e9d0b10d45af0f
This commit is contained in:
parent
8d34f16a70
commit
4c2427126f
|
@ -281,7 +281,7 @@ class URIBasedGlobalTransformCache {
|
|||
return (
|
||||
error instanceof FetchError && error.type === 'request-timeout' || (
|
||||
error instanceof FetchFailedError &&
|
||||
error.details.type === 'wrong_http_status' &&
|
||||
error.details.type === 'unhandled_http_status' &&
|
||||
(error.details.statusCode === 503 || error.details.statusCode === 502)
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue