mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[Issue]: roblem with URI #3669
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 @bibitocarlos on GitHub (Mar 13, 2022).
Please describe your bug
Hi,
With Alpha 5, i cant connect to my jellyfin server using the URI, just using the IP works, as shown in the log.
Jellyfin Version
Other
if other:
10.8.Alpha5
Environment
Jellyfin logs
FFmpeg logs
No response
Please attach any browser or client logs here
No response
Please attach any screenshots here
No response
Code of Conduct
@crobibero commented on GitHub (Mar 19, 2022):
How are you connecting to your Jellyfin instance? Any chance you're using a socket file?
@bibitocarlos commented on GitHub (May 27, 2022):
No socket file.
Still happens with latest release.
nginx.conf
`
location /jellyfin/ {
proxy_pass http://192.168.1.11:8096/jellyfin/;
proxy_pass_request_headers on;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_buffering off;
`
@bibitocarlos commented on GitHub (May 27, 2022):
http://192.168.1.11:8096/jellyfin/ is accessible
@bibitocarlos commented on GitHub (Jun 3, 2022):
Debug log in debug mode 👍
[08:00:34] [ERR] [32] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL GET /system/info/public. System.ArgumentException: Invalid URI: The URI scheme is not valid. (Parameter 'value') at System.UriBuilder.set_Scheme(String value) at Emby.Server.Implementations.ApplicationHost.GetLocalApiUrl(String hostname, String scheme, Nullable1 port)at Emby.Server.Implementations.ApplicationHost.GetSmartApiUrl(HttpRequest request)
at Emby.Server.Implementations.ApplicationHost.GetPublicSystemInfo(HttpRequest request)
at Jellyfin.Api.Controllers.SystemController.GetPublicSystemInfo()
at lambda_method312(Closure , Object , Object[] )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Jellyfin.Server.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
at Jellyfin.Server.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
at Jellyfin.Server.Middleware.IpBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
at Jellyfin.Server.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Jellyfin.Server.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Jellyfin.Server.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
at Jellyfin.Server.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
at Jellyfin.Server.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context)
at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context)`
@bibitocarlos commented on GitHub (Jun 3, 2022):
Beta 3.
It happens at the page of the server choice
Connection Failure We're unable to connect to the selected server right now. Please ensure it is running and try again@bibitocarlos commented on GitHub (Jun 13, 2022):
Still happens with the release :
'+1: juin 12 18:46:21 bibiserveur dotnet[337738]: System.ArgumentException: Invalid URI: The URI scheme is not valid. (Parameter 'value')
juin 12 18:46:21 bibiserveur dotnet[337738]: [18:46:21] [ERR] [35] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL GET /System/Info/Public.'
@glatigny commented on GitHub (Jun 14, 2022):
You should remove the line
proxy_set_header X-Forwarded-Proto $remote_addr;.Sending a wrong scheme value is messing with the UriBuilder.
Best is to use the latest version of the documentation : https://jellyfin.org/docs/general/networking/nginx.html
@alashow commented on GitHub (Jun 30, 2022):
I had the same issue, removing
proxy_set_header X-Forwarded-Proto $remote_addr;from nginx config fixed it.@jellyfin-bot commented on GitHub (Mar 29, 2023):
This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.