You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
undefined on query.js getLogger().error(error); --> undefined
utils.js:324 Uncaught TypeError: Cannot read properties of undefined (reading 'status')
at Object.checkError (authProvider.js:120:29)
at useLogoutIfAccessDenied.ts:49:18
at onError (usePermissions.ts:57:17)
at notifyManager.js:62:18
at NotifyManager2.notifyFn (notifyManager.js:10:7)
at notifyManager.js:77:20
at Array.forEach (<anonymous>)
at notifyManager.js:76:17
at NotifyManager2.batchedUpdates$1 [as batchNotifyFn] (react-dom.development.js:26140:12)
at notifyManager.js:75:16
From some days, (i don't remember a package updated), there are some error when app start. So, auth doesn't work any more.
Some infos:
I try with the demo project and it's the same. My cognito user pool seems correct.
It's because of this checkError function. The error argument is sometimes undefined, leading to the crash. I switched it to the following code in my project:
async checkError(error) {
// Careful, error is sometimes undefined.
if (error?.status === 401 || error?.status === 403) {
throw new Error('Unauthorized');
}
},
Error :
undefined on query.js getLogger().error(error); --> undefined
From some days, (i don't remember a package updated), there are some error when app start. So, auth doesn't work any more.
Some infos:
I try with the demo project and it's the same. My cognito user pool seems correct.
package.json:
The text was updated successfully, but these errors were encountered: