Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32393407
D14777.1765337057.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
822 B
Referenced Files
None
Subscribers
None
D14777.1765337057.diff
View Options
diff --git a/web/grpc/identity-service-context-provider.react.js b/web/grpc/identity-service-context-provider.react.js
--- a/web/grpc/identity-service-context-provider.react.js
+++ b/web/grpc/identity-service-context-provider.react.js
@@ -103,6 +103,14 @@
const message = getMessageForException(e);
if (message === 'bad_credentials') {
void invalidTokenLogOut();
+ } else if (
+ // These come from grpc-web:
+ // - http status code: 0 is added when XmlHttpRequest request fails
+ // - DEADLINE_EXCEEDED is gRPC-web timeout error
+ message?.includes('http status code: 0') ||
+ message?.includes('DEADLINE_EXCEEDED')
+ ) {
+ throw new Error('network_error');
}
throw e;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 10, 3:24 AM (10 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5860476
Default Alt Text
D14777.1765337057.diff (822 B)
Attached To
Mode
D14777: [web] Handle grpc-web network errors
Attached
Detach File
Event Timeline
Log In to Comment