#mongo

1 messages · Page 1 of 1 (latest)

random topaz
#

my database have a problem will send error code below

olive plinthBOT
#

This post has been reserved for your question.

Hey @random topaz! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

random topaz
stray wadi
#

bro, it's JavaScript, not Java

random topaz
#

oh oops

#

i forgot u guys only do java

#

my bad

#

😭

calm moon
#

also from reading the logs, the first thing I noticed was bad auth: authentication failed, so make sure you have the correct connection string

random topaz
calm moon
#

where do you out the username and password for your database server? check that and make sure you typed the correct credentials

random topaz
#

it’s on my .env file

random topaz
#

i pasted the database link and changed the <password> to my password

#

i deleted the <> as well

calm moon
#

remove the <>

random topaz
#

and i tried with it their

#

there*

#

as well

#

and both gave me the same err

calm moon
#

i haven't worked on mongodb in years, hopefully someone else can chime in and help, or you can try on a mondodb or nodejs server

random topaz
#

sorry i forgot this was a java server

#

i’m a beginner so i’m getting em confused

#

sometimes

calm moon
#

i think if you can share the connection string, replacing the username and password with username and password, we can see if there's anything weird

random topaz
#

oh

#

okay i’ll share my screen once i’m home

calm moon
#

also, if I remember correctly atlas can generate the connection string, you can copy it directly from there in case you changed something

random topaz
#

will u be here in 2h or so

random topaz
#

idk i’ve been working on this DB like all day so ima bit bummed atlas is kinda bugging

calm moon
random topaz
#

update - i got home and decided to start up my code

#

and now its working

#

😕

#

confused but not complainin

#

ty @calm moon