[Bug]: Error Refreshing Metadata
Before reporting
- [x] I am running the latest version of DVinyl.
- [x] I searched the existing issues and did not find a duplicate.
What happened?
Firstly, this is exactly the type of media database I have been looking for! Thank you for creating this, it is amazing!
Background: I imported my vinyl collection into DVinyl via .csv. Very simple, just artist and title.
Issue: All the albums and artists are showing up in collection, but only ~30% populated with data from Discogs (album art, track list, etc).
Attempted solutions:
-
Admin Panel>Maintenance>Refresh(fast & slow options) - did not add any new albums, just verified albums with the metadata attached
-
Go to album>Refresh info - "Error refreshing metadata"
Suspected: too many requests to Discogs, as referenced by logs
Steps to reproduce
Import artist/title data via CSV Verify metadata pull from discogs
Expected behavior
Populate data for all albums or provide status update. i.e. "Data may take xx minutes to pull from Discogs" or "Refreshing from Discogs xx%"
Additionally, an option to either slow down inquiry rates or try inquiry again after a cool down period.
DVinyl version
3.1.1
How are you running DVinyl?
Docker (pre-built image)
Affected media type or plugin
Music/Vinyl
Browser and device
Safari on MacOS
Logs or screenshots
(This is a small snippet of the logs, as it prints the same error for nearly 120 records)
[music] Enrichment failed for "Living Proof": HTTP error! status: 429
[music] Enrichment failed for "Zaba": HTTP error! status: 429
[music] Enrichment failed for "My God!": HTTP error! status: 429
[music] Enrichment failed for "RKS": HTTP error! status: 429
[music] Enrichment failed for "The Fall": HTTP error! status: 429
Hey! Thank you so much, really glad DVinyl turned out to be what you were looking for :D
You nailed the cause, and it's a bug on my side: the import hammers Discogs too fast, hits the rate limit, and everything after the first batch lands empty. The two refresh options can't rescue those, because they only ever work on albums that already got linked to Discogs, which is why they looked like they did nothing.
For now the way out is to re-run the exact same CSV with "Complete from the API" ticked. It only fills in what's still empty and leaves everything else alone, so it's safe to run a few times, and smaller files will get further on each pass.
I'll slow the import down properly, make it wait and retry instead of giving up, and have it actually tell you how many came in empty. No promises on timing, maybe today within the next update, but this one's going on the list. Thanks for the clear report and the logs, they made this really easy to pin down :D
Hi! I just released version 3.1.2, which should fix this :D
Your suspicion was right, it was the rate limit. The issue was caused by Discogs rate limits. When Discogs sent a “too many requests” error, the import created the item without linking it to Discogs. That’s why the refresh tools couldn’t fix it later.
This is now fixed in version 3.1.2. The import will retry when Discogs rate-limits it and slow down to avoid the problem.
You can import the same CSV again. It won’t create duplicates, it will update the existing items with the missing data. It will be a bit slower, but that’s intentional!
Feel free to reopen the issue if you run into any problems! And Thanks again ;)