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

Jellyfin Webhook cannot post to Multiscrobbler #92

Closed
Cwavs opened this issue Aug 31, 2023 · 8 comments
Closed

Jellyfin Webhook cannot post to Multiscrobbler #92

Cwavs opened this issue Aug 31, 2023 · 8 comments

Comments

@Cwavs
Copy link

Cwavs commented Aug 31, 2023

Please check the FAQ before submitting a bug report.

Describe the bug
Seemingly since the release of 0.5.0 I noticed none of my music was being scrobbled from jellyfin. On checking the jellyfin logs it seems that Jellyfin is unable to post to multi-scrobbler so multi-scrobbler never sees any data. My configuration hasn't changed since the previous version

To Reproduce
Steps to reproduce the behavior:

  1. Listen to a song on Jellyfin

Expected behavior
Jellyfin's webhook posts to multi-scrobbler successfully and multi-scrobbler scrobbles the song

Logs
If possible reproduce the issue with debug logging ON
From Jellyfin:

[2023-08-31 08:29:32.959 +00:00] [WRN] Notification failed with "POST" request to http://localhost:9078/jellyfin/api/jellyfin/ingress: "{\"ServerId\":\"3994a23f6dec4020b896c3d5ce56f655\",\"ServerName\":\"Cwavs\u0027 Media Server\",\"ServerVersion\":\"10.8.10\",\"ServerUrl\":\"https://jellyfin.cwavs.xyz\",\"NotificationType\":\"PlaybackProgress\",\"Timestamp\":\"2023-08-31T08:29:32.9450098+00:00\",\"UtcTimestamp\":\"2023-08-31T08:29:32.9450944Z\",\"Name\":\"Ain\u0027t No Rest for the Wicked\",\"Overview\":\"\",\"Tagline\":\"\",\"ItemId\":\"1ac596e6276dd34c577c917cc40bb6bf\",\"ItemType\":\"Audio\",\"RunTimeTicks\":1746800000,\"RunTime\":\"00:02:54\",\"Year\":2008,\"Album\":\"Ain\u0027t No Rest For The Wicked (Single)\",\"Artist\":\"Cage the Elephant\",\"Provider_musicbrainzalbumartist\":\"b41b38d4-ef3e-4f37-8c75-cfe9af999696\",\"Provider_musicbrainzartist\":\"b41b38d4-ef3e-4f37-8c75-cfe9af999696\",\"Provider_musicbrainzalbum\":\"1b16cf6e-0d2d-4b04-b86d-834878bf6d4c\",\"Provider_musicbrainzreleasegroup\":\"b1919e0f-d60d-4990-8f75-0aa9f6b7a19b\",\"Provider_musicbrainztrack\":\"36108a52-7920-47d0-9889-028003a67882\",\"Audio_0_Title\":\"FLAC - Stereo\",\"Audio_0_Type\":\"Audio\",\"Audio_0_Language\":null,\"Audio_0_Codec\":\"flac\",\"Audio_0_Channels\":2,\"Audio_0_Bitrate\":977943,\"Audio_0_SampleRate\":44100,\"Audio_0_Default\":false,\"PlaybackPositionTicks\":1548913760,\"PlaybackPosition\":\"00:02:34\",\"MediaSourceId\":\"1ac596e6276dd34c577c917cc40bb6bf\",\"IsPaused\":false,\"IsAutomated\":true,\"DeviceId\":\"e0719aa9e119be64\",\"DeviceName\":\"T799H\",\"ClientName\":\"Finamp\",\"NotificationUsername\":\"Cwavs\",\"UserId\":\"900c8916238241da83fa860367a592cb\"}"
[2023-08-31 08:29:32.959 +00:00] [WRN] Notification failed with response status code NotFound: "<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"utf-8\">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /jellyfin/api/jellyfin/ingress</pre>
</body>
</html>
"

From multi-scrobbler:

2023-08-31T08:24:10+00:00 info : [Sources] jellyfin (Jellyfin) source initialized
2023-08-31T08:24:10+00:00 warn : [Sources] [Jellyfin - Jellyfin] Initializing, but with no filters! All tracks from all users on all servers will be scrobbled.
2023-08-31T08:24:10+00:00 debug : [Sources] (Jellyfin) Constructing jellyfin source
2023-08-31T08:24:10+00:00 debug : [Sources] listenbrainz has 'configureAs: client' so will skip adding as a source
2023-08-31T08:24:10+00:00 debug : [Sources] lastfm did not have 'configureAs' specified! Assuming 'client' so will skip adding as a source
2023-08-31T08:24:09+00:00 info : [Scrobblers] listenbrainz (brainz) client auth OK
2023-08-31T08:24:09+00:00 debug : [Scrobblers] Checking listenbrainz (brainz) client auth...
2023-08-31T08:24:09+00:00 info : [Scrobblers] listenbrainz (brainz) client initialized
2023-08-31T08:24:09+00:00 debug : [Scrobblers] Attempting listenbrainz (brainz) initialization...
2023-08-31T08:24:09+00:00 debug : [Scrobblers] Constructing listenbrainz (brainz) client...
2023-08-31T08:24:09+00:00 info : [Scrobblers] lastfm (LastFM) client auth OK
2023-08-31T08:24:09+00:00 info : [API - Lastfm - LastFM] Client authorized for user Cwavs
2023-08-31T08:24:08+00:00 debug : [Scrobblers] Checking lastfm (LastFM) client auth...
2023-08-31T08:24:08+00:00 info : [Scrobblers] lastfm (LastFM) client initialized
2023-08-31T08:24:08+00:00 debug : [Scrobblers] Attempting lastfm (LastFM) initialization...
2023-08-31T08:24:08+00:00 debug : [Scrobblers] Constructing lastfm (LastFM) client...
2023-08-31T08:24:08+00:00 info : [API] Server started:
---> Local http://localhost:9078 ---> Network http://10.88.0.17:9078 ---> Network (IPv6) http://[fe80::60f2:28ff:fec5:b90a]:9078
2023-08-31T08:24:08+00:00 debug : [App] Config Dir ENV: /config -> Resolved: /config

Versions (please complete the following information):
Provide version information for any related sources/clients.

  • multi-scrobbler: 0.5.0 on podman
  • jellyfin: 10.8.10

Additional context
I'm not entirely sure if this is an issue with multi-scrobbler or my configuration. I hadn't touched it until this morning when I noticed listenbrainz was missing any tracks I'd listened to after the 29th. I did take a look at the list of breaking changes on the release, and the release candidate, but I couldn't see anything that should have affected me. My configuration is incredibly simple!

@FoxxMD
Copy link
Owner

FoxxMD commented Aug 31, 2023

Thanks for the logs. Can you confirm for me that you can access the the dashboard at http://localhost:9078 ?

FoxxMD added a commit that referenced this issue Aug 31, 2023
Should not be appending to route but replacing...see if leading slash fixes things
@FoxxMD
Copy link
Owner

FoxxMD commented Aug 31, 2023

Can you try out foxxmd/multi-scrobbler:develop docker image?

@Cwavs
Copy link
Author

Cwavs commented Aug 31, 2023

Thanks for the logs. Can you confirm for me that you can access the the dashboard at http://localhost:9078 ?

Yes I can!

Can you try out foxxmd/multi-scrobbler:develop docker image?

Sure I'll give it a shot now.

@Cwavs
Copy link
Author

Cwavs commented Aug 31, 2023

I can confirm it works on develop!

@FoxxMD
Copy link
Owner

FoxxMD commented Aug 31, 2023

By any chance does your jellyfin endpoint, in the webhook plugin, have a trailing slash like this:

http://localhost:9078/jellyfin/

@Cwavs
Copy link
Author

Cwavs commented Aug 31, 2023

Yes it does, should I remove that?

@FoxxMD
Copy link
Owner

FoxxMD commented Aug 31, 2023

Thanks for confirming that 👍 that's what was causing the issue. The fix I introduced accounts for that now so there's no need to remove it.

@FoxxMD
Copy link
Owner

FoxxMD commented Aug 31, 2023

Fixed in https://github.com/FoxxMD/multi-scrobbler/releases/tag/0.5.1 -- you can switch back to (update) latest or 0.5.1 docker image tag after actions finish building docker images

@FoxxMD FoxxMD closed this as completed Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants