Skip to content
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

DATABASE_CLIENT_URL #3

Open
ghost opened this issue May 30, 2022 · 2 comments
Open

DATABASE_CLIENT_URL #3

ghost opened this issue May 30, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented May 30, 2022

Hi! Would you have an example on how the DATABASE_CLIENT_URL looks like?
I have it defined as below, and it is not working whatsoever (ValueError: Port must be an integer between 0 and 65535: 27017')
username = urllib.parse.quote_plus('xxxx')
password = urllib.parse.quote_plus('yyy')
CONNECTION_STRING = 'mongodb+srv://%s:%s@cluster0.ktjws.mongodb.net/test?retryWrites=true&w=majority' % (username, password)

@crazylitdev
Copy link

I simply passed my string, coping it from atlas, and passing it in the var, not exactly sure what you trying to achieve here

@0xcabrex
Copy link
Owner

0xcabrex commented Jun 4, 2022

DATABASE_CLIENT_URL is an evironment variable. it has the url to connect your mongodb with the application.

Repository owner locked and limited conversation to collaborators Sep 24, 2022
Repository owner unlocked this conversation Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants