#error occured

1 messages · Page 1 of 1 (latest)

marble stirrup
#

Traceback (most recent call last):
File "/home/runner/Vocard-2/main.py", line 7, in <module>
import function as func
File "/home/runner/Vocard-2/function.py", line 12, in <module>
from addons import Settings, TOKENS
File "/home/runner/Vocard-2/addons/init.py", line 1, in <module>
from .lyrics import lyricsPlatform
File "/home/runner/Vocard-2/addons/lyrics.py", line 1, in <module>
import aiohttp, random, bs4, re
ModuleNotFoundError: No module named 'bs4'

sharp solar
#

if you are hosting on replit you can't install bs4

#

you have to install beautifulsoup4

#

although they are the same

marble stirrup
#

alright thx

#

Traceback (most recent call last):
File "/home/runner/Vocard-2/main.py", line 7, in <module>
import function as func
File "/home/runner/Vocard-2/function.py", line 17, in <module>
raise Exception("Settings file not set!")
Exception: Settings file not set!

sharp solar
#

yea you have to setup the settings.json

marble stirrup
#

i have wait let me see

#

solved just replit error

sharp solar
#

good to hear that

marble stirrup
#

i am getting error on mongo db

#

idk why

sharp solar
#

what error?

marble stirrup
#

Traceback (most recent call last):
File "/home/runner/Vocard-2/function.py", line 27, in <module>
mongodb.server_info()
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/mongo_client.py", line 1935, in server_info
self.admin.command(
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/_csot.py", line 108, in csot_wrapper
return func(self, *args, **kwargs)
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/database.py", line 892, in command
with self.__client._conn_for_reads(read_preference, session) as (
File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/contextlib.py", line 135, in enter
return next(self.gen)
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/mongo_client.py", line 1324, in _conn_from_server
with self._checkout(server, session) as conn:
File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/contextlib.py", line 135, in enter
return next(self.gen)
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/mongo_client.py", line 1246, in _checkout
with server.checkout(handler=err_handler) as conn:
File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/contextlib.py", line 135, in enter
return next(self.gen)
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/pool.py", line 1598, in checkout
conn = self._get_conn(handler=handler)
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/pool.py", line 1714, in _get_conn
conn = self.connect(handler=handler)
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/pool.py", line 1568, in connect
conn.authenticate()

#

File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/pool.py", line 1042, in authenticate
auth.authenticate(creds, self, reauthenticate=reauthenticate)
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/auth.py", line 616, in authenticate
auth_func(credentials, conn)
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/auth.py", line 521, in _authenticate_default
return _authenticate_scram(credentials, conn, "SCRAM-SHA-1")
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/auth.py", line 289, in _authenticate_scram
res = conn.command(source, cmd)
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/helpers.py", line 315, in inner
return func(*args, **kwargs)
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/pool.py", line 932, in command
return command(

#

File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/network.py", line 191, in command
helpers._check_command_response(
File "/home/runner/Vocard-2/.pythonlibs/lib/python3.10/site-packages/pymongo/helpers.py", line 223, in _check_command_response
raise OperationFailure(errmsg, code, response, max_wire_version)
pymongo.errors.OperationFailure: bad auth : authentication failed, full error: {'ok': 0, 'errmsg': 'bad auth : authentication failed', 'code': 8000, 'codeName': 'AtlasError'}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/runner/Vocard-2/main.py", line 7, in <module>
import function as func
File "/home/runner/Vocard-2/function.py", line 33, in <module>
raise Exception("Not able to connect MongoDB! Reason:", e)
Exception: ('Not able to connect MongoDB! Reason:', OperationFailure("bad auth : authentication failed, full error: {'ok': 0, 'errmsg': 'bad auth : authentication failed', 'code': 8000, 'codeName': 'AtlasError'}"))

sharp solar
#

authentication failed

#

means your username or password is not correct

marble stirrup
#

It's right as I changed my password

sharp solar
#

your password can't contains special characters

marble stirrup
#

My node is getting error

#

It's like 'you have typed the incorrect password' but I rechecked the pass 3 times

sharp solar
#

You mean the lavalink server or mongodb?

marble stirrup
#

Lavalink

sharp solar
#

can you provide some screenshots

storm badger
#

I had a similar error, this was a solution

sharp solar
#

Oh yea you can also try that