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

ValueError: Tag "<html>" does not correspond to any known color directive #5

Open
Nord1cWarr1or opened this issue Oct 2, 2024 · 0 comments

Comments

@Nord1cWarr1or
Copy link

Бот крашится с ошибкой:

Traceback (most recent call last):
File "/home/wp/tgbots/FintopioBot/bot/core/tapper.py", line 124, in check_proxy
logger.info(f"{self.session_name} | Proxy IP: {ip}")
File "/home/wp/tgbots/FintopioBot/venv/lib/python3.10/site-packages/loguru/_logger.py", line 2044, in info
__self._log("INFO", False, __self._options, __message, args, kwargs)
File "/home/wp/tgbots/FintopioBot/venv/lib/python3.10/site-packages/loguru/_logger.py", line 2017, in _log
colored_message = Colorizer.prepare_simple_message(str(message))
File "/home/wp/tgbots/FintopioBot/venv/lib/python3.10/site-packages/loguru/_colorizer.py", line 368, in prepare_simple_message
parser.feed(string)
File "/home/wp/tgbots/FintopioBot/venv/lib/python3.10/site-packages/loguru/_colorizer.py", line 252, in feed
raise ValueError(
ValueError: Tag "<html>" does not correspond to any known color directive, make sure you did not misspelled it (or prepend '\' to escape it)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/wp/tgbots/FintopioBot/main.py", line 15, in <module>
asyncio.run(main())
File "/home/wp/.pyenv/versions/3.10.12/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/wp/.pyenv/versions/3.10.12/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/wp/tgbots/FintopioBot/main.py", line 10, in main
await process()
File "/home/wp/tgbots/FintopioBot/bot/utils/launcher.py", line 56, in process
await run_tasks(accounts=accounts)
File "/home/wp/tgbots/FintopioBot/bot/utils/launcher.py", line 68, in run_tasks
await asyncio.gather(*tasks)
File "/home/wp/tgbots/FintopioBot/bot/core/tapper.py", line 415, in run_tapper
await Tapper(tg_client=tg_client).run(user_agent=user_agent, proxy=proxy)
File "/home/wp/tgbots/FintopioBot/bot/core/tapper.py", line 329, in run
await self.check_proxy(http_client=http_client, proxy=proxy)
File "/home/wp/tgbots/FintopioBot/bot/core/tapper.py", line 126, in check_proxy
logger.error(f"{self.session_name} | Proxy: {proxy} | Error: {error}")
File "/home/wp/tgbots/FintopioBot/venv/lib/python3.10/site-packages/loguru/_logger.py", line 2056, in error
__self._log("ERROR", False, __self._options, __message, args, kwargs)
File "/home/wp/tgbots/FintopioBot/venv/lib/python3.10/site-packages/loguru/_logger.py", line 2017, in _log
colored_message = Colorizer.prepare_simple_message(str(message))
File "/home/wp/tgbots/FintopioBot/venv/lib/python3.10/site-packages/loguru/_colorizer.py", line 368, in prepare_simple_message
parser.feed(string)
File "/home/wp/tgbots/FintopioBot/venv/lib/python3.10/site-packages/loguru/_colorizer.py", line 252, in feed
raise ValueError(
ValueError: Tag "<html>" does not correspond to any known color directive, make sure you did not misspelled it (or prepend '\' to escape it)
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