forked from Rapptz/discord.py
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Interactions without nonces crash the library #311
Labels
bug
Something isn't working
Comments
Interactions should never not have a nonce to my knowledge. Next time the issue occurs, pleasr provide logs (set log level to debug) so I can figure out what's going wrong. |
|
I- |
dolfies
changed the title
interactions without nonces crash the library
Interactions without nonces crash the library
Jul 3, 2022
dolfies
added
bug
Something isn't working
and removed
unconfirmed bug
Unconfirmed bug
labels
Jul 3, 2022
Do you have another client (selfbot or not) running on the same account by any chance? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
KeyError: 'nonce'
Reproduction Steps
Code
Expected Results
The code works.
Actual Results
Traceback (most recent call last):
File "/home/neoshka/Рабочий стол/clanbot/main.py", line 102, in
App().run(TOKEN)
File "/home/neoshka/venvs/discord_self_bot/lib/python3.8/site-packages/discord/client.py", line 727, in run
asyncio.run(runner())
File "/home/neoshka/.pyenv/versions/3.8.12/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/neoshka/.pyenv/versions/3.8.12/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/neoshka/venvs/discord_self_bot/lib/python3.8/site-packages/discord/client.py", line 724, in runner
await self.start(*args, **kwargs)
File "/home/neoshka/venvs/discord_self_bot/lib/python3.8/site-packages/discord/client.py", line 698, in start
await self.connect(reconnect=reconnect)
File "/home/neoshka/venvs/discord_self_bot/lib/python3.8/site-packages/discord/client.py", line 605, in connect
await self.ws.poll_event()
File "/home/neoshka/venvs/discord_self_bot/lib/python3.8/site-packages/discord/gateway.py", line 609, in poll_event
await self.received_message(msg.data)
File "/home/neoshka/venvs/discord_self_bot/lib/python3.8/site-packages/discord/gateway.py", line 559, in received_message
func(data)
File "/home/neoshka/venvs/discord_self_bot/lib/python3.8/site-packages/discord/state.py", line 2212, in parse_interaction_create
type, name, channel = self._interaction_cache.pop(data['nonce'], (0, None, None))
KeyError: 'nonce'
Process finished with exit code 1
System Information
Checklist
Additional Information
The problem is floating, because the same code worked an hour earlier.
The text was updated successfully, but these errors were encountered: