[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:
node.js / npm versions:
Additional info:


Attachments: PNG File image (16).png    
Story Points: 3

 Description   

Problem Statement/Rationale

What 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.
How to retrieve logs for: Compass; Shell

Steps to Reproduce

How 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 Results

What do you expect to happen?

Either it just works or shows a more helpful error message.

Actual Results

What do you observe is happening?

Compass shows a toast notification with a cryptic error message.

Additional Notes

Any 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.

Generated at Wed Feb 07 22:46:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.