Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 6ae59bc

Browse files
I141 document login bug (#142)
* Created known issues section in developer docs * Added known_issues page to documentation * Documented the login failure bug
1 parent 844be29 commit 6ae59bc

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Known Issues
2+
3+
This section is for documenting known bugs developers may encounter and any temporary workarounds found.
4+
5+
## Can't log in after deleting user records from database
6+
7+
### Error message in terminal
8+
```
9+
server_1 | error: NotFound: No record found for id '6110af36a195d000504258e4'
10+
server_1 | at new NotFound (/app_code/node_modules/@feathersjs/errors/lib/index.js:114:17)
11+
server_1 | at /app_code/node_modules/feathers-mongoose/lib/service.js:147:17
12+
server_1 | at processTicksAndRejections (internal/process/task_queues.js:97:5)
13+
```
14+
15+
### Workaround
16+
Clear your browser's local storage for the IndEAA site.
17+
Guide on how to do this:
18+
[Google Chrome](https://superuser.com/questions/519628/clear-html5-local-storage-on-a-specific-page), [Firefox](https://stackoverflow.com/questions/6084099/how-to-view-delete-local-storage-in-firefox)
19+
20+
You can also use the site in a private browser session for a temporary fix.
21+
22+
### Causes
23+
When working with IndEAA it's possible to delete a user's account from the database while they are logged in (e.g. using a tool such as Mongodb Compass).
24+
25+
26+
When this user is logged out they will experience this bug.
27+
28+
29+
The user's session stores their account's `_id` field in local storage (even when logged out).
30+
When a user attempts to log in with a given Google account, the browser will report the `_id` field which was in local storage. However, because the account was deleted from the database, the `_id` field will find no matches. This causes the error listed above.
31+
32+
###

mkdocs/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ nav:
106106
- Coding Standards: developer/coding_standards.md
107107
- Data Engineering: developer/data_engineering.md
108108
- Database Support Scripts: developer/database_support_scripts.md
109+
- Known Issues: developer/known_issues.md
109110
- Frontend:
110111
- Component vs Page: developer/frontend/component_vs_page.md
111112
- Transport/Integration Layer (Feathers-redux): developer/frontend/feathers_redux.md

0 commit comments

Comments
 (0)