Login Error, RangeError: Maximum call stack size exceeded on Chrome
- 主要言語
- TypeScript
- スター
- 25.7k
- フォーク
- 7.9k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi
I install ngx-admin for my project, I used to test everything on firefox and everything is fine. Today I open my chrome to test it, and it failed on login with unknown error. the button "Login" turned into grey after I click (I put the correct email and password).
and the console has this
Observable.js:53 RangeError: Maximum call stack size exceeded
at SwitchMapSubscriber._error (Subscriber.js:75)
at SwitchMapSubscriber.error (Subscriber.js:55)
at CatchSubscriber._error (Subscriber.js:75)
at CatchSubscriber.error (Subscriber.js:55)
at CatchSubscriber.error (catchError.js:30)
at MapSubscriber._error (Subscriber.js:75)
at MapSubscriber.error (Subscriber.js:55)
at MapSubscriber._error (Subscriber.js:75)
at MapSubscriber.error (Subscriber.js:55)
at FilterSubscriber._error (Subscriber.js:75)
How to solve this on chrome ?
Here is my configuration
My auth configuration
NbAuthModule.forRoot({
strategies: [
NbPasswordAuthStrategy.setup({
name: 'email',
baseEndpoint: 'https://localhost:5001',
token: {
class: NbAuthJWTToken,
key: 'token'
},
login: {
// ...
endpoint: '/api/Auth/login',
redirect: {
success: '/pages/dashboard',
failure: null, // stay on the same page
},
},
logout:{
redirect: {
success: '/auth/login',
failure: null, // stay on the same page
},
},
register: {
// ...
endpoint: '/api/Auth/register',
},
}),
],
forms: {
login: formSetting,
register: formSetting,
requestPassword: formSetting,
resetPassword: formSetting,
logout: {
redirectDelay: 0,
},
},
}),
...
providers: [AuthGuard,
{ provide: NB_AUTH_TOKEN_INTERCEPTOR_FILTER, useValue: function () { return false; }, },
{ provide: HTTP_INTERCEPTORS, useClass: NbAuthJWTInterceptor, multi: true },
]
my proxy.conf.json
{
"/api/*": {
"target": "https://localhost:5001",
"secure": false
}
}
コントリビューションガイド
評価
この issue はまだ評価されていません。