Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jellyfin "We could not connect to the Emby server Jellyfin!" #3245

Closed
bugsyb opened this issue Nov 11, 2019 · 22 comments
Closed

Jellyfin "We could not connect to the Emby server Jellyfin!" #3245

bugsyb opened this issue Nov 11, 2019 · 22 comments

Comments

@bugsyb
Copy link

bugsyb commented Nov 11, 2019

Describe the bug
Emby/Jellyfin "Test Connectivity" raises message:
"We could not connect to the Emby server Jellyfin!"

Whilst at the same time it generates traffic as seen below (port 8096, default for Jellyfin):

2372 139.316571019    127.0.0.1 → 127.0.0.1    HTTP 218 GET /emby/users HTTP/1.1 
 2373 139.318348513    127.0.0.1 → 127.0.0.1    HTTP 185 HTTP/1.1 302 Found 
 2374 139.318359974    127.0.0.1 → 127.0.0.1    TCP 54 43273 → 8096 [ACK] Seq=1474 Ack=41972 Win=511 Len=0
 2375 139.318646736    127.0.0.1 → 127.0.0.1    HTTP 231 GET /jellyfin/web/index.html HTTP/1.1 
 2376 139.321389401    127.0.0.1 → 127.0.0.1    HTTP 8291 HTTP/1.1 200 OK  (text/html)
 2377 139.365163005    127.0.0.1 → 127.0.0.1    TCP 54 43273 → 8096 [ACK] Seq=1651 Ack=50209 Win=512 Len=0

"Discover Server Information" generates following traffic:

 2416 382.809762833    127.0.0.1 → 127.0.0.1    HTTP 175 GET /emby/System/Info/public HTTP/1.1 
 2417 382.810545525    127.0.0.1 → 127.0.0.1    HTTP 185 HTTP/1.1 302 Found 
 2418 382.810556050    127.0.0.1 → 127.0.0.1    TCP 54 42371 → 8096 [ACK] Seq=364 Ack=8500 Win=65408 Len=0
 2419 382.810755411    127.0.0.1 → 127.0.0.1    HTTP 175 GET /jellyfin/web/index.html HTTP/1.1 
 2420 382.812776175    127.0.0.1 → 127.0.0.1    HTTP 8291 HTTP/1.1 200 OK  (text/html)
 2421 382.853245925    127.0.0.1 → 127.0.0.1    TCP 54 42371 → 8096 [ACK] Seq=485 Ack=16737 Win=65536 Len=0

To Reproduce
Setup Jellyfin server (no SSL)

Expected behavior
Test connectivity should not raise an error.

Logs

=> /opt/Ombi/Logs/log-20191111.txt <==
2019-11-11 12:59:40.119 +01:00 [Debug] Batch acquisition of 1 triggers
2019-11-11 12:59:41.575 +01:00 [Error] Could not test Emby
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Ombi.Api.Api.Request[T](Request request) in C:\projects\requestplex\src\Ombi.Api\Api.cs:line 78
   at Ombi.Api.Emby.EmbyApi.GetUsers(String baseUri, String apiKey) in C:\projects\requestplex\src\Ombi.Api.Emby\EmbyApi.cs:line 33
   at Ombi.Controllers.External.TesterController.Emby(EmbyServers settings) in C:\projects\requestplex\src\Ombi\Controllers\External\TesterController.cs:line 293

==> /var/log/syslog <==
Nov 11 12:59:41 host Ombi[2216]: #033[41m#033[30mfail#033[39m#033[22m#033[49m: Ombi.Controllers.External.TesterController[1000]
Nov 11 12:59:41 host Ombi[2216]:       Could not test Emby
Nov 11 12:59:41 host Ombi[2216]: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
Nov 11 12:59:41 host Ombi[2216]:    at Newtonsoft.Json.JsonTextReader.ParseValue()
Nov 11 12:59:41 host Ombi[2216]:    at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
Nov 11 12:59:41 host Ombi[2216]:    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
Nov 11 12:59:41 host Ombi[2216]:    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
Nov 11 12:59:41 host Ombi[2216]:    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
Nov 11 12:59:41 host Ombi[2216]:    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
Nov 11 12:59:41 host Ombi[2216]:    at Ombi.Api.Api.Request[T](Request request) in C:\projects\requestplex\src\Ombi.Api\Api.cs:line 78
Nov 11 12:59:41 host Ombi[2216]:    at Ombi.Api.Emby.EmbyApi.GetUsers(String baseUri, String apiKey) in C:\projects\requestplex\src\Ombi.Api.Emby\EmbyApi.cs:line 33
Nov 11 12:59:41 host Ombi[2216]:    at Ombi.Controllers.External.TesterController.Emby(EmbyServers settings) in C:\projects\requestplex\src\Ombi\Controllers\External\TesterController.cs:line 293

Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

Ombi Version:

  • Ombi Version 3.0.4817
  • Jellyfin: 10.4.1
@ombi-bot
Copy link
Contributor

Hi!
Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.
Have you looked at the wiki yet? https://github.com/tidusjar/ombi/wiki/
Before posting make sure you also read our FAQ.
Make the title describe your issue. Having 'not working' or 'I get this bug' for 100 issues, isn't really helpful.
If we need more information or there is some progress we tag the issue or update the tag and keep you updated.
Thanks!
Ombi Bot.

@tidusjar
Copy link
Collaborator

What's happening is that the hostname or IP and port you have provided, we cannot talk to the API for some reason. Have you double checked your settings?

@stephanrenggli
Copy link

Currently having the same issue.
I run both Jellyfin and Ombi in docker so I have it configured via internal DNS (which works for Plex, Sonarr, Radarr, etc.) as well.

This is my configuration:
image

This is the stack trace:

Could not test Emby
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Ombi.Api.Api.Request[T](Request request) in C:\projects\requestplex\src\Ombi.Api\Api.cs:line 78
   at Ombi.Api.Emby.EmbyApi.GetUsers(String baseUri, String apiKey) in C:\projects\requestplex\src\Ombi.Api.Emby\EmbyApi.cs:line 33
   at Ombi.Controllers.External.TesterController.Emby(EmbyServers settings) in C:\projects\requestplex\src\Ombi\Controllers\External\TesterController.cs:line 293

@ombi-bot
Copy link
Contributor

ombi-bot commented Nov 11, 2019 via email

@stephanrenggli
Copy link

Here you go, I hope this helps. I changed all the settings to "Debug".

2019-11-11 20:31:01.455 +01:00 [Information] Default Quartz.NET properties loaded from embedded resource file
2019-11-11 20:31:01.506 +01:00 [Debug] TaskSchedulingThreadPool configured with max concurrency of 10 and TaskScheduler ThreadPoolTaskScheduler.
2019-11-11 20:31:01.512 +01:00 [Information] Initialized Scheduler Signaller of type: Quartz.Core.SchedulerSignalerImpl
2019-11-11 20:31:01.513 +01:00 [Information] Quartz Scheduler v."3.0.7.0" created.
2019-11-11 20:31:01.515 +01:00 [Information] RAMJobStore initialized.
2019-11-11 20:31:01.520 +01:00 [Information] Scheduler meta-data: Quartz Scheduler (v3.0.7.0) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'Quartz.Core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'Quartz.Simpl.DefaultThreadPool' - with 10 threads.
  Using job-store 'Quartz.Simpl.RAMJobStore' - which does not support persistence. and is not clustered.

2019-11-11 20:31:01.520 +01:00 [Information] Quartz scheduler 'DefaultQuartzScheduler' initialized
2019-11-11 20:31:01.520 +01:00 [Information] Quartz scheduler version: 3.0.7.0
2019-11-11 20:31:01.521 +01:00 [Information] JobFactory set to: Ombi.Schedule.IoCJobFactory
2019-11-11 20:31:01.609 +01:00 [Information] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
2019-11-11 20:31:01.615 +01:00 [Debug] Batch acquisition of 0 triggers
2019-11-11 20:31:01.881 +01:00 [Information] Starting Hangfire Server
2019-11-11 20:31:01.882 +01:00 [Information] Using job storage: 'Hangfire.MemoryStorage.MemoryStorage'
2019-11-11 20:31:01.882 +01:00 [Information] Using the following options for Hangfire Server:
2019-11-11 20:31:01.882 +01:00 [Information]     Worker count: 1
2019-11-11 20:31:01.883 +01:00 [Information]     Listening queues: 'default'
2019-11-11 20:31:01.883 +01:00 [Information]     Shutdown timeout: 1.00:00:00
2019-11-11 20:31:01.883 +01:00 [Information]     Schedule polling interval: 00:00:15
2019-11-11 20:31:01.889 +01:00 [Debug] Background process 'BackgroundProcessingServer' started.
2019-11-11 20:31:01.913 +01:00 [Debug] Background process 'ServerWatchdog' started.
2019-11-11 20:31:01.913 +01:00 [Debug] Background process 'ServerHeartbeat' started.
2019-11-11 20:31:01.913 +01:00 [Debug] Background process 'Composite C1 Records Expiration Manager' started.
2019-11-11 20:31:01.913 +01:00 [Debug] Background process 'Counter Table Aggregator' started.
2019-11-11 20:31:01.914 +01:00 [Debug] Background process 'DelayedJobScheduler' started.
2019-11-11 20:31:01.914 +01:00 [Debug] Background process 'Worker #1d72f9a0' started.
2019-11-11 20:31:01.914 +01:00 [Debug] Background process 'RecurringJobScheduler' started.
2019-11-11 20:31:02.087 +01:00 [Debug] Compatibility switch "AllowInputFormatterExceptionMessages" in type "MvcJsonOptions" is using default value False
2019-11-11 20:31:02.112 +01:00 [Debug] Compatibility switch "AllowCombiningAuthorizeFilters" in type "MvcOptions" is using default value False
2019-11-11 20:31:02.112 +01:00 [Debug] Compatibility switch "AllowBindingHeaderValuesToNonStringModelTypes" in type "MvcOptions" is using default value False
2019-11-11 20:31:02.112 +01:00 [Debug] Compatibility switch "AllowValidatingTopLevelNodes" in type "MvcOptions" is using default value False
2019-11-11 20:31:02.113 +01:00 [Debug] Compatibility switch "InputFormatterExceptionPolicy" in type "MvcOptions" is using default value AllExceptions
2019-11-11 20:31:02.113 +01:00 [Debug] Compatibility switch "SuppressBindingUndefinedValueToEnumType" in type "MvcOptions" is using default value False
2019-11-11 20:31:02.113 +01:00 [Debug] Compatibility switch "EnableEndpointRouting" in type "MvcOptions" is using default value False
2019-11-11 20:31:02.113 +01:00 [Debug] Compatibility switch "MaxValidationDepth" in type "MvcOptions" is using default value "(null)"
2019-11-11 20:31:02.113 +01:00 [Debug] Compatibility switch "AllowShortCircuitingValidationWhenNoValidatorsArePresent" in type "MvcOptions" is using default value False
2019-11-11 20:31:02.129 +01:00 [Debug] Compatibility switch "SuppressMapClientErrors" in type "ApiBehaviorOptions" is using compatibility value True for version Version_2_0
2019-11-11 20:31:02.129 +01:00 [Debug] Compatibility switch "SuppressUseValidationProblemDetailsForInvalidModelStateResponses" in type "ApiBehaviorOptions" is using compatibility value True for version Version_2_0
2019-11-11 20:31:02.129 +01:00 [Debug] Compatibility switch "AllowInferringBindingSourceForCollectionTypesAsFromQuery" in type "ApiBehaviorOptions" is using compatibility value True for version Version_2_0
2019-11-11 20:31:02.137 +01:00 [Debug] Compatibility switch "AllowAreas" in type "RazorPagesOptions" is using default value False
2019-11-11 20:31:02.137 +01:00 [Debug] Compatibility switch "AllowMappingHeadRequestsToGetHandler" in type "RazorPagesOptions" is using default value False
2019-11-11 20:31:02.137 +01:00 [Debug] Compatibility switch "AllowDefaultHandlingForOptionsRequests" in type "RazorPagesOptions" is using default value False
2019-11-11 20:31:02.141 +01:00 [Debug] Compatibility switch "AllowRecompilingViewsOnFileChange" in type "RazorViewEngineOptions" is using compatibility value True for version Version_2_0
2019-11-11 20:31:02.183 +01:00 [Debug] Compatibility switch "SuppressTempDataAttributePrefix" in type "MvcViewOptions" is using default value False
2019-11-11 20:31:02.183 +01:00 [Debug] Compatibility switch "AllowRenderingMaxLengthAttribute" in type "MvcViewOptions" is using default value False
2019-11-11 20:31:02.222 +01:00 [Debug] Registered model binder providers, in the following order: ["Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ServicesModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.HeaderModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FloatingPointTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.EnumTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.SimpleTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CancellationTokenModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ByteArrayModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FormFileModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FormCollectionModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.DictionaryModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ArrayModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexTypeModelBinderProvider"]
2019-11-11 20:31:02.332 +01:00 [Debug] Failed to locate the development https certificate at 'null'.
2019-11-11 20:31:02.369 +01:00 [Debug] Hosting started
2019-11-11 20:31:02.370 +01:00 [Debug] Loaded hosting startup assembly "Ombi"
2019-11-11 20:31:06.260 +01:00 [Debug] Connection id ""0HLR6RMP5RNRJ"" started.
2019-11-11 20:31:06.396 +01:00 [Information] Request starting HTTP/1.1 POST http://plex.example.com/request/api/v1/tester/emby application/json 186
2019-11-11 20:31:06.401 +01:00 [Debug] Wildcard detected, all requests with hosts will be allowed.
2019-11-11 20:31:06.416 +01:00 [Debug] Unknown proxy: "[::ffff:172.18.0.9]:43038"
2019-11-11 20:31:06.430 +01:00 [Debug] "POST" requests are not supported
2019-11-11 20:31:06.516 +01:00 [Information] Successfully validated the token.
2019-11-11 20:31:06.520 +01:00 [Debug] AuthenticationScheme: "Bearer" was successfully authenticated.
2019-11-11 20:31:06.543 +01:00 [Debug] The request has an origin header: '"https://plex.example.com"'.
2019-11-11 20:31:06.543 +01:00 [Information] CORS policy execution successful.
2019-11-11 20:31:06.552 +01:00 [Debug] "POST" requests are not supported
2019-11-11 20:31:06.785 +01:00 [Debug] Request successfully matched the route with name 'null' and template '"api/v1/Tester/emby"'
2019-11-11 20:31:06.854 +01:00 [Information] Route matched with "{action = \"Emby\", controller = \"Tester\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.Boolean] Emby(Ombi.Core.Settings.Models.External.EmbyServers)" on controller "Ombi.Controllers.External.TesterController" ("Ombi").
2019-11-11 20:31:06.855 +01:00 [Debug] Execution plan of "authorization" filters (in the following order): ["Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter"]
2019-11-11 20:31:06.856 +01:00 [Debug] Execution plan of "resource" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter"]
2019-11-11 20:31:06.856 +01:00 [Debug] Execution plan of "action" filters (in the following order): ["Microsoft.AspNetCore.Mvc.Internal.ControllerActionFilter (Order: -2147483648)", "Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)"]
2019-11-11 20:31:06.857 +01:00 [Debug] Execution plan of "exception" filters (in the following order): ["None"]
2019-11-11 20:31:06.857 +01:00 [Debug] Execution plan of "result" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter", "Microsoft.AspNetCore.Mvc.ProducesAttribute (Order: 0)"]
2019-11-11 20:31:06.884 +01:00 [Information] Authorization was successful.
2019-11-11 20:31:06.934 +01:00 [Debug] Attempting to bind parameter '"settings"' of type '"Ombi.Core.Settings.Models.External.EmbyServers"' ...
2019-11-11 20:31:06.943 +01:00 [Debug] Attempting to bind model of type '"Ombi.Core.Settings.Models.External.EmbyServers"' using the name '""' in request data ...
2019-11-11 20:31:06.944 +01:00 [Debug] Rejected input formatter '"Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter"' for content type '"application/json"'.
2019-11-11 20:31:06.948 +01:00 [Debug] Selected input formatter '"Microsoft.AspNetCore.Mvc.Formatters.JsonInputFormatter"' for content type '"application/json"'.
2019-11-11 20:31:06.973 +01:00 [Debug] Connection id ""0HLR6RMP5RNRJ"", Request id ""0HLR6RMP5RNRJ:00000001"": started reading request body.
2019-11-11 20:31:06.991 +01:00 [Debug] Connection id ""0HLR6RMP5RNRJ"", Request id ""0HLR6RMP5RNRJ:00000001"": done reading request body.
2019-11-11 20:31:07.004 +01:00 [Debug] Done attempting to bind model of type '"Ombi.Core.Settings.Models.External.EmbyServers"' using the name '""'.
2019-11-11 20:31:07.004 +01:00 [Debug] Done attempting to bind parameter '"settings"' of type '"Ombi.Core.Settings.Models.External.EmbyServers"'.
2019-11-11 20:31:07.043 +01:00 [Information] Executing action method "Ombi.Controllers.External.TesterController.Emby (Ombi)" - Validation state: Valid
2019-11-11 20:31:07.184 +01:00 [Debug] <!DOCTYPE html>
<html data-culture="en-US" lang="en" class="preload">
<head>

    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="manifest" href="manifest.json">
    <meta name="format-detection" content="telephone=no">
    <meta name="msapplication-tap-highlight" content="no">

    <meta http-equiv="X-UA-Compatibility" content="IE=Edge">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="application-name" content="Jellyfin">
    <meta name="robots" content="noindex, nofollow, noarchive">
    <meta property="og:title" content="Jellyfin">
    <meta property="og:site_name" content="Jellyfin">
    <meta property="og:url" content="http://jellyfin.media">
    <meta property="og:description" content="The Free Software Media System.">
    <meta property="og:type" content="article">
    <meta property="fb:app_id" content="1618309211750238">
    <link rel="apple-touch-icon" sizes="180x180" href="touchicon.png">

    <!-------------------- iPhone 5 ------------------->
    <link href="splashscreens/iphone5_splash.png" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphone5_splash_l.png" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------- iPhone 6, 6S, 7 and 8 ------------->
    <link href="splashscreens/iphone6_splash.png" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphone6_splash_l.png" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------- iPhone 6+, 7+ and 8+ -------------->
    <link href="splashscreens/iphoneplus_splash.png" media="screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphoneplus_splash_l.png" media="screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------------- iPhone X -------------------->
    <link href="splashscreens/iphonex_splash.png" media="screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphonex_splash_l.png" media="screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------------- iPhone Xr ------------------->
    <link href="splashscreens/iphonexr_splash.png" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphonexr_splash_l.png" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------------- iPhone Xs ------------------->
    <link href="splashscreens/iphonexsmax_splash.png" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphonexsmax_splashl.png" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!--------------------- iPad ---------------------->
    <link href="splashscreens/ipad_splash.png" media="screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/ipad_splash_l.png" media="screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------------ iPad Pro 1 ------------------->
    <link href="splashscreens/ipadpro1_splash.png" media="screen and (device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/ipadpro1_splash_l.png" media="screen and (device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />
    
    <!------------------ iPad Pro 3 ------------------->
    <link href="splashscreens/ipadpro3_splash.png" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/ipadpro3_splash_l.png" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------------ iPad Pro 2 ------------------->
    <link href="splashscreens/ipadpro2_splash.png" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/ipadpro2_splash_l.png" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <link rel="shortcut icon" href="favicon.ico">
    <meta name="msapplication-TileImage" content="touchicon144.png">
    <meta name="msapplication-TileColor" content="#333333">
    <meta name="theme-color" content="#101010">

    <title>Jellyfin</title>

    <style>
        .transparentDocument, .backgroundContainer-transparent:not(.withBackdrop) {
            background: none !important;
            background-color: transparent !important;
        }

        .mouseIdle, .mouseIdle button, .mouseIdle select, .mouseIdle input, .mouseIdle textarea, .mouseIdle a, .mouseIdle label {
            cursor: none !important;
        }

        .preload {
            background-color: #101010;
        }

        .hide, .mouseIdle .hide-mouse-idle, .mouseIdle-tv .hide-mouse-idle-tv {
            display: none !important;
        }

        .mainDrawerHandle {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            z-index: 1;
            width: 10px;
        }
    </style>
</head>
<body>
    <div class="backdropContainer"></div>
    <div class="backgroundContainer"></div>
    <div class="mainDrawer hide"><div class="mainDrawer-scrollContainer scrollContainer"></div></div>
    <div class="skinHeader"></div>
    <div class="mainAnimatedPages skinBody"></div>
    <div class="mainDrawerHandle"></div>
<script>window.dashboardVersion='10.4.1';</script><script src="scripts/apploader.js?v=10.4.1" defer></script></body>
</html>

2019-11-11 20:31:07.258 +01:00 [Error] Could not test Emby
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Ombi.Api.Api.Request[T](Request request) in C:\projects\requestplex\src\Ombi.Api\Api.cs:line 78
   at Ombi.Api.Emby.EmbyApi.GetUsers(String baseUri, String apiKey) in C:\projects\requestplex\src\Ombi.Api.Emby\EmbyApi.cs:line 33
   at Ombi.Controllers.External.TesterController.Emby(EmbyServers settings) in C:\projects\requestplex\src\Ombi\Controllers\External\TesterController.cs:line 293
2019-11-11 20:31:07.263 +01:00 [Information] Executed action method "Ombi.Controllers.External.TesterController.Emby (Ombi)", returned result "Microsoft.AspNetCore.Mvc.ObjectResult" in 217.7059ms.
2019-11-11 20:31:07.281 +01:00 [Debug] List of registered output formatters, in the following order: ["Microsoft.AspNetCore.Mvc.Formatters.HttpNoContentOutputFormatter", "Microsoft.AspNetCore.Mvc.Formatters.StringOutputFormatter", "Microsoft.AspNetCore.Mvc.Formatters.StreamOutputFormatter", "Microsoft.AspNetCore.Mvc.Formatters.JsonOutputFormatter"]
2019-11-11 20:31:07.286 +01:00 [Debug] No information found on request to perform content negotiation.
2019-11-11 20:31:07.286 +01:00 [Debug] Attempting to select the first output formatter in the output formatters list which supports a content type from the explicitly specified content types '["application/json"]'.
2019-11-11 20:31:07.290 +01:00 [Debug] Selected output formatter '"Microsoft.AspNetCore.Mvc.Formatters.JsonOutputFormatter"' and content type '"application/json"' to write the response.
2019-11-11 20:31:07.290 +01:00 [Information] Executing ObjectResult, writing value of type '"System.Boolean"'.
2019-11-11 20:31:07.355 +01:00 [Information] Executed action "Ombi.Controllers.External.TesterController.Emby (Ombi)" in 495.805ms
2019-11-11 20:31:07.366 +01:00 [Debug] Connection id ""0HLR6RMP5RNRJ"" completed keep alive response.
2019-11-11 20:31:07.376 +01:00 [Information] Request finished in 981.6775ms 200 application/json; charset=utf-8

@ombi-bot
Copy link
Contributor

ombi-bot commented Nov 11, 2019 via email

@stephanrenggli
Copy link

stephanrenggli commented Nov 11, 2019

Just tried with a new API Key (copy/pasted) with the same result.

Edit: I remember this working previously, unfortunately I don't know what Jellyfin and Ombi versions I was running.

@bugsyb
Copy link
Author

bugsyb commented Nov 11, 2019

Same for me - reassured that API key is correct, also as shown in original report - traffic dump shows that there's connectivity, so hostname/port/proto is correct as there are two requests one after another.

My bet is that issue is somewhere around parsing data as per error message:

Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)

@bugsyb
Copy link
Author

bugsyb commented Nov 11, 2019

And the debug dump:

2019-11-11 21:30:21.658 +01:00 [Debug] Connection id ""0HLR6SMFP5UIO"" started.
2019-11-11 21:30:21.660 +01:00 [Information] Request starting HTTP/1.1 POST http://myhost.localdomain/request/api/v1/tester/emby application/json 230
2019-11-11 21:30:21.661 +01:00 [Debug] "POST" requests are not supported
2019-11-11 21:30:21.662 +01:00 [Information] Successfully validated the token.
2019-11-11 21:30:21.663 +01:00 [Debug] AuthenticationScheme: "Bearer" was successfully authenticated.
2019-11-11 21:30:21.664 +01:00 [Debug] The request has an origin header: '"http://myhost.localdomain"'.
2019-11-11 21:30:21.664 +01:00 [Information] CORS policy execution successful.
2019-11-11 21:30:21.665 +01:00 [Debug] "POST" requests are not supported
2019-11-11 21:30:21.665 +01:00 [Debug] Request successfully matched the route with name 'null' and template '"api/v1/Tester/emby"'
2019-11-11 21:30:21.687 +01:00 [Information] Route matched with "{action = \"Emby\", controller = \"Tester\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.Boolean] Emby(Ombi.Core.Settings.Models.External.EmbyServers)" on controller "Ombi.Controllers.External.TesterController" ("Ombi").
2019-11-11 21:30:21.688 +01:00 [Debug] Execution plan of "authorization" filters (in the following order): ["Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter"]
2019-11-11 21:30:21.688 +01:00 [Debug] Execution plan of "resource" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter"]
2019-11-11 21:30:21.688 +01:00 [Debug] Execution plan of "action" filters (in the following order): ["Microsoft.AspNetCore.Mvc.Internal.ControllerActionFilter (Order: -2147483648)", "Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)"]
2019-11-11 21:30:21.688 +01:00 [Debug] Execution plan of "exception" filters (in the following order): ["None"]
2019-11-11 21:30:21.689 +01:00 [Debug] Execution plan of "result" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataFilter", "Microsoft.AspNetCore.Mvc.ProducesAttribute (Order: 0)"]
2019-11-11 21:30:21.689 +01:00 [Information] Authorization was successful.
2019-11-11 21:30:21.753 +01:00 [Debug] Attempting to bind parameter '"settings"' of type '"Ombi.Core.Settings.Models.External.EmbyServers"' ...
2019-11-11 21:30:21.753 +01:00 [Debug] Attempting to bind model of type '"Ombi.Core.Settings.Models.External.EmbyServers"' using the name '""' in request data ...
2019-11-11 21:30:21.754 +01:00 [Debug] Rejected input formatter '"Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter"' for content type '"application/json"'.
2019-11-11 21:30:21.754 +01:00 [Debug] Selected input formatter '"Microsoft.AspNetCore.Mvc.Formatters.JsonInputFormatter"' for content type '"application/json"'.
2019-11-11 21:30:21.754 +01:00 [Debug] Connection id ""0HLR6SMFP5UIO"", Request id ""0HLR6SMFP5UIO:00000001"": started reading request body.
2019-11-11 21:30:21.755 +01:00 [Debug] Connection id ""0HLR6SMFP5UIO"", Request id ""0HLR6SMFP5UIO:00000001"": done reading request body.
2019-11-11 21:30:21.755 +01:00 [Debug] Done attempting to bind model of type '"Ombi.Core.Settings.Models.External.EmbyServers"' using the name '""'.
2019-11-11 21:30:21.756 +01:00 [Debug] Done attempting to bind parameter '"settings"' of type '"Ombi.Core.Settings.Models.External.EmbyServers"'.
2019-11-11 21:30:21.759 +01:00 [Information] Executing action method "Ombi.Controllers.External.TesterController.Emby (Ombi)" - Validation state: Valid
2019-11-11 21:30:21.790 +01:00 [Debug] <!DOCTYPE html>
<html data-culture="en" lang="en" class="preload">
<head>

    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="manifest" href="manifest.json">
    <meta name="format-detection" content="telephone=no">
    <meta name="msapplication-tap-highlight" content="no">

    <meta http-equiv="X-UA-Compatibility" content="IE=Edge">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="application-name" content="Jellyfin">
    <meta name="robots" content="noindex, nofollow, noarchive">
    <meta property="og:title" content="Jellyfin">
    <meta property="og:site_name" content="Jellyfin">
    <meta property="og:url" content="http://jellyfin.media">
    <meta property="og:description" content="The Free Software Media System.">
    <meta property="og:type" content="article">
    <meta property="fb:app_id" content="1618309211750238">
    <link rel="apple-touch-icon" sizes="180x180" href="touchicon.png">

    <!-------------------- iPhone 5 ------------------->
    <link href="splashscreens/iphone5_splash.png" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphone5_splash_l.png" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------- iPhone 6, 6S, 7 and 8 ------------->
    <link href="splashscreens/iphone6_splash.png" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphone6_splash_l.png" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------- iPhone 6+, 7+ and 8+ -------------->
    <link href="splashscreens/iphoneplus_splash.png" media="screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphoneplus_splash_l.png" media="screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------------- iPhone X -------------------->
    <link href="splashscreens/iphonex_splash.png" media="screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphonex_splash_l.png" media="screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------------- iPhone Xr ------------------->
    <link href="splashscreens/iphonexr_splash.png" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphonexr_splash_l.png" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------------- iPhone Xs ------------------->
    <link href="splashscreens/iphonexsmax_splash.png" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/iphonexsmax_splashl.png" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!--------------------- iPad ---------------------->
    <link href="splashscreens/ipad_splash.png" media="screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/ipad_splash_l.png" media="screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------------ iPad Pro 1 ------------------->
    <link href="splashscreens/ipadpro1_splash.png" media="screen and (device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/ipadpro1_splash_l.png" media="screen and (device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />
    
    <!------------------ iPad Pro 3 ------------------->
    <link href="splashscreens/ipadpro3_splash.png" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/ipadpro3_splash_l.png" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <!------------------ iPad Pro 2 ------------------->
    <link href="splashscreens/ipadpro2_splash.png" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" rel="apple-touch-startup-image" />
    <link href="splashscreens/ipadpro2_splash_l.png" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" rel="apple-touch-startup-image" />

    <link rel="shortcut icon" href="favicon.ico">
    <meta name="msapplication-TileImage" content="touchicon144.png">
    <meta name="msapplication-TileColor" content="#333333">
    <meta name="theme-color" content="#101010">

    <title>Jellyfin</title>

    <style>
        .transparentDocument, .backgroundContainer-transparent:not(.withBackdrop) {
            background: none !important;
            background-color: transparent !important;
        }

        .mouseIdle, .mouseIdle button, .mouseIdle select, .mouseIdle input, .mouseIdle textarea, .mouseIdle a, .mouseIdle label {
            cursor: none !important;
        }

        .preload {
            background-color: #101010;
        }

        .hide, .mouseIdle .hide-mouse-idle, .mouseIdle-tv .hide-mouse-idle-tv {
            display: none !important;
        }

        .mainDrawerHandle {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            z-index: 1;
            width: 10px;
        }
    </style>
</head>
<body>
    <div class="backdropContainer"></div>
    <div class="backgroundContainer"></div>
    <div class="mainDrawer hide"><div class="mainDrawer-scrollContainer scrollContainer"></div></div>
    <div class="skinHeader"></div>
    <div class="mainAnimatedPages skinBody"></div>
    <div class="mainDrawerHandle"></div>
<script>window.dashboardVersion='10.4.1';</script><script src="scripts/apploader.js?v=10.4.1" defer></script></body>
</html>

2019-11-11 21:30:21.799 +01:00 [Error] Could not test Emby
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Ombi.Api.Api.Request[T](Request request) in C:\projects\requestplex\src\Ombi.Api\Api.cs:line 78
   at Ombi.Api.Emby.EmbyApi.GetUsers(String baseUri, String apiKey) in C:\projects\requestplex\src\Ombi.Api.Emby\EmbyApi.cs:line 33
   at Ombi.Controllers.External.TesterController.Emby(EmbyServers settings) in C:\projects\requestplex\src\Ombi\Controllers\External\TesterController.cs:line 293
2019-11-11 21:30:21.808 +01:00 [Information] Executed action method "Ombi.Controllers.External.TesterController.Emby (Ombi)", returned result "Microsoft.AspNetCore.Mvc.ObjectResult" in 43.1613ms.
2019-11-11 21:30:21.839 +01:00 [Debug] List of registered output formatters, in the following order: ["Microsoft.AspNetCore.Mvc.Formatters.HttpNoContentOutputFormatter", "Microsoft.AspNetCore.Mvc.Formatters.StringOutputFormatter", "Microsoft.AspNetCore.Mvc.Formatters.StreamOutputFormatter", "Microsoft.AspNetCore.Mvc.Formatters.JsonOutputFormatter"]
2019-11-11 21:30:21.849 +01:00 [Debug] No information found on request to perform content negotiation.
2019-11-11 21:30:21.850 +01:00 [Debug] Attempting to select the first output formatter in the output formatters list which supports a content type from the explicitly specified content types '["application/json"]'.
2019-11-11 21:30:21.858 +01:00 [Debug] Selected output formatter '"Microsoft.AspNetCore.Mvc.Formatters.JsonOutputFormatter"' and content type '"application/json"' to write the response.
2019-11-11 21:30:21.859 +01:00 [Information] Executing ObjectResult, writing value of type '"System.Boolean"'.
2019-11-11 21:30:21.889 +01:00 [Information] Executed action "Ombi.Controllers.External.TesterController.Emby (Ombi)" in 200.4036ms
2019-11-11 21:30:21.891 +01:00 [Debug] Connection id ""0HLR6SMFP5UIO"" received FIN.
2019-11-11 21:30:21.891 +01:00 [Debug] Connection id ""0HLR6SMFP5UIO"" sending FIN because: ""The client closed the connection.""
2019-11-11 21:30:21.892 +01:00 [Debug] Connection id ""0HLR6SMFP5UIO"" disconnecting.
2019-11-11 21:30:21.893 +01:00 [Information] Request finished in 233.5457ms 200 application/json; charset=utf-8
2019-11-11 21:30:21.893 +01:00 [Debug] Connection id ""0HLR6SMFP5UIO"" stopped.

@tidusjar
Copy link
Collaborator

tidusjar commented Nov 11, 2019 via email

@stephanrenggli
Copy link

I think I found the cause of the problem.
I assume this is responsible for the API connection with Jellyfin: https://github.com/tidusjar/Ombi/blob/c547777df7b98a6098c79882d18bb52973bb9d85/src/Ombi.Api.Emby/EmbyApi.cs#L40

Manually trying to query the Jellyfin API I noticed the base API path is /jellyfin/.
So the correct full path for getting system information would be https://jellyfin.example.com/jellyfin/system/info

I assume this means there will have to be two distinct configuration options now for Emby and Jellyfin.

@tidusjar
Copy link
Collaborator

Yeah looks like they have changed that API endpoint recently then. I was afraid of this happening that Emby & Jellyfin's API keep getting further and further apart.

@stephanrenggli
Copy link

Is there a guide somewhere on how to setup the dev environment for the current version?
I'd like to try and fix this issue/implement separate emby and jellyfin configuration.

@tidusjar
Copy link
Collaborator

@stephanrenggli There is not a guide for the current production v3 version. There is for v4 but that's not ready for production yet.

Basically clone the repository and then open up the solution in Visual Studio and you can just run it from there.

@ptts
Copy link

ptts commented Jan 10, 2020

Until this is fixed I used the following workaround successfully:
Instead of calling my jellyfin server interally via its docker hostname I now call it externally via its domain on port 443. As my jellyfin server is behind an nginx reverse proxy I can redirect all requests from /emby to /jellyfin by adding this to my jellyfin server block:

location ~* ^/emby/ {
    rewrite /emby/(.*)$ /jellyfin/$1 permanent;
}

@mattthhdp
Copy link

any news on this ?

@tidusjar
Copy link
Collaborator

Hi sorry but there has been no further progress on this yet.

Please remember that I have a full time (quite demanding) job, a toddler, a wife and a puppy.
All of my limited free time is usually spent either developing Ombi, fixing bugs on Ombi or providing support with Ombi, keeping in mind that no one is paying me to do this.

Ombi is currently a 1 person development team.

So if I have not yet got around to this you now know why 😄

@mattthhdp
Copy link

@tidusjar don't worry friend it was just a question. I know what it is and I really appreciate you're hard work and dedication for ombi. Really great software . Keep going the good work!

@Jerk-Solutions
Copy link

Workaround for when Jellyfin server is on your subdomain and not subdirectory (i.e. https://jellyfin.example.com and not https://example.com/jellyfin). add the following to the Jellyfin server block :
location ~* ^/emby/ { rewrite /emby/(.*)$ /$1 permanent; }

tidusjar added a commit that referenced this issue Mar 24, 2020
@tidusjar
Copy link
Collaborator

Fixed this in v4

@NokiDev
Copy link

NokiDev commented May 2, 2020

Hi, I experienced this error in v4.
My jellyfin is configured to use / base URL, and so ombi could'nt connect to it.

Changing base URL in jellyfin to /jellyfin solves the issue.

I thought this should be handled by the BaseURL field in ombi v4, but it seems that it don't do anything at all or nothing really useful.
Setting it to / should use / to connect to jellyfin and not /jellyfin.

I can create another issue to track this behaviour. Will look for an existing one too.

@ombi-bot
Copy link
Contributor

ombi-bot commented May 2, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants