diff --git a/console/src/components/Services/Data/DataRouter.js b/console/src/components/Services/Data/DataRouter.js index 2a1df51611a..e9edc929de1 100644 --- a/console/src/components/Services/Data/DataRouter.js +++ b/console/src/components/Services/Data/DataRouter.js @@ -194,12 +194,16 @@ const dataRouter = (connect, store, composeOnEnterHooks) => { }, error => { console.error(JSON.stringify(error)); - Promise.all([ - store.dispatch({ type: ACCESS_KEY_ERROR, data: true }), - ]).then(() => { - replaceState('/login'); - cb(); - }); + if (error.code === 'access-denied') { + Promise.all([ + store.dispatch({ type: ACCESS_KEY_ERROR, data: true }), + ]).then(() => { + replaceState('/login'); + cb(); + }); + } else { + alert(JSON.stringify(error)); + } } ); }