更新 feat: add usage limit code后出现错误
Closed this issue · 5 comments
出现 错误 : auth middleware getUserId err from token undefined Cannot read properties of undefined (reading 'replace')
尝试完全重新 fork和deploy 后错误依然出现
yes, getting this error on log: error: 2024/02/22 - 04:21:40 | auth middleware getUserId error from token: undefined
(as i'm using custom logger). Error is coming from: service/src/middleware/auth.ts
This error happens when no user is logged in and after logout. Then it shows error 500 page
Use no login mode?
Use no login mode?
No. while using login mode this error happens. Suppose I already logged into account and then logout, this error throws at console shows error 500 page. Another is while trying to access localhost:3002 , it throws error and shows error 500 page. Only works if user is already logged in.