ninstar / Rich-Presence-U

Display your Nintendo games on Discord.
GNU General Public License v3.0
133 stars 24 forks source link

Cannot connect to discord #26

Closed JaredKnushfurReal closed 1 year ago

JaredKnushfurReal commented 1 year ago

I've built it from source following the instructions but it always fails to connect to discord with a generic connection error.

ninstar commented 1 year ago

I need additional details:

JaredKnushfurReal commented 1 year ago

I'm running Godot 3x as well as compiling for windows while i'm on windows 10. Godot does give me a missing VCRedist error, but that should only effect the complied name and icon, and not the actual app itself.

JaredKnushfurReal commented 1 year ago

I fixed the rcedit issue just in case as well as swapping to the exact version of Godot you recommended, and yet it still gives me a failed connection error. Even running the program as admin doesn't do anything or make any change. The only idea I could have is maybe since I'm running Vencord and not stock discord, but that shouldn't make a difference. Just for clarity, here's the entire log file: Rich Presence U - 1.1.3 (1130) Windows, en_US, Process: 11736 2023/8/14 18:53:1

[18:52:18] Loading config user://settings.cfg: 0 [18:52:18] Loading config /cache/clients.cfg: 0 [18:52:18] Reading file /cache/titles/wup.csv: 0 [18:52:18] Reading file user://platforms/wup.json: 0 [18:52:18] Opening directory /: 0 [18:52:18] Making directory /cache: 32 [18:52:18] Starting HTTP request (https://gist.github.com/ninstar/19c664a823d3a0312f47f5ac5e52a915/raw): 0 [18:52:18] Establishing connection to Discord... (Autopush: False) [18:52:18] Unable to establish connection to Discord [18:52:19] HTTP request completed: 0 (200) [18:52:19] Loading config /cache/metadata.cfg: 0 [18:52:20] Opening directory /: 0 [18:52:20] Making recursive directory /cache/titles: 0 [18:52:20] Starting HTTP request 1/4 (https://github.com/ninstar/Rich-Presence-U-DB/raw/main/clients.cfg): 0 [18:52:20] HTTP request completed 1/4: 0 (200) [18:52:20] Starting HTTP request 2/4 (https://github.com/ninstar/Rich-Presence-U-DB/raw/main/titles/wup.csv): 0 [18:52:21] HTTP request completed 2/4: 0 (200) [18:52:21] Starting HTTP request 3/4 (https://github.com/ninstar/Rich-Presence-U-DB/raw/main/titles/hac.csv): 0 [18:52:22] HTTP request completed 3/4: 0 (200) [18:52:22] Starting HTTP request 4/4 (https://github.com/ninstar/Rich-Presence-U-DB/raw/main/titles/ctr.csv): 0 [18:52:22] HTTP request completed 4/4: 0 (200) [18:52:22] Loading config /cache/clients.cfg: 0 [18:52:22] Reading file /cache/titles/wup.csv: 0 [18:52:25] Establishing connection to Discord... (Autopush: False) [18:52:25] Unable to establish connection to Discord

ninstar commented 1 year ago

Does this only occurs when you try to connect using the exported binary or it also happens when you try to connect while running it from the IDE? If so, does the debugger itself throw any errors?

I'm running Vencord and not stock discord, but that shouldn't make a difference.

Did you try the official client? Just to make sure.

JaredKnushfurReal commented 1 year ago

Running it from the IDE gives it the same error message with the same log. It seems Vencord was indeed the issue, although I'm not quite sure why, as Vencord shouldn't modify anything, unless a plugin was interfering. But it does indeed work with Stock discord!

JaredKnushfurReal commented 1 year ago

After testing, turns out I had a plugin installed that messed with Discord's RPC functionality, after disabling, it works perfectly!