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

[Bug]: failed to authorize #59

Closed
2 tasks done
xhyrom opened this issue May 15, 2024 · 5 comments
Closed
2 tasks done

[Bug]: failed to authorize #59

xhyrom opened this issue May 15, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@xhyrom
Copy link

xhyrom commented May 15, 2024

Are you on the latest version?

  • I have updated to the latest version.

Have you tried it with default config?

  • I have tried the 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

@xhyrom xhyrom added the bug Something isn't working label May 15, 2024
@jiriks74
Copy link
Owner

Are any other RichPresence apps working for you?

@xhyrom
Copy link
Author

xhyrom commented May 16, 2024

Are any other RichPresence apps working for you?

VSCode and Intellij presence work perfectly

@jiriks74
Copy link
Owner

jiriks74 commented May 26, 2024

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
Copy link
Author

xhyrom commented May 27, 2024

Sure, take your time ;)

@RootOperator
Copy link

RootOperator commented Jun 18, 2024

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:

  • Arch linux: 6.9.4-arch1-1
  • NeoVim: v0.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants