JagandeepBrar / lunasea

Self-hosted software controller built using Flutter
https://www.lunasea.app
GNU General Public License v3.0
1.28k stars 63 forks source link

[Bug] Lidarr: Failed to Fetch Artists #488

Closed StormPooper closed 2 years ago

StormPooper commented 3 years ago

Describe the Bug When I attempt to access the Artists tab in Lidarr, I get an error and a retry prompt. Looking at the logs, I get the following:

Error Lidarr: Failed to fetch artists
Class package:lunasea/modules/lidarr/core/api/api.dart
Method LidarrAPI.getAllArtists
Exception NoSuchMethodError: The getter 'name' was called on null.
Receiver: null
Tried calling: name

To Reproduce Not 100% sure, happened consistently since I installed it, but only just found the log section in Settings. Looking at the code mentioned, I suspect it is failing to get quality or metadata (which is odd as you're checking if it is null before checking accessing name on it), but as far as I can tell they should all be set. My only potential theory is I have the "Various Artists" special artist in my list with metadata set to None, but I've tried changing it to Everything to no avail. Every artist has been set to the same quality profile (manually confirmed this by setting it again in the Mass Editor).

Expected Behaviour A list of my artists.

Versions LunaSea: 5.1.0 (50100004) Android (Google Play) Lidarr: 0.8.1.2135

Additional context Radarr and Sonarr working with no issues with similar configuration (LinuxServer.io Docker containers). I'm able to add artists and the Missing/History tabs work with no issues.

JagandeepBrar commented 3 years ago

Thank you for the detailed breakdown, I will definitely investigate this for the next release!

StormPooper commented 3 years ago

No problem, let me know if you want me to test any builds against my library.

StormPooper commented 3 years ago

As part of a library cleanup, I changed a few artists to have a metadata profile of None and deleted a couple of artists. It's now working perfectly in LunaSea, so unfortunately I won't be able to test any changes.

My guess is somehow one of the artists had literally no profile rather than the None profile, but I doubt I can get it back into that scenario as it was probably from a much older build, since most of the artists I changed had been in my library from the start.

pr0xyfl00d3r commented 2 years ago

Hi, I'm seeing this issue, via mobile iOS app and he mac app

Screenshot 2021-10-24 at 09 11 41
JagandeepBrar commented 2 years ago

@pr0xyfl00d3r Sorry for the late response, but you are experiencing a different error which is related to incorrectly setting the host for Lidarr and it is unable to parse the response correctly.

pr0xyfl00d3r commented 2 years ago

hi, what sort of setting is wrong? it does list all artist but does not go into an artist

https://user-images.githubusercontent.com/4707492/144128574-d24d6dd2-ec30-4498-9443-1e4400f95481.MP4

?

pr0xyfl00d3r commented 2 years ago

Hi, please can you help, i have got the setting like Sonarr and radarr but they work ok

JagandeepBrar commented 2 years ago

@pr0xyfl00d3r Reach out via one of the support channels (Reddit, Discord, Email) and I can try to help solve the problem!

pr0xyfl00d3r commented 2 years ago

Ok will do

JagandeepBrar commented 2 years ago

@pr0xyfl00d3r Just a heads up, I believe I have found the root cause of this problem and have fixed it for the next release!

Just to confirm my assumptions, are you running the nightly versions of Lidarr?

pr0xyfl00d3r commented 2 years ago

Yes I am, sorry only just seen the msg