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

Error when closing shard while starting shards #175

Open
TAG-Epic opened this issue Jan 17, 2023 · 2 comments
Open

Error when closing shard while starting shards #175

TAG-Epic opened this issue Jan 17, 2023 · 2 comments
Labels
scope/nextcore.gateway Any changes to the nextcore.gateway namespace type/bug A bug fix

Comments

@TAG-Epic
Copy link
Member

await gateway.rescale_shards(5)
await gateway.close()

A fully reproducible test is coming in #162

@TAG-Epic TAG-Epic added scope/nextcore.gateway Any changes to the nextcore.gateway namespace type/bug A bug fix labels Jan 17, 2023
@TAG-Epic TAG-Epic moved this to TODO in Nextcore Jan 17, 2023
@TAG-Epic
Copy link
Member Author

Error

Traceback (most recent call last):
  File "/home/epic/Development/nextsnake/nextcore/nextcore/common/times_per/times_per.py", line 105, in acquire
    yield None
  File "/home/epic/Development/nextsnake/nextcore/nextcore/gateway/shard.py", line 399, in _identify_flow
    done, pending = await wait([ready_task, disconnect_task], return_when=FIRST_COMPLETED, timeout=60)
GeneratorExit

@TAG-Epic
Copy link
Member Author

TAG-Epic commented Feb 8, 2023

Another error with same cause

[22:18:28][nextcore.common.dispatcher][dispatcher.py:466][ERROR] Exception occured in event handler
Traceback (most recent call last):
  File "/home/epic/.cache/pypoetry/virtualenvs/nextcore-fOPpounq-py3.10/lib/python3.10/site-packages/nextcore/common/dispatcher.py", line 461, in _run_event_handler
    await maybe_coro(callback, *args)
  File "/home/epic/.cache/pypoetry/virtualenvs/nextcore-fOPpounq-py3.10/lib/python3.10/site-packages/nextcore/common/maybe_coro.py", line 54, in maybe_coro
    return await result
  File "/home/epic/.cache/pypoetry/virtualenvs/nextcore-fOPpounq-py3.10/lib/python3.10/site-packages/nextcore/gateway/shard.py", line 543, in _handle_hello
    await self._identify_flow()  # TODO: Better name?
  File "/home/epic/.cache/pypoetry/virtualenvs/nextcore-fOPpounq-py3.10/lib/python3.10/site-packages/nextcore/gateway/shard.py", line 392, in _identify_flow
    await self._identify()
  File "/home/epic/.cache/pypoetry/virtualenvs/nextcore-fOPpounq-py3.10/lib/python3.10/site-packages/nextcore/gateway/shard.py", line 699, in _identify
    await self._send(payload, wait_until_ready=False)
  File "/home/epic/.cache/pypoetry/virtualenvs/nextcore-fOPpounq-py3.10/lib/python3.10/site-packages/nextcore/gateway/shard.py", line 345, in _send
    assert (
AssertionError: Send rate limit was not set yet. Probably due to not receiving HELLO yet.

@TAG-Epic TAG-Epic moved this from TODO to In progress in Nextcore Feb 8, 2023
@TAG-Epic TAG-Epic assigned TAG-Epic and unassigned TAG-Epic Feb 8, 2023
@TAG-Epic TAG-Epic moved this from In progress to Pending review in Nextcore Mar 16, 2023
@TAG-Epic TAG-Epic moved this from Pending review to TODO in Nextcore Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/nextcore.gateway Any changes to the nextcore.gateway namespace type/bug A bug fix
Projects
Status: TODO
Development

No branches or pull requests

1 participant