Open FlowerPaul opened 3 years ago
POST http://localhost:3636/api/auth/login 401 (Unauthorized) scheduleTask @ zone-evergreen.js:2845 scheduleTask @ zone-evergreen.js:385 onScheduleTask @ zone-evergreen.js:272 scheduleTask @ zone-evergreen.js:378 scheduleTask @ zone-evergreen.js:210 scheduleMacroTask @ zone-evergreen.js:233 scheduleMacroTaskWithCurrentZone @ zone-evergreen.js:1134 (anonymous) @ zone-evergreen.js:2878 proto. @ zone-evergreen.js:1449 (anonymous) @ http.js:2615 _trySubscribe @ Observable.js:42 subscribe @ Observable.js:28 subscribeToResult @ subscribeToResult.js:9 _innerSub @ mergeMap.js:59 _tryNext @ mergeMap.js:53 _next @ mergeMap.js:36 next @ Subscriber.js:49 (anonymous) @ subscribeToArray.js:3 _trySubscribe @ Observable.js:42 subscribe @ Observable.js:28 call @ mergeMap.js:21 subscribe @ Observable.js:23 call @ filter.js:13 subscribe @ Observable.js:23 call @ map.js:16 subscribe @ Observable.js:23 call @ catchError.js:16 subscribe @ Observable.js:23 loginUser @ user.service.ts:70 login @ login.component.ts:51 LoginComponent_Template_button_click_16_listener @ login.component.html:21 executeListenerWithErrorHandling @ core.js:21693 wrapListenerIn_markDirtyAndPreventDefault @ core.js:21735 (anonymous) @ platform-browser.js:934 invokeTask @ zone-evergreen.js:399 onInvokeTask @ core.js:41264 invokeTask @ zone-evergreen.js:398 runTask @ zone-evergreen.js:167 invokeTask @ zone-evergreen.js:480 invokeTask @ zone-evergreen.js:1621 globalZoneAwareCallback @ zone-evergreen.js:1647 Show 11 more frames core.js:6185 ERROR TypeError: Cannot read property 'auth' of undefined at SafeSubscriber._next (user.service.ts:74) at SafeSubscriber.__tryOrUnsub (Subscriber.js:183) at SafeSubscriber.next (Subscriber.js:122) at Subscriber._next (Subscriber.js:72) at Subscriber.next (Subscriber.js:49) at CatchSubscriber.notifyNext (OuterSubscriber.js:4) at InnerSubscriber._next (InnerSubscriber.js:11) at InnerSubscriber.next (Subscriber.js:49) at Observable._subscribe (subscribeToArray.js:3) at Observable._trySubscribe (Observable.js:42)
Share your code with us from the GitHub repo, so that we can help you. @FlowerPaul
POST http://localhost:3636/api/auth/login 401 (Unauthorized) scheduleTask @ zone-evergreen.js:2845 scheduleTask @ zone-evergreen.js:385 onScheduleTask @ zone-evergreen.js:272 scheduleTask @ zone-evergreen.js:378 scheduleTask @ zone-evergreen.js:210 scheduleMacroTask @ zone-evergreen.js:233 scheduleMacroTaskWithCurrentZone @ zone-evergreen.js:1134 (anonymous) @ zone-evergreen.js:2878 proto. @ zone-evergreen.js:1449
(anonymous) @ http.js:2615
_trySubscribe @ Observable.js:42
subscribe @ Observable.js:28
subscribeToResult @ subscribeToResult.js:9
_innerSub @ mergeMap.js:59
_tryNext @ mergeMap.js:53
_next @ mergeMap.js:36
next @ Subscriber.js:49
(anonymous) @ subscribeToArray.js:3
_trySubscribe @ Observable.js:42
subscribe @ Observable.js:28
call @ mergeMap.js:21
subscribe @ Observable.js:23
call @ filter.js:13
subscribe @ Observable.js:23
call @ map.js:16
subscribe @ Observable.js:23
call @ catchError.js:16
subscribe @ Observable.js:23
loginUser @ user.service.ts:70
login @ login.component.ts:51
LoginComponent_Template_button_click_16_listener @ login.component.html:21
executeListenerWithErrorHandling @ core.js:21693
wrapListenerIn_markDirtyAndPreventDefault @ core.js:21735
(anonymous) @ platform-browser.js:934
invokeTask @ zone-evergreen.js:399
onInvokeTask @ core.js:41264
invokeTask @ zone-evergreen.js:398
runTask @ zone-evergreen.js:167
invokeTask @ zone-evergreen.js:480
invokeTask @ zone-evergreen.js:1621
globalZoneAwareCallback @ zone-evergreen.js:1647
Show 11 more frames
core.js:6185 ERROR TypeError: Cannot read property 'auth' of undefined
at SafeSubscriber._next (user.service.ts:74)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:183)
at SafeSubscriber.next (Subscriber.js:122)
at Subscriber._next (Subscriber.js:72)
at Subscriber.next (Subscriber.js:49)
at CatchSubscriber.notifyNext (OuterSubscriber.js:4)
at InnerSubscriber._next (InnerSubscriber.js:11)
at InnerSubscriber.next (Subscriber.js:49)
at Observable._subscribe (subscribeToArray.js:3)
at Observable._trySubscribe (Observable.js:42)