DBILITY

독거 가능성 100% 노후에 라면값이라도 하게 센스를 발휘합시다!😅
Please click on the ad so that I can pay for ramen in my old age!
点击一下广告,让老后吃个泡面钱吧!
老後にラーメン代だけでもするように広告を一回クリックしてください。

node MongoDB connection URL special characters in the password string 본문

nodejs

node MongoDB connection URL special characters in the password string

DBILITY 2021. 12. 15. 13:43
반응형

2023.04.18 현재 " URI must include hostname, domain name, and tld " 이런 오류가 나온다.

mongdb가입하고 free 500M을 사용하게 되었다.

정상적으로 절차를 끝내고 connection url로 접속을 하려하니 비번에 특수문자 안된다.

https://docs.atlas.mongodb.com/troubleshoot-connection/#special-characters-in-connection-string-password

 

Troubleshoot Connection Issues — MongoDB Atlas

Docs Home → MongoDB AtlasThis page outlines common connection issues and possible resolutions.To learn more about connecting to an Atlas cluster, see the Get Started with Atlas tutorial.Serverless Instances are in PreviewServerless instances are in previ

docs.atlas.mongodb.com

그냥 node에선 encodeURIComponent로 변환해서 사용하면 된다.

.env에 저장을 하면 곤란한데, 결국은 별도의 encrypt/decrpyt가 필요하군..ㅎㅎ검색!

반응형

'nodejs' 카테고리의 다른 글

node express server basic  (0) 2021.12.15
Comments