Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfd681e1

Browse files
committed
When Google Play packaging fails due to timeout, we fallback to proxy
1 parent04ae6b8 commitfd681e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎apps/pwabuilder-google-play/services/packageCreator.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,15 @@ export class PackageCreator {
136136
returnawaitbubbleWrapper.generateAppPackage();
137137
}catch(error){
138138
consterrorMessage=(errorasError)?.message||`${error}`;
139-
this.dispatchProgressEvent("Unable to generate app package due to error. Checking if error is 403 Forbidden. "+errorMessage,"warn");
139+
this.dispatchProgressEvent("Unable to generate app package due to error. Checking if error is 403 Forbidden or timeout. "+errorMessage,"warn");
140140
constis403Error=
141141
(errorasany)?.status===403||
142142
(errorasany)?.response?.status===403||
143143
errorMessage.includes('403')||
144144
errorMessage.includes('ECONNREFUSED')||
145145
errorMessage.includes('ENOTFOUND');
146-
if(is403Error){
146+
constisTimeout=errorMessage.includes('ETIMEDOUT')||errorMessage.includes('ESOCKETTIMEDOUT');
147+
if(is403Error||isTimeout){
147148
constoptionsWithSafeUrl=this.getAndroidOptionsWithProxiedUrls(options);
148149
// See if it's Cloudflare. Check the Server response header for "cloudflare".
149150
constisCloudflare=awaitthis.TryCheckCloudflare(options.iconUrl);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp