Rexbot icon indicating copy to clipboard operation
Rexbot copied to clipboard

DATABASE_CLIENT_URL

Open ghost opened this issue 3 years ago • 2 comments

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:%[email protected]/test?retryWrites=true&w=majority' % (username, password)

ghost avatar May 30 '22 14:05 ghost

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

crazylitdev avatar Jun 04 '22 14:06 crazylitdev

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

0xcabrex avatar Jun 04 '22 17:06 0xcabrex