Visual Studio'da OneDrive kurduktan sonra Discord botu hata veriyor

718292

Centipat
Katılım
1 Ekim 2023
Mesajlar
11
Merhaba arkadaşlar, bende OneDrive'ı yüklemeden önce Visual Studio Code'da yaptığım Discord botu çalışıyordu (python dilinde). Ama OneDrive'ı kurdum, şöyle bir hatayla karşılaştım:

Kod:
PS C:\Users\burha\OneDrive\Masaüstü\Python Çalışmalar> & C:/Users/burha/AppData/Local/Programs/Python/Python39/python.exe "c:/Users/burha/OneDrive/Masaüstü/Python Çalışmalar/bot.py"
2024-01-22 16:14:41 INFO Discord. Client logging in using static token.
Traceback (most recent call last):
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\http.py", line 803, in static_login.
 Data = await self. Request(Route('GET', '/users/@me'))
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\http.py", line 745, in request.
 Raise HTTPException(response, data)
Discord. Errors. HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized.

The above exception was the Direct cause of the following exception:

Traceback (most recent call last):
 File "c:\Users\burha\OneDrive\Masaüstü\Python Çalışmalar\bot.py", line 25, in <module>
 Client. Run("MTE5NjE0Njk1NTk3MDE3MTAwMg. GVbzCv. Rfouz8B9TBBd2StuJgQsLYTguuEZfse_hroAEA")
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 860, in run.
 asyncio.run(runner())
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run.
 Return loop. Run_until_complete(main)
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete.
 Return future.result()
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 849, in runner.
 Await self. Start(token, reconnect = reconnect)
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 777, in start.
 Await self. Login(token)
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 612, in login.
 Data = await self. HTTP. Static_login(token)
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\http.py", line 807, in static_login.
 Raise LoginFailure('Improper token has been passed.') from exc.
Discord. Errors. LoginFailure: Improper token has been passed.
Exception ignored in: <function _ProactorBasePipeTransport. __del__ at 0x000001E9A8E4D1F0>
Traceback (most recent call last):
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 116, in __del__.
 self.close()
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 108, in close.
 Self. _loop. Call_soon(self. _call_connection_lost, None)
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 746, in call_soon.
 self._check_closed()
 File "C:\Users\burha\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 510, in _check_closed.
 Raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

Acil bunun çözümü lazım.
 

Technopat Haberler

Geri
Yukarı