Jump to content

IHttpResultFactory System.NullReferenceException


pünktchen

Recommended Posts

pünktchen

@LukeHas something changed in regard to "IHttpResultFactory.GetResult"  in Emby 4.8.0.30 that is not reflected in the available nuget package?
I'm using IHttpResultFactory.GetResult(ReadOnlySpan<char> content, string contentType, IDictionary<string, string> responseHeaders = null) a lot and never encountered any problems before.

2023-04-24 20:22:05.536 Error Server: Error processing request
	*** Error Report ***
	Version: 4.8.0.30
	Command line: D:\emby.windows.beta\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows 10.0.18363
	Framework: .NET 6.0.16
	OS/Process: x64/x64
	Runtime: D:/emby.windows.beta/system/System.Private.CoreLib.dll
	Processor count: 8
	Data path: D:\emby.windows.beta
	Application path: D:\emby.windows.beta\system
	System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
	   at Emby.Server.Implementations.HttpServer.HttpResultFactory.AddNoCacheHeaders(IRequest requestContext, IDictionary`2 responseHeaders)
	   at Emby.Server.Implementations.HttpServer.HttpResultFactory.GetHttpResult(IRequest requestContext, ReadOnlySpan`1 content, ReadOnlySpan`1 contentType, Boolean addCachePrevention, IDictionary`2 responseHeaders)
	   at Emby.Server.Implementations.HttpServer.HttpResultFactory.GetResult(ReadOnlySpan`1 content, String contentType, IDictionary`2 responseHeaders)
	   at VirtualTV.Services.VirtualTVService.Get(GetUserFolders 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, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void AddNoCacheHeaders(MediaBrowser.Model.Services.IRequest, System.Collections.Generic.IDictionary`2[System.String,System.String])

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...