Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Exception, after 1-5hours work. #53

Open
daeeros opened this issue Jun 1, 2024 · 3 comments
Open

Exception, after 1-5hours work. #53

daeeros opened this issue Jun 1, 2024 · 3 comments

Comments

@daeeros
Copy link

daeeros commented Jun 1, 2024

Traceback (most recent call last):
  File "/root/TapSwapBot/main.py", line 13, in <module>
    asyncio.run(main())
  File "/root/miniforge3/envs/tapbot/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/root/miniforge3/envs/tapbot/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniforge3/envs/tapbot/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/root/TapSwapBot/main.py", line 8, in main
    await process()
  File "/root/TapSwapBot/bot/utils/launcher.py", line 102, in process
    await run_tasks(tg_clients=tg_clients)
  File "/root/TapSwapBot/bot/utils/launcher.py", line 124, in run_tasks
    await asyncio.gather(*tasks)
  File "/root/TapSwapBot/bot/core/tapper.py", line 375, in run_tapper
    await Tapper(tg_client=tg_client).run(proxy=proxy)
  File "/root/TapSwapBot/bot/core/tapper.py", line 360, in run
    logger.error(f"{self.session_name} | Unknown error: {error}")
  File "/root/miniforge3/envs/tapbot/lib/python3.11/site-packages/loguru/_logger.py", line 2056, in error
    __self._log("ERROR", False, __self._options, __message, args, kwargs)
  File "/root/miniforge3/envs/tapbot/lib/python3.11/site-packages/loguru/_logger.py", line 2017, in _log
    colored_message = Colorizer.prepare_simple_message(str(message))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniforge3/envs/tapbot/lib/python3.11/site-packages/loguru/_colorizer.py", line 368, in prepare_simple
_message
    parser.feed(string)
  File "/root/miniforge3/envs/tapbot/lib/python3.11/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 p
repend '\' to escape it)
@BloodyKatana47
Copy link

Same

@monkiravn
Copy link

monkiravn commented Jun 1, 2024

Tapswap's API was down. Retry after 2-3 hours later, guys

@krava77
Copy link

krava77 commented Jun 2, 2024

Create a bash script that checks if TWS is running, if not, execute it again. Please note, the name of the script should be unique.
for example:

if ! ps -ef | grep -v grep | grep tws_coin.py > /dev/null
then
	nohup /usr/bin/python3.11 tws_coin.py -a 2 & > /dev/null
fi


while sleep 1000; do
	if ! ps -ef | grep -v grep | grep tws_coin.py > /dev/null
	then
		nohup /usr/bin/python3.11 tws_coin.py -a 2 & > /dev/null
	fi
done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants