mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
When try to modify the People on an item the server throws a bad request when it shouldn't #6871
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FLKS07 on GitHub (Apr 3, 2025).
Description of the bug
I'm trying to use the jellyfin api to add the People in the items metadata automactly.
When I do a post request to make that effect the server throws a a bad request error to the client.
I'm using the jellyfin api key instead of user and i'm not using the C# sdk.
Here is the json content of the POST request:
Thank you for the time.
Reproduction steps
What is the current bug behavior?
Apperantly the people it's added to the server but gives error messages in the logs and to the client.
What is the expected correct behavior?
The people tab on the metadata item, should be filled acordingly to the json I provided
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
10.10.6
Specify the build version
10.10.6
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
Unhandled exception. System.Exception: Upload failed: BadRequest
()Error processing request.
at JellyApi.PutPeopleMetadataInItem(String itemId, Item itemUpdate) in C:\Users\Flavio\Documents\Scripts\jellyfinApi\src\jellyApi\jellyApi.cs:line 109
at Program.Main() in C:\Users\Flavio\Documents\Scripts\jellyfinApi\Program.cs:line 46
at Program.
Relevant screenshots or videos
No response
Additional information
No response
@GerritKuilder commented on GitHub (Apr 4, 2025):
Ah, thought I was going mad.... Having the same error when trying to update an item...
Version 10.10.6
@FLKS07 commented on GitHub (Apr 4, 2025):
I want to say that I tried with different authentication methods (different Authentication header) and had the same results. What is interesting is the fact that if i do with the browser there is no problem.
@GerritKuilder commented on GitHub (Apr 5, 2025):
As far as chatgpt and I could see is that the error is generated on 'second', which points to the data submitted.
My call is with a javascript axios call: Sending JSON, not stringified.
@NatiSayada commented on GitHub (May 9, 2025):
same here for trying to update items:
@moogar0880 commented on GitHub (May 17, 2025):
I was also hitting this issue. I believe that this error is caused by the fact that there's no null-ness check on the tags before this line is hit.
I was able to stop these errors by always including the
Tagsfield in my API requests, even when it was just an empty list@FrenchGithubUser commented on GitHub (Jul 3, 2025):
After adding this property, I'm getting
Value cannot be null. (Parameter 'source')Then the item's page loads indefinitely and I need to "refresh metadata" in order for it to be accessible again.
Here is what I'm trying to do for anyone interested: https://github.com/FrenchGithubUser/JellyfinMusicMetadataOverride
@jellyfin-bot commented on GitHub (Nov 1, 2025):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@jellyfin-bot commented on GitHub (Nov 23, 2025):
This issue was closed due to inactivity.