vsTerminus / Discord-NP

Last.FM Now Playing info in your Discord status message
MIT License
43 stars 6 forks source link

Mojo/UserAgent.pm issues #17

Closed ehrzuli closed 3 years ago

ehrzuli commented 3 years ago

Hi there, I'm encountering this error when I run discordnp.exe on Windows 10:

Tue Dec 1 20:15:29 2020 - Loaded Config: config.ini Use of unauthorized value $loop in hash element at Mojo/UserAgent.pm line 192. Mojo:: Reactor::Poll: I/O watcher failed: Can't call method "remove" on an undefined value at Mojo/UserAgent.pm line 269.

Here are the steps I've taken leading up to this:

I've been able to get another Discord scrobbler to work, so I know the Discord token is correct. I'd just rather use this one if I can because it looks so nice.

Thanks in advance.

vsTerminus commented 3 years ago

Hey, sorry you're having trouble. I'm not entirely sure what the issue is, but I compiled a new version of the application today that runs my latest discord and lastfm code plus adds some validation on the config file.

Could you try updating and see if it solves your problem? https://github.com/vsTerminus/Discord-NP/releases/tag/1.3

If that doesn't do it, there is a log file that might be able to help you:

  1. Open your "config.ini" and set "log_level=debug" at the bottom of the file
  2. Run the application
  3. Look inside "mojo-discord.log" in the same folder where your exe is

Don't share this file, it will log your Discord User Token. (I'll remove that in a future update) But it might help you figure out what's going on.

Let me know how it goes.

ehrzuli commented 3 years ago

Your new version worked perfectly! It looks great in Discord. Thank you so much for your awesome work.