Last.fm Scrobbles work with local media, Do not work with Shared Library

Server Version#: Windows Version 1.29.1.6316 (Mine)/macOS 1.29.1.6316-f4cdfea9c (Shared)
Player Version#: Plex Web Version 4.92.0

I’ve ran into an issues where the Last.fm scrobbling works flawlessly on my Media libraries, but it does not work at all on a library that is shared with me. It was my understanding that since scrobbling was done at an account level for last.fm, it should work regardless of the media library. However when I listen to a song on the remote server the scrobble API call fails with a 401 error, which to me means there is an authorization error.

Listening was done on my windows machine where I also run the plex server, connecting to my local server and to a remote macOS server. I have also encountered this issues in PlexAmp.

The first set of logs are from me listening to the song “Cowboy Guilt” on my local server. Once I passed the threshold for the song counting as “Played” (I’m guessing the progress moving beyond 50%), there is a call made to “MyPlex” with the scrobble that works successfully.

Oct 22, 2022 19:57:12.462 [7956] DEBUG - [Req#2776f] Client [elb65ptuxddub0zc6f0ohxkj] reporting timeline state playing, progress of 90000/169000ms for guid=, playbackTime=89915ms ratingKey=34744 url=, key=/library/metadata/34744, containerKey=, metadataId=34744, source=
Oct 22, 2022 19:57:12.465 [7956] DEBUG - [Req#2776f] Library item 34744 'Cowboy Guilt' got played by account 1!
Oct 22, 2022 19:57:12.468 [7956] DEBUG - [Req#2776f] MyPlex: Sending scrobble for account 1 for item 34744.
Oct 22, 2022 19:57:12.468 [7956] DEBUG - [Req#2776f/HCl#137a] HTTP requesting PUT https://plex.tv/pms/:/scrobbles/publish?duration=169064&grandparentTitle=TORRES&guid=plex%3A%2F%2Ftrack%2F5d07ed1e403c640290e0f6be&index=6&metadataType=10&originalTitle=Torres&parentTitle=Sprinter&startPlayback=0&time=169064&title=Cowboy%20Guilt&auth_token=xxxxxxxxxxxxxxxxxxxx
Oct 22, 2022 19:57:12.951 [36188] DEBUG - [HttpClient/HCl#137a] HTTP/2.0 (0.5s) 202 response from PUT https://plex.tv/pms/:/scrobbles/publish?duration=169064&grandparentTitle=TORRES&guid=plex%3A%2F%2Ftrack%2F5d07ed1e403c640290e0f6be&index=6&metadataType=10&originalTitle=Torres&parentTitle=Sprinter&startPlayback=0&time=169064&title=Cowboy%20Guilt&auth_token=xxxxxxxxxxxxxxxxxxxx
Oct 22, 2022 19:57:12.951 [7956] DEBUG - [Req#2776f] MyPlex: Scobbled with result 202

This next set of logs are from me listening to the song “Gary Ashby” on the remote macOS server. Similarly once I reached over 50% of the way through the duration the song was marked as “Played” and a call was made to “MyPlex”. However in this case the response is 401, which I assume is an authorization error.

Oct 22, 2022 22:21:05.015 [0x16bfbb000] DEBUG - [Req#ef8ef] Client [elb65ptuxddub0zc6f0ohxkj] reporting timeline state playing, progress of 70000/130000ms for guid=, playbackTime=69741ms ratingKey=202263 url=, key=/library/metadata/202263, containerKey=, metadataId=202263, source=
Oct 22, 2022 22:21:05.025 [0x16bfbb000] DEBUG - [Req#ef8ef] Library item 202263 'Gary Ashby' got played by account 603362!
Oct 22, 2022 22:21:05.030 [0x16bfbb000] DEBUG - [Req#ef8ef] MyPlex: Sending scrobble for account 603362 for item 202263.
Oct 22, 2022 22:21:05.031 [0x16bfbb000] DEBUG - [Req#ef8ef/HCl#4e95] HTTP requesting PUT https://plex.tv/pms/:/scrobbles/publish?duration=130507&grandparentTitle=Dry%20Cleaning&guid=plex%3A%2F%2Ftrack%2F62a908e96e197fddb8d89255&index=3&metadataType=10&parentTitle=Stumpwork&startPlayback=0&time=130507&title=Gary%20Ashby&auth_token=xxxxxxxxxxxxxxxxxxxx
Oct 22, 2022 22:21:05.120 [0x16bacf000] DEBUG - Completed: [108.176.16.2:45026] 206 GET /video/:/transcode/universal/session/82CCF685-186F-4B26-8B39-8BED86813A56/base/00403.ts (48 live) TLS 14414ms 2723913 bytes (pipelined: 202) (range: bytes=0-) 
Oct 22, 2022 22:21:05.120 [0x16bacf000] DEBUG - Removed transcode data consumer, active count 2 => 1
Oct 22, 2022 22:21:05.146 [0x16bcff000] DEBUG - [HttpClient/HCl#4e95] HTTP/2.0 (0.1s) 401 response from PUT https://plex.tv/pms/:/scrobbles/publish?duration=130507&grandparentTitle=Dry%20Cleaning&guid=plex%3A%2F%2Ftrack%2F62a908e96e197fddb8d89255&index=3&metadataType=10&parentTitle=Stumpwork&startPlayback=0&time=130507&title=Gary%20Ashby&auth_token=xxxxxxxxxxxxxxxxxxxx (reused)
Oct 22, 2022 22:21:05.146 [0x16bfbb000] DEBUG - [Req#ef8ef] MyPlex: Scobbled with result 401

Is there some kind of setting that needs to be enabled so I can still scrobble listens on shared libraries?

1 Like

My friend just encountered this bug as well. 401 results appear in my server log when he tries to scrobble plays.

Edit: Windows 10 Pro 22H2. PMS 1.30.1.6497. Remote plays from Plexamp 4.6.1 for iOS

1 Like

I feel a little bit better knowing I’m not the only one! I have not found any solution at the point unfortunately so still waiting to hear anything back. I did tweet at the (wonderful) Plexamp folks awhile back about this as well, so fingers crossed

I suspect it’s a token error of some sort, but I can’t figure out much from the logs. I know from a previous adventure into modifying the PMS source to send album artist in place of track artist, scrobbling is handled from the executable, not python. It makes it hard to debug. If I get bored I may poke at it some more. Did you try unlinking/relinking last.fm from the remote user’s account? We discussed it but haven’t tried that yet.

Yeah unfortunately the 401 is pretty vague. My guess was a token error as well so I did try relinking my last.fm account and it did not change anything. Out of curiosity do you know if scrobbling from a remote server worked at some point in the past? I only started listening on my friends server earlier this year and to my knowledge none of those scrobbles ever came through.

I think I have a similar issue as well. I can scrobble just fine, but my wife can’t scrobble the music she listens to at all. Tried re-linking Last.fm on her account, but it didn’t work. If someone from Plex could look into what’s going on I’d appreciate it a lot.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.