Handle 413 with user friendly message (#17870)
Add friendly message for 413 errors. Currently, 413 errors originate from the nginx server.
This commit is contained in:
@@ -89,6 +89,14 @@ export const useApolloFactory = (options: Partial<Options<any>> = {}) => {
|
||||
},
|
||||
});
|
||||
},
|
||||
onPayloadTooLarge: (message) => {
|
||||
enqueueErrorSnackBar({
|
||||
message,
|
||||
options: {
|
||||
dedupeKey: 'payload-too-large',
|
||||
},
|
||||
});
|
||||
},
|
||||
extraLinks: [],
|
||||
isDebugMode: process.env.IS_DEBUG_MODE === 'true',
|
||||
// Override options
|
||||
|
||||
Reference in New Issue
Block a user