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] MongoDB Update User Error: Error: not authorized on admin to execute command
- Robo3T Remote Connect MongoDB Error: Failed to refresh ‘Collections‘. Error: ListCollections failed
- Mongodb error: authentication failed [How to Solve]
- UnknownHostException error when connecting to Mongo cluster Java
- [Solved] Springboot Connect MongoDB Error: UncategorizedMongoDbException: Command failed with error 13 (Unauthorized)
- [Solved] spring boot security Start Error: ‘login.html?error‘ is not a valid redirect URL
- [Solved] panic: runtime error: invalid memory address or nil pointer dereference
- Angular_ Error: Cannot assign to a reference or variable!
- Mongodb Crash Error: Too many open files [How to Solve]
- Docker Error response from daemon: Get https://registry-1.docker.io/v2/portainer/portainer/…
- [Solved] fatal: could not read Username for
- Mysql5.7.18.1 Error 1054 (42S22): Unknown Column’password’ In’field List’ When Changing User Password
- [Solved] Net.exe: ‘Error: A command was used with conflicting switches.’ while using /savecred?
- [Solved] mongodb Backup Error: Failed: error getting collections for database `admin`: error running `listCollections`
- [Solved] mongodb Startup Error: ERROR: child process failed, exited with error number 14
- fatal: unable to access”: The requested URL returned error: 500
- TypeError: db.collection is not a function
- Dyf Spring boot startup error: NoSuchBeanDefinitionException
- /usr/bin/ssh-copy-id: ERROR [How to Solve]
- Android Studio Warning: Process ‘command ‘git‘‘ finished with non-zero exit value 1