Jellyfin Forum
Error processing request. - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Error processing request. (/t-error-processing-request)



Error processing request. - 2MP - 2025-02-05

Im having this issue when i try authorise using the api endpoint AuthenticateByName i get this error
https://gist.github.com/2MPP/e1e3bb83af2d0f29f0e0ce22e7861574

This is the code im excuting and getting this error

Code:
    const authResponse = await axios.post('https://'+ process.env.jellyfinurl +'/Users/AuthenticateByName', {
      Username: process.env.username,
      Pw: process.env.password,
    });



RE: Error processing request. - Felixtw - 2025-08-10

Just registered to say I have the same issue. Logs from the minute of the error happening:

Code:
jellyfin-1  | [01:07:49] [ERR] [71] Rssdp.Infrastructure.SsdpCommunicationsServer: Error sending socket message from 172.21.0.1 to 239.255.255.250:1900
jellyfin-1  | System.Net.Sockets.SocketException (101): Network is unreachable
jellyfin-1  |    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.CreateException(SocketError error, Boolean forAsyncThrow)
jellyfin-1  |    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.SendToAsync(Socket socket, CancellationToken cancellationToken)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(Socket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
jellyfin-1  |    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(Socket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
jellyfin-1  |    at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendMulticastMessage(String message, Int32 sendCount, IPAddress fromLocalIPAddress, CancellationToken cancellationToken)
jellyfin-1  |    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendMulticastMessage(String message, IPAddress fromLocalIPAddress, CancellationToken cancellationToken)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpDeviceLocator.BroadcastDiscoverMessage(String serviceType, TimeSpan mxValue, CancellationToken cancellationToken)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpDeviceLocator.SearchAsync(String searchTarget, TimeSpan searchWaitTime, CancellationToken cancellationToken)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpDeviceLocator.OnBroadcastTimerCallback(Object state)
jellyfin-1  |    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpDeviceLocator.OnBroadcastTimerCallback(Object state)
jellyfin-1  |    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
jellyfin-1  |    at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
jellyfin-1  |    at System.Threading.TimerQueue.FireNextTimers()
jellyfin-1  |    at System.Threading.ThreadPoolWorkQueue.Dispatch()
jellyfin-1  |    at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
jellyfin-1  | --- End of stack trace from previous location ---
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(Socket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
jellyfin-1  | [01:07:49] [ERR] [60] Rssdp.Infrastructure.SsdpCommunicationsServer: Error sending socket message from 172.21.0.1 to 239.255.255.250:1900
jellyfin-1  | System.Net.Sockets.SocketException (101): Network is unreachable
jellyfin-1  |    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.CreateException(SocketError error, Boolean forAsyncThrow)
jellyfin-1  |    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.SendToAsync(Socket socket, CancellationToken cancellationToken)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(Socket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
jellyfin-1  |    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(Socket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
jellyfin-1  |    at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendMulticastMessage(String message, Int32 sendCount, IPAddress fromLocalIPAddress, CancellationToken cancellationToken)
jellyfin-1  |    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
jellyfin-1  |    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
jellyfin-1  |    at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
jellyfin-1  |    at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
jellyfin-1  |    at System.Threading.Tasks.Task.DelayPromise.CompleteTimedOut()
jellyfin-1  |    at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
jellyfin-1  |    at System.Threading.TimerQueue.FireNextTimers()
jellyfin-1  |    at System.Threading.ThreadPoolWorkQueue.Dispatch()
jellyfin-1  |    at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
jellyfin-1  | --- End of stack trace from previous location ---
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(Socket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
jellyfin-1  | [01:07:49] [ERR] [51] Rssdp.Infrastructure.SsdpCommunicationsServer: Error sending socket message from 172.21.0.1 to 239.255.255.250:1900
jellyfin-1  | System.Net.Sockets.SocketException (101): Network is unreachable
jellyfin-1  |    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.CreateException(SocketError error, Boolean forAsyncThrow)
jellyfin-1  |    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.SendToAsync(Socket socket, CancellationToken cancellationToken)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(Socket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
jellyfin-1  |    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(Socket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
jellyfin-1  |    at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendMulticastMessage(String message, Int32 sendCount, IPAddress fromLocalIPAddress, CancellationToken cancellationToken)
jellyfin-1  |    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
jellyfin-1  |    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
jellyfin-1  |    at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
jellyfin-1  |    at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
jellyfin-1  |    at System.Threading.Tasks.Task.DelayPromise.CompleteTimedOut()
jellyfin-1  |    at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
jellyfin-1  |    at System.Threading.TimerQueue.FireNextTimers()
jellyfin-1  |    at System.Threading.ThreadPoolWorkQueue.Dispatch()
jellyfin-1  |    at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
jellyfin-1  | --- End of stack trace from previous location ---
jellyfin-1  |    at Rssdp.Infrastructure.SsdpCommunicationsServer.SendFromSocket(Socket socket, Byte[] messageData, IPEndPoint destination, CancellationToken cancellationToken)
jellyfin-1  | [01:07:56] [ERR] [61] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL POST /Users/AuthenticateByName.
jellyfin-1  | System.ArgumentNullException: Value cannot be null. (Parameter 'request.App')
jellyfin-1  |    at System.ArgumentNullException.Throw(String paramName)
jellyfin-1  |    at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
jellyfin-1  |    at System.ArgumentException.ThrowNullOrEmptyException(String argument, String paramName)
jellyfin-1  |    at System.ArgumentException.ThrowIfNullOrEmpty(String argument, String paramName)
jellyfin-1  |    at Emby.Server.Implementations.Session.SessionManager.AuthenticateNewSessionInternal(AuthenticationRequest request, Boolean enforcePassword)
jellyfin-1  |    at Jellyfin.Api.Controllers.UserController.AuthenticateUserByName(AuthenticateUserByName request)
jellyfin-1  |    at lambda_method1201(Closure, Object)
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
jellyfin-1  | --- End of stack trace from previous location ---
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
jellyfin-1  | --- End of stack trace from previous location ---
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
jellyfin-1  |    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
jellyfin-1  |    at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
jellyfin-1  |    at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
jellyfin-1  |    at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
jellyfin-1  |    at Jellyfin.Api.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
jellyfin-1  |    at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
jellyfin-1  |    at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
jellyfin-1  |    at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
jellyfin-1  |    at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
jellyfin-1  |    at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
jellyfin-1  |    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
jellyfin-1  |    at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
jellyfin-1  |    at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
jellyfin-1  |    at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
jellyfin-1  |    at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)

My bash script:
Code:
JF="http://192.168.2.23:8096"

#Login
read -p "$JF | Username: " username
read -sp "$JF | Password: " password
data=$(cat <<EOF
{
    "Username": "$username",
    "Pw": "$password"
}
EOF
)


curl -X POST $JF/Users/AuthenticateByName \
          -H 'accept: application/json' \
          -H 'Content-Type: application/json' \
          -d "$data" \
          -vvv

And the error:
Code:
http://192.168.2.23:8096 | Username: felix
http://192.168.2.23:8096 | Password: Note: Unnecessary use of -X or --request, POST is already inferred.
*  Trying 192.168.2.23:8096...
* Connected to 192.168.2.23 (192.168.2.23) port 8096 (#0)
> POST /Users/AuthenticateByName HTTP/1.1
> Host: 192.168.2.23:8096
> User-Agent: curl/7.88.1
> accept: application/json
> Content-Type: application/json
> Content-Length: 46
>
< HTTP/1.1 400 Bad Request
< Content-Type: text/plain
< Date: Sun, 10 Aug 2025 01:10:30 GMT
< Server: Kestrel
< Transfer-Encoding: chunked
< X-Response-Time-ms: 4.8835
<
* Connection #0 to host 192.168.2.23 left intact
Error processing request.

Thanks for any help.


RE: Error processing request. - Felixtw - 2025-08-10

I think the most relevant part of the logs is this bit:

Code:
System.ArgumentNullException: Value cannot be null. (Parameter 'request.App')

This means we need to add an App parameter to the request. However adding one it still doesn't work and shows that error. this might be a bug report


RE: Error processing request. - Felixtw - 2025-08-11

resolved this by looking at jftui's source. you should have x-emby-authorization header set, something like this:

Code:
curl -X POST $JF/Users/authenticatebyname \
          -H 'accept: application/json' \
          -H 'Content-Type: application/json' \
          -H 'x-emby-authorization: Mediabrowser Client="mycustomclient", Device="mydevice", DeviceId="myid", Version="1.0.0"' \
          -d "$data" \

hope this helps you OP and anyone else who gets this