Skip to content

Conversation

@addaleax
Copy link
Contributor

@addaleax addaleax commented Oct 6, 2025

Otherwise, error messages are short and potentially not very helpful. We already implemented this for HTTP errors earlier in 4f69e53 and improved on it in cb07f51, but did not account for these specific types of very broad generic failures.

Otherwise, error messages are short and potentially not very helpful.
We already implemented this for HTTP errors earlier in 4f69e53
and improved on it in cb07f51, but did not account for these
specific types of very broad generic failures.
@github-actions github-actions bot added the fix label Oct 6, 2025
@addaleax addaleax changed the title fix: add cause error messages also on generic token parse failures fix: add cause error messages also on generic token parse failures MONGOSH-2884 Oct 6, 2025
@github-actions github-actions bot added fix and removed fix labels Oct 6, 2025
Comment on lines +1727 to +1729
expect(err.message).to.equal(
'invalid response encountered (caused by: JWT "nonce" (nonce) claim missing)'
);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be checking for "cause" to be defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nbbeeken Yeah, that's a good idea 👍 Added it in 337a4b2

@addaleax addaleax merged commit 37a1fc4 into main Oct 6, 2025
19 checks passed
@addaleax addaleax deleted the 2884-dev branch October 6, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants