Error name not initialized on login #8

Closed
opened 2021-08-13 23:18:04 +02:00 by ashpie · 1 comment
Owner

User reports after trying to login with bad password, gets 500 internal error:

Aug 13 22:55:09 hordak node[2588]:  Error                name not initialized.
Aug 13 22:55:09 hordak node[2588]: error stack:
Aug 13 22:55:09 hordak node[2588]: • Model.ts:232 getOrFail
Aug 13 22:55:09 hordak node[2588]:     node_modules/swaf/db/src/db/Model.ts:232:29
Aug 13 22:55:09 hordak node[2588]: • PasswordAuthMethod.ts:69 <anonymous>
Aug 13 22:55:09 hordak node[2588]:     node_modules/swaf/auth/password/src/auth/password/PasswordAuthMethod.ts:69:34
Aug 13 22:55:09 hordak node[2588]: • PasswordAuthMethod.js:25 rejected
Aug 13 22:55:09 hordak node[2588]:     node_modules/swaf/auth/password/PasswordAuthMethod.js:25:65
Aug 13 22:55:09 hordak node[2588]: • task_queues:96 processTicksAndRejections
Aug 13 22:55:09 hordak node[2588]:     node:internal/process/task_queues:96:5

Clicking on "Go back" then entering the right password gives 404 on redirected page /auth/login

User reports after trying to login with bad password, gets 500 internal error: ```log Aug 13 22:55:09 hordak node[2588]: Error name not initialized. Aug 13 22:55:09 hordak node[2588]: error stack: Aug 13 22:55:09 hordak node[2588]: • Model.ts:232 getOrFail Aug 13 22:55:09 hordak node[2588]: node_modules/swaf/db/src/db/Model.ts:232:29 Aug 13 22:55:09 hordak node[2588]: • PasswordAuthMethod.ts:69 <anonymous> Aug 13 22:55:09 hordak node[2588]: node_modules/swaf/auth/password/src/auth/password/PasswordAuthMethod.ts:69:34 Aug 13 22:55:09 hordak node[2588]: • PasswordAuthMethod.js:25 rejected Aug 13 22:55:09 hordak node[2588]: node_modules/swaf/auth/password/PasswordAuthMethod.js:25:65 Aug 13 22:55:09 hordak node[2588]: • task_queues:96 processTicksAndRejections Aug 13 22:55:09 hordak node[2588]: node:internal/process/task_queues:96:5 ``` Clicking on "Go back" then entering the right password gives 404 on *redirected page* `/auth/login`
ashpie added the
bug
label 2021-08-13 23:18:04 +02:00
ashpie self-assigned this 2021-08-13 23:18:04 +02:00
Author
Owner

With the latest swaf changes, this bug cannot happen anymore.

With the latest swaf changes, this bug cannot happen anymore.
Sign in to join this conversation.
No Label
bug
Doing
To Do
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ashpie/ily.li#8
No description provided.