Mongodb – error failedtoparse: password must be URL encoded for mongodb:// URL:
Problem background:
when you log in to mongodb with @ password, an error is reported. Failedtoparse: password must be URL encoded for mongodb:// URL:
Problem analysis:
official: https://docs.mongodb.com/manual/reference/connection-string/#examples
If the username or password includes the following characters:
@ is %40
Solution:
we can replace the login password @ with %40.
After creating an Iam ordinary user, you can execute the following commands to log in to mongodb through the Iam user:
$ mongo --quiet mongodb://iam:'aaa%40intah'@127.0.0.1:27017/iam_analytics?authSource=iam_analytics
Read More:
- [Solved] LaTeX Error: \Url Error ->\url used in a moving argument.
- Mongodb error: authentication failed [How to Solve]
- Mongodb Crash Error: Too many open files [How to Solve]
- [Solved] MongoDB Update User Error: Error: not authorized on admin to execute command
- [Solved] Springboot Connect MongoDB Error: UncategorizedMongoDbException: Command failed with error 13 (Unauthorized)
- How to Solve SpringBoot MongoDB MongoAutoConfiguration Startup Error
- Robo3T Remote Connect MongoDB Error: Failed to refresh ‘Collections‘. Error: ListCollections failed
- [Solved] MongoDB Error: TypeError: Object of type ObjectId is not JSON serializable
- [Solved] Spark Error: org.apache.spark.SparkException: A master URL must be set in your configuration
- mongodb Error: IMKClient Stall detected [How to Solve]
- Java handles special characters in URL
- fatal: unable to access”: The requested URL returned error: 500
- [Solved] mongodb Backup Error: Failed: error getting collections for database `admin`: error running `listCollections`
- The requested URL returned error: 403 [How to Solve]
- [Solved] mongodb Startup Error: ERROR: child process failed, exited with error number 14
- [Solved] C# Access Mongodb Database Error: command find failed: Command find requires authentication
- [Solved] spring boot security Start Error: ‘login.html?error‘ is not a valid redirect URL
- [Solved] mongodb Install Error: mongod: error while loading shared libraries
- [Solved] CONDA error: Condahtterror: http 000 connection failed for URL
- [step on the pit] idea submits the code to GitHub and prompts 403 — the requested URL returned error: 403