[COMPASS-7409] Unexpected and unhelpful error message when logging in with wrong Atlas account Created: 07/Nov/23 Updated: 29/Nov/23 |
|
| Status: | Open |
| Project: | Compass |
| Component/s: | GAI |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Massimiliano Marcon | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OS: |
||
| Attachments: |
|
| Story Points: | 3 |
| Description |
Problem Statement/RationaleWhat is going wrong? What action would you like the Engineering team to take? When I log in with a different Atlas account than the one I had used in the past to access Natural language queries, I get a mysterious error. Please be sure to attach relevant logs with any sensitive data redacted. Steps to ReproduceHow could an engineer replicate the issue you’re reporting? Log in with an Atlas account. When the token somehow expires (not sure how to trigger that), log in with a different Atlas account. Expected ResultsWhat do you expect to happen? Either it just works or shows a more helpful error message. Actual ResultsWhat do you observe is happening? Compass shows a toast notification with a cryptic error message. Additional NotesAny additional information that may be useful to include. |
| Comments |
| Comment by Anna Henningsen [ 07/Nov/23 ] |
|
Relevant oidc-plugin bits: https://github.com/mongodb-js/oidc-plugin/blob/938ba84e8574cad9892e1d6ee67658d4cc00e0cd/src/plugin.ts#L430-L456 We can probably relax this condition for Atlas login specifically. |