Zentix
Zentix
I used a slightly different way before, but it's unstable when the rabbitmq server is unavailable - if more than two times, then I get this error: ```yaml Connection attempt...
Using `task = asyncio.create_task(connect_rabbitmq())` Now I get this after first getting a message from rabbitmq: ```python Exception ignored in: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/discord/http.py", line 111, in __init__...
Okay, I'll use my old method for now, but via `task = asyncio.create_task(connect_rabbitmq())` What about reconnects? After 15-20 reconnects I get this: ```python Task was destroyed but it is pending!...
Miracles. Sometimes (after restarting the bot) this problem does not occur. Magic again
this problem only occurs when reconnecting to some of the attempts SOMETIMES. Someone has ideas?
The `try:` block prevents this problem from occurring.. Lol what ```python @bot.event async def on_ready(): await bot.change_presence(activity=discord.Game(name=".help")) bot.add_view(Requests()) task = asyncio.create_task(connect_rabbitmq()) print("One") try: await asyncio.sleep(1000) except: print("oooops") traceback.format_exc() else: print("The...
on my local PC everything seems to be fine. But it's not certain yet.
no, the same thing on the test ubuntu 22.04 hyper-v instance
Same thing with this one! On test host! ```python import asyncio import json import traceback import aio_pika async def send(message): nickname = json.loads(message.decode())["nickname"] data = json.loads(message.decode())["data"] print(f"Заявка на ник: {nickname}")...
But this time it took longer to get the problem