-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Password contains an illegal unescaped character: using loopback-connector-mongodb: ^5.5.0 #4349
Comments
I really need help, :( anyone?
here is my loopback code, generated by
|
Hi @mercale, this repo is for the older EOLed LoopBack 3 framework and isn't being actively monitored. LoopBack 4 is under https://github.com/strongloop/loopback-next. cc: @dhmlau could you assist in transferring this issue? Thanks! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Steps to reproduce
The solution stated in PR#529 does not seem to work for me.
Here is my config.
Noticed the last char in password was and equal sign "=" I encoded this with %3D but I am still getting error.
What am i doing wrong? Can someone help me figure it out please?
So userid and password are pre-generated by mongo-atlas on azure.
"dependencies": {
"@loopback/boot": "^3.2.1",
"@loopback/core": "^2.14.1",
"@loopback/repository": "^3.4.1",
"@loopback/rest": "^9.1.3",
"@loopback/rest-explorer": "^3.1.0",
"@loopback/service-proxy": "^3.0.7",
"cfenv": "^1.2.4",
"loopback-connector-mongodb": "^5.5.0",
"tslib": "^2.0.0"
},
"devDependencies": {
"@loopback/build": "^6.2.9",
"@loopback/eslint-config": "^10.0.5",
"@loopback/testlab": "^3.2.12",
"@types/node": "^10.17.51",
"eslint": "^7.18.0",
"source-map-support": "^0.5.19",
"typescript": "~4.1.3"
}
2021-04-12T12:40:38.04-0400 [CELL/0] OUT Downloaded droplet (45.7M)
2021-04-12T12:40:38.35-0400 [CELL/0] OUT Starting health monitoring of container
2021-04-12T12:40:40.72-0400 [APP/PROC/WEB/0] ERR (node:15) [MONGODB DRIVER] Warning: Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead.
2021-04-12T12:40:40.72-0400 [APP/PROC/WEB/0] ERR (Use
node --trace-warnings ...
to show where the warning was created)2021-04-12T12:40:40.75-0400 [APP/PROC/WEB/0] OUT Server is running at http://127.0.0.1:8080
2021-04-12T12:40:40.75-0400 [APP/PROC/WEB/0] OUT Try http://127.0.0.1:8080/ping
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR Connection fails: Error: Password contains an illegal unescaped character
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR It will be retried for the next request.
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR node:events:356
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR throw er; // Unhandled 'error' event
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR ^
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR Error: Password contains an illegal unescaped character
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR at parseConnectionString (/home/vcap/app/node_modules/mongodb/lib/url_parser.js:304:13)
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR at parseHandler (/home/vcap/app/node_modules/mongodb/lib/url_parser.js:135:14)
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR at QueryReqWrap.callback (/home/vcap/app/node_modules/mongodb/lib/url_parser.js:119:7)
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR at QueryReqWrap.onresolve [as oncomplete] (node:dns:211:10)
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR Emitted 'error' event on BackendDbDataSource instance at:
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR at BackendDbDataSource.postInit (/home/vcap/app/node_modules/loopback-datasource-juggler/lib/datasource.js:502:16)
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR at onError (/home/vcap/app/node_modules/loopback-connector-mongodb/lib/mongodb.js:316:21)
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR at /home/vcap/app/node_modules/loopback-connector-mongodb/lib/mongodb.js:334:11
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR at parseHandler (/home/vcap/app/node_modules/mongodb/lib/url_parser.js:140:16)
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR at QueryReqWrap.callback (/home/vcap/app/node_modules/mongodb/lib/url_parser.js:119:7)
2021-04-12T12:40:41.46-0400 [APP/PROC/WEB/0] ERR at QueryReqWrap.onresolve [as oncomplete] (node:dns:211:10)
2021-04-12T12:40:41.48-0400 [APP/PROC/WEB/0] OUT Exit status 1
manifest.yml
applications:
buildpack: nodejs_buildpack
stack: cflinuxfs3
env:
NODE_ENV: dev
memory: 256M
instances: 1
The text was updated successfully, but these errors were encountered: