jiriks74 / presence.nvim

Discord Rich Presence for Neovim
GNU General Public License v3.0
23 stars 6 forks source link

[Bug]: failed to authorize #59

Closed xhyrom closed 3 months ago

xhyrom commented 4 months ago

Are you on the latest version?

Have you tried it with default config?

Description

Trying to use this plugin but without success. It always fail with "Failed to authorize with Discord: Received unexpected nonce - initial-ready (expected nil)"

Neovim version

NVIM: v0.9.5
Build type: None
LuaJIT: 2.1.0-beta3

OS information

linux 6.6.30_1 (Void Linux x86_64)

Steps to reproduce

Open any file

Logs

``` [presence.nvim] Setting up plugin for linux [presence.nvim] Using user-defined Discord client id [presence.nvim] Using XDG runtime path: /run/user/1000/app/com.discordapp.Discord [presence.nvim] Using runtime path: /run/user/1000 [presence.nvim] Using Discord IPC socket path: /run/user/1000/discord-ipc-0 [presence.nvim] Checking Discord IPC socket at /run/user/1000/discord-ipc-0... [presence.nvim] Completed plugin setup [presence.nvim] Getting nvim socket paths... [presence.nvim] Executing command: `ss -lx|grep -E ".+nvim.+"` [presence.nvim] Checked Discord IPC socket, looks good! [presence.nvim] Handling BufEnter event... [presence.nvim] Connecting to Discord... [presence.nvim] Connected to Discord [presence.nvim] Authorizing with Discord... [presence.nvim] Wrote message to pipe [presence.nvim] Got nvim socket paths: { "/run/user/1000/nvim.11826.0" } [presence.nvim] Registering as a new peer to 1 instance(s)... [presence.nvim] Connected to remote nvim instance at /run/user/1000/nvim.11826.0 [presence.nvim] Wrote to remote nvim instance: /run/user/1000/nvim.11826.0 [presence.nvim] Got nvim socket paths: { "/run/user/1000/nvim.11826.0" } [presence.nvim] Registering as a new peer to 1 instance(s)... [presence.nvim] Connected to remote nvim instance at /run/user/1000/nvim.11826.0 [presence.nvim] Wrote to remote nvim instance: /run/user/1000/nvim.11826.0 [presence.nvim] Syncing data from remote peer... [presence.nvim] Synced runtime data from remote peer [presence.nvim] Failed to authorize with Discord: Received unexpected nonce - initial-ready (expected nil) [presence.nvim] Syncing data from remote peer... [presence.nvim] Synced runtime data from remote peer ```

Aditional info

No response

jiriks74 commented 4 months ago

Are any other RichPresence apps working for you?

xhyrom commented 4 months ago

Are any other RichPresence apps working for you?

VSCode and Intellij presence work perfectly

jiriks74 commented 4 months ago

I'm sorry I wasn't able to get to your issue yet, it's finals time and I've got quite a few other things happening in my life RN.

I'll be back as soon as things get better.

xhyrom commented 4 months ago

Sure, take your time ;)

RootOperator commented 3 months ago

The error comes from this line it calls self:call with a payload that has no nonce definded while it expects 'initial-ready' and so it triggers the error

by adding nonce = "initial-ready" to local payload should fix the problem

Tested this on: