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

Some problems #4

Open
ivashkakuku opened this issue Apr 5, 2021 · 0 comments
Open

Some problems #4

ivashkakuku opened this issue Apr 5, 2021 · 0 comments

Comments

@ivashkakuku
Copy link

Приветствую! Всё поставил как нужно, .env и зависимости; Вывод такой:

2021-04-05 10:27:31,274 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
INFO:sqlalchemy.engine.base.Engine:SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
2021-04-05 10:27:31,274 INFO sqlalchemy.engine.base.Engine ()
INFO:sqlalchemy.engine.base.Engine:()
2021-04-05 10:27:31,274 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
INFO:sqlalchemy.engine.base.Engine:SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
2021-04-05 10:27:31,275 INFO sqlalchemy.engine.base.Engine ()
INFO:sqlalchemy.engine.base.Engine:()
2021-04-05 10:27:31,275 INFO sqlalchemy.engine.base.Engine PRAGMA table_info("chats")
INFO:sqlalchemy.engine.base.Engine:PRAGMA table_info("chats")
2021-04-05 10:27:31,275 INFO sqlalchemy.engine.base.Engine ()
INFO:sqlalchemy.engine.base.Engine:()
2021-04-05 10:27:31,276 INFO sqlalchemy.engine.base.Engine PRAGMA table_info("banned_users")
INFO:sqlalchemy.engine.base.Engine:PRAGMA table_info("banned_users")
2021-04-05 10:27:31,276 INFO sqlalchemy.engine.base.Engine ()
INFO:sqlalchemy.engine.base.Engine:()
2021-04-05 10:27:31,277 INFO sqlalchemy.engine.base.Engine 
CREATE TABLE chats (
	message_id INTEGER NOT NULL, 
	chat_id INTEGER, 
	date INTEGER, 
	PRIMARY KEY (message_id), 
	FOREIGN KEY(message_id) REFERENCES banned_users (id)
)


INFO:sqlalchemy.engine.base.Engine:
CREATE TABLE chats (
	message_id INTEGER NOT NULL, 
	chat_id INTEGER, 
	date INTEGER, 
	PRIMARY KEY (message_id), 
	FOREIGN KEY(message_id) REFERENCES banned_users (id)
)


2021-04-05 10:27:31,277 INFO sqlalchemy.engine.base.Engine ()
INFO:sqlalchemy.engine.base.Engine:()
2021-04-05 10:27:31,371 INFO sqlalchemy.engine.base.Engine COMMIT
INFO:sqlalchemy.engine.base.Engine:COMMIT
2021-04-05 10:27:31,372 INFO sqlalchemy.engine.base.Engine 
CREATE TABLE banned_users (
	id INTEGER NOT NULL, 
	username VARCHAR, 
	PRIMARY KEY (id), 
	FOREIGN KEY(id) REFERENCES chats (chat_id)
)


INFO:sqlalchemy.engine.base.Engine:
CREATE TABLE banned_users (
	id INTEGER NOT NULL, 
	username VARCHAR, 
	PRIMARY KEY (id), 
	FOREIGN KEY(id) REFERENCES chats (chat_id)
)


2021-04-05 10:27:31,372 INFO sqlalchemy.engine.base.Engine ()
INFO:sqlalchemy.engine.base.Engine:()
2021-04-05 10:27:31,447 INFO sqlalchemy.engine.base.Engine COMMIT
INFO:sqlalchemy.engine.base.Engine:COMMIT
ERROR:asyncio:_GatheringFuture exception was never retrieved
future: <_GatheringFuture finished exception=Unauthorized('Unauthorized')>
Traceback (most recent call last):
  File "/home/USER/TeleFeedBack/utils.py", line 10, in log_bot_info
    bot_info = await bot.get_me()
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/bot/bot.py", line 174, in get_me
    result = await self.request(api.Methods.GET_ME, payload)
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/bot/base.py", line 183, in request
    return await api.make_request(self.session, self.__token, method, data, files,
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/bot/api.py", line 98, in make_request
    return check_result(method, response.content_type, response.status, await response.text())
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/bot/api.py", line 78, in check_result
    exceptions.Unauthorized.detect(description)
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/utils/exceptions.py", line 138, in detect
    raise cls(description)
aiogram.utils.exceptions.Unauthorized: Unauthorized
WARNING:aiogram:Goodbye!
Traceback (most recent call last):
  File "main.py", line 88, in <module>
    executor.start_polling(dp)
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/utils/executor.py", line 41, in start_polling
    executor.start_polling(reset_webhook=reset_webhook, timeout=timeout, fast=fast)
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/utils/executor.py", line 305, in start_polling
    loop.run_until_complete(self._startup_polling())
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/utils/executor.py", line 355, in _startup_polling
    await self._welcome()
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/utils/executor.py", line 345, in _welcome
    user = await self.dispatcher.bot.me
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/bot/bot.py", line 25, in me
    setattr(self, '_me', await self.get_me())
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/bot/bot.py", line 174, in get_me
    result = await self.request(api.Methods.GET_ME, payload)
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/bot/base.py", line 183, in request
    return await api.make_request(self.session, self.__token, method, data, files,
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/bot/api.py", line 98, in make_request
    return check_result(method, response.content_type, response.status, await response.text())
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/bot/api.py", line 78, in check_result
    exceptions.Unauthorized.detect(description)
  File "/home/USER/.local/lib/python3.8/site-packages/aiogram/utils/exceptions.py", line 138, in detect
    raise cls(description)
aiogram.utils.exceptions.Unauthorized: Unauthorized

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

1 participant