MyFaith 0 Posted February 22, 2025 Posted February 22, 2025 (edited) When calling the API "postItemsByItemid," an error message was returned: Value cannot be null. (Parameter 'source'), see (attachments 1~2.) When I entered the album page, the title had already been updated, but it was updated on the album list page. (attachment 3~4) I want to know how to solve this problem? I have consulted a lot of documents, but the source parameter is not mentioned in them. In addition, how to resolve the inconsistency between the detail page and the list page through the API approach? Thank you for your answer~ Edited February 22, 2025 by MyFaith
ikr_7 1 Posted April 13, 2025 Posted April 13, 2025 (edited) Hi, I encountered exact same error when calling postItemsByItemid API to update item's name. The request parameters are almost exact the same as @MyFaith 's case, except I my case the library type is "Home videos & photos" here's the corresponding part of the embyserver.txt: 2025-04-13 23:19:45.199 Info Server: http/1.1 POST http://host1:8096/emby/Items/2797. Source Ip: host5, UserAgent: Deno/2.2.1 2025-04-13 23:19:45.200 Error Server: Error processing request *** Error Report *** Version: 4.8.11.0 Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3 Operating system: Linux version 6.12.19-1-lts (linux-lts@archlinux) (gcc (GCC) 14.2.1 20250207, GNU ld (GNU Binutils) 2.44) #1 SMP PREEMPT_DYNAMIC Thu, 13 Mar 2025 15:2 Framework: .NET 6.0.36 OS/Process: x64/x64 Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.36/System.Private.CoreLib.dll Processor count: 12 Data path: /var/lib/emby Application path: /usr/lib/emby-server System.ArgumentNullException: System.ArgumentNullException: Value cannot be null. (Parameter 'source') at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Emby.Api.ItemUpdateService.UpdateItem(BaseItemDto request, BaseItem item) at Emby.Api.ItemUpdateService.Post(UpdateItem request) at Emby.Server.Implementations.Services.ServiceController.<>c__DisplayClass8_0.<VoidActionDelegate>b__0(Object service, Object request) at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req, Type serviceType) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IServerApplicationHost appHost, IRequest httpReq, IResponse httpRes, IStreamHelper streamHelper, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: System.Linq TargetSite: Void ThrowArgumentNullException(System.Linq.ExceptionArgument) 2025-04-13 23:19:45.200 Info Server: http/1.1 Response 400 to host5. Time: 1ms. POST http://host1:8096/emby/Items/2797 Thank you! Edited April 13, 2025 by ikr_7
Luke 42077 Posted April 13, 2025 Posted April 13, 2025 You can't just supply a portion of an item. You have to pull the original item down first, change the fields that you want to change, and then send the whole thing back.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now