cyberjunky/3commas-cyber-bots

Compound Script TimeoutError

schuesslerf opened this issue · 6 comments

I just started using the bot today (only the compound script basically) and in general it seems to work fine. However, sometimes, I'm getting an error, saying the the connection to the 3commas API timed out...

Steps to reproduce the behavior:

  1. Run Compound script
  2. Settings in compound.ini:
[settings]
timezone = Europe/Berlin
timeinterval = 3600
debug = False
logrotate = 7
default-profittocompound = 1.0
3c-apikey = abc123
3c-apisecret = abc123
notifications = True
notify-urls = ["tgram://abc123/?image=False&detect=yes&silent=no&preview=no&format=html&overflow=upstream&rto=4.0&cto=4.0&verify=yes"]

[bot_myBotID]
compoundmode = boso
profittocompound = 1.0
usermaxactivedeals = 5
usermaxsafetyorders = 5
comment = CHZ/USDT Bot
  • 12 more bots with the same settings (just other comment and botID)

Please find a part of the log here:

No (new) deals found for this bot!
2022-11-07 13:47:12 - compound - WARNING - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.3commas.io', port=443): Read timed out. (read timeout=10)")': /public/api/ver1/bots/botID/show
2022-11-07 13:47:24 - compound - WARNING - Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.3commas.io', port=443): Read timed out. (read timeout=10)")': /public/api/ver1/bots/botID/show
2022-11-07 13:47:35 - compound - WARNING - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.3commas.io', port=443): Read timed out. (read timeout=10)")': /public/api/ver1/deals?scope=finished&bot_id=botID&limit=100&order=closed_at
2022-11-07 13:47:47 - compound - WARNING - Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.3commas.io', port=443): Read timed out. (read timeout=10)")': /public/api/ver1/deals?scope=finished&bot_id=botID&limit=100&order=closed_at
2022-11-07 13:47:49 - compound - INFO - Fetched bot start BO '10.0', SO values '10.0' and max. active deals '1'
2022-11-07 13:47:49 - compound - INFO - Finished deals: 0 total profit: 0.0
2022-11-07 13:47:49 - compound - INFO - Profit available to compound: 0.0
2022-11-07 13:47:49 - compound - INFO - Profit available after applying percentage value (1.0): 0.0
2022-11-07 13:47:49 - compound - INFO - Binance AVAX/USDT
No (new) profit made, no BO/SO value updates needed!
2022-11-07 13:47:59 - compound - WARNING - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.3commas.io', port=443): Read timed out. (read timeout=10)")': /public/api/ver1/bots/botID/show
2022-11-07 13:48:11 - compound - WARNING - Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.3commas.io', port=443): Read timed out. (read timeout=10)")': /public/api/ver1/bots/botID/show
2022-11-07 13:48:26 - compound - WARNING - Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.3commas.io', port=443): Read timed out. (read timeout=10)")': /public/api/ver1/bots/botID/show
2022-11-07 13:48:36 - compound - ERROR - Error occurred updating bots: Other error occurred: HTTPSConnectionPool(host='api.3commas.io', port=443): Max retries exceeded with url: /public/api/ver1/bots/botID/show (Caused by ReadTimeoutError("HTTPSConnectionPool(host='api.3commas.io', port=443): Read timed out. (read timeout=10)"))
2022-11-07 13:48:36 - compound - INFO - Next update in 1:00:00 at 14:48:36
2022-11-07 13:48:36 - compound - INFO - Notifying 1 service(s) asynchronously.
2022-11-07 13:48:36 - compound - INFO - Sent Telegram notification.

However, it runs since about 5 hours and this doesn't happen all time - even in that snippet, you can see, that for some bot it worked. It also updated all bots succesfully already.

I'm running the bot on a RasPi with Python3.7 and Raspbian GNU/Linux 10 and the newest release of the bot.

Any idea what the problem is?

Thanks in advance!

It seems 3commas is goofing up again... maybe it will work in a bit
image

Okay, so nothing we can do right now, rather then waiting - got it :)

And is it fixed after the 3commas issues were resolved?

Yeah, seems to be back working fully :)

Good to hear it's working again. I experienced the same during the evening, for every scripts I'm using.

For those who do not know, I recommend that you subscribe to the 3commas status newsletter

status.3commas.io

there you will receive by mail all the minor or serious notifications of the 3C server health