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
I'm having an issue with the main branch code related to authentication when calling the toDto() method. Registering a new user or attempting to log in results in a 500 status code error, and this error on terminal:
[Nest] 291422 - 09/16/2023, 4:02:45 AM ERROR [ExceptionsHandler] You need to use @UseDto on class (UserEntity) be able to call toDto function
Error: You need to use @UseDto on class (UserEntity) be able to call toDto function
at UserEntity.toDto (/home/a16/boilerplate-nest/awesome-nest-boilerplate/src/common/abstract.entity.ts:48:13)
at AuthController.userLogin (/home/a16/boilerplate-nest/awesome-nest-boilerplate/src/modules/auth/auth.controller.ts:48:43)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
despite the new user data being successfully saved in the database, and I can make requests by manually logging the generated token. However, the release v10 commit code is working fine. I'm unsure whether this behavior is expected for now or if I'm making a mistake.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm having an issue with the main branch code related to authentication when calling the toDto() method. Registering a new user or attempting to log in results in a 500 status code error, and this error on terminal:
despite the new user data being successfully saved in the database, and I can make requests by manually logging the generated token. However, the release v10 commit code is working fine. I'm unsure whether this behavior is expected for now or if I'm making a mistake.
Beta Was this translation helpful? Give feedback.
All reactions