[CDRIVER-546] Received invalid SCRAM reply from MongoDB server Created: 26/Feb/15  Updated: 19/Oct/16  Resolved: 10/Mar/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.1.0
Fix Version/s: 1.1.2

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The error message "Received invalid SCRAM reply from MongoDB server" really doesn't mean anything to a normal user.

I'd suggest to use the actual error message from MongoDB - which makes whole lot more sense (albeit, still inaccurate): "Authentication failed."

In reality, the username didn't exist - but that is an implementation detail we shouldn't expose to the user: SERVER-15295



 Comments   
Comment by Githook User [ 26/Feb/15 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@mongodb.com'}

Message: CDRIVER-546: Use the error message from the server rather then cryptic home grown one

Closes #180
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/84c0ec150ba9b9981e5076ed2621f60872be3a7e

Generated at Wed Feb 07 21:09:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.