#cannot get discord gateway working

1 messages · Page 1 of 1 (latest)

normal wave
#

im a newer dev so if this is me being an actual idiot i do apologize

#
Traceback (most recent call last):
  File "/home/louie/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/tasks.py", line 500, in wait_for
    return fut.result()
           ^^^^^^^^^^^^
  File "/home/louie/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/locks.py", line 213, in wait
    await fut
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/louie/.hermes/hermes-agent/gateway/platforms/discord.py", line 626, in connect
    await asyncio.wait_for(self._ready_event.wait(), timeout=30)
  File "/home/louie/.local/share/uv/python/cpython-3.11.15-linux-x86_64-gnu/lib/python3.11/asyncio/tasks.py", line 502, in wait_for
    raise exceptions.TimeoutError() from exc
TimeoutError
WARNING gateway.run: ✗ discord failed to connect
ERROR gateway.run: Gateway failed to connect any configured messaging platform: discord: failed to connect
ERROR asyncio: Task exception was never retrieved
future: <Task finished name='Task-2' coro=<Client.start() done, defined at /home/louie/.hermes/hermes-agent/venv/lib/python3.11/site-packages/discord/client.py:829> exception=PrivilegedIntentsRequired("Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.")>
Traceback (most recent call last):
  File "/home/louie/.hermes/hermes-agent/venv/lib/python3.11/site-packages/discord/client.py", line 851, in start
    await self.connect(reconnect=reconnect)
  File "/home/louie/.hermes/hermes-agent/venv/lib/python3.11/site-packages/discord/client.py", line 775, in connect
    raise PrivilegedIntentsRequired(exc.shard_id) from None
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.
ERROR asyncio: Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7be17ca5fcd0>
louie@LouiePC:~$```
full dragon
normal wave
#

i just fixed it

#

thank you for your time!

#

quick question though @full dragon , does the gateway always run? or do i need to restart it everytime?

#

and should i keep this running on my personal machine? just the gateway of course, i dont leave my lm studio dev server on at all times,

full dragon
#

if you installed it as a service, it should be able to stay running with hermes gateway start.

#

if you didn't install as a service, you'll need to start it each time.

normal wave
#

how could i vcerify which one i did?

#

do not remember tbh

#

idk if theres a way to check from command line or config etc

full dragon
#

good question. let me see if i can find an answer

normal wave
#

thank you!

#

i just dont want to stop the LM studio dev server and never get the gateway working again lmao

full dragon
#

Run:

hermes gateway status

If Hermes says Gateway service is not installed, then you did not install it as a service.

If it says the gateway service is running or stopped, then you did install it as a service.

You can also check directly on Linux with:

systemctl --user status hermes-gateway

#

hope this helps! feel free to ask anything you need clarification for.

normal wave
#

assuming im good?

#

like i can keep this running with no issue and just turn off my local dev servers of lm studio etc?

full dragon
normal wave
#

ok so ill keep it running, assuming its lightweight?

full dragon
#

you can keep it running, though without your configured inference provider, lmtudio running, any cron jobs will fail. you can turn it off and on via hermes gateway stop and hermes gateway start and shouldnt have any issue.

#

regarding if it's lightweight or not... that just depends on if you consider this lightweight. (it shows resource stats on that status output)

full dragon
#

np, any time!

humble otter
#

is this sorted?

full dragon
#

yep. they're up and running i do believe.