Senophyx / Discord-RPC

An Python wrapper for Discord RPC
https://pypi.org/project/discord-rpc
MIT License
26 stars 9 forks source link

Occasional crash #6

Closed k9ur closed 1 year ago

k9ur commented 2 years ago

Copy of #4 since @LyQuid12 won't reopen it.

Sometimes when RPC.set_activity is called, the script crashes with error

    if output['evt'] == "ERROR":
KeyError: 'evt'

Adding debug print for RPC.output, the error is

{'code': 1003, 'message': 'data size does not match what was received'}

Seems to happen regardless of what the activity is set to.

Pukimaa commented 1 year ago

What is your code that implements discord-rpc?

Senophyx commented 1 year ago

What is your code that implements discord-rpc?

You're right. Sometimes, I'm kinda confused about all the issues, bc they won't include their code.