'How fix error encoding BSON to MongoDB Compass?
I installed MongoDB Compass, and I get error message “An error occurred while loading navigation: Invalid UTF-8 string in BSON document”. I can’t create connection, and database.
Version MongoDB Compass 1.28.1
Version MongoDB 4.4.8
Windows 10 Pro
I tried reinstalling a different version of MongoDB Compass but it didn't help.
On another other computer of the same configuration, everything seems to work, apparently some kind of problem in the OS
What could have happened?
P.S. Console commands work without problem.
Solution 1:[1]
Try Mongo Compass 1.26.1 or previous versions or use Robo 3T, it will not throw UTF-8 errors. It will work.
If it is a mongo client db connection in node, then use following configuration
new MongoClient('<connection uri>', { enableUtf8Validation: false });
You can find more details here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Sridhar Gudimela |