Jump to content

app.emby.media tries to use my public IP instead of my private IP


sentience

Recommended Posts

sentience

The Emby web app works fine when I load it directly from my Emby Server (Synology NAS).
 
When I load the web app from http://app.emby.media and choose to connect to my server manually, this works in Safari on macOS but not in Chrome. I'd especially like to get it working in Chrome so that I can use the Emby Chrome App.
 
On the Connect to Server screen, I am putting in my Emby Server's local network hostname (diskstation.local) and port (8096).
 
In Chrome, the client seems to be making a successful connection to my Emby Server's private IP, but for whatever reason then tries and fails to connect to my public IP (which fails to route the request back into my local network, where the client is running). Here's the console output I'm seeing:
 
When I load http://app.emby.media/#!/startup/manualserver.html in Chrome:
 

app.js?v=4.4.2.7:1 Setting require baseUrl to http://app.emby.media
connectionmanager.js?v=4.4.2.7:1 Begin ConnectionManager constructor
app.js?v=4.4.2.7:1 loadFirstLevelPresentationDependencies
app.js?v=4.4.2.7:1 loadPlugins
app.js?v=4.4.2.7:1 Loading installed plugins
pluginmanager.js?v=4.4.2.7:1 Loading plugin: bower_components/emby-webcomponents/playback/playbackvalidation

router.js?v=4.4.2.7:1 Setting page base to 
credentials.js?v=4.4.2.7:1 credentials initialized with: {"Servers":[{"ManualAddress":"http://diskstation.local:8096","LastConnectionMode":2,"Name":"diskstation","Id":"d7b876e641284aa3b54af92cc64081c4","LocalAddress":"http://192.168.1.16:8096","RemoteAddress":"http://101.161.197.201:8096","DateLastAccessed":1586995704449,"Type":"Server"}]}
apiclient.js?v=4.4.2.7:1 ApiClient serverAddress: http://diskstation.local:8096
apiclient.js?v=4.4.2.7:1 ApiClient appName: Emby Web
apiclient.js?v=4.4.2.7:1 ApiClient appVersion: 4.4.2.7
apiclient.js?v=4.4.2.7:1 ApiClient deviceName: Chrome
apiclient.js?v=4.4.2.7:1 ApiClient deviceId: dd067255-a54b-4f26-ac63-c4045a68178b
connectionmanager.js?v=4.4.2.7:1 returning instance from getOrAddApiClient
pluginmanager.js?v=4.4.2.7:1 creating plugin instance
pluginmanager.js?v=4.4.2.7:1 setting require config
pluginmanager.js?v=4.4.2.7:1 loading plugin strings

app.js?v=4.4.2.7:1 loadExternalScripts
app.js?v=4.4.2.7:1 loadHeader
registrationservices.js?v=4.4.2.7:1 validateFeature: themes
app.js?v=4.4.2.7:1 onAppReady
connectionmanager.js?v=4.4.2.7:1 getRegistrationInfo returning cached info
app.js?v=4.4.2.7:1 Loaded dependencies in onAppReady
app.js?v=4.4.2.7:1 Defining core routes
router.js?v=4.4.2.7:1 Defining route: /startup/connectlogin.html

connectionmanager.js?v=4.4.2.7:1 returning instance from getOrAddApiClient
connectionmanager.js?v=4.4.2.7:1 Begin connect
connectionmanager.js?v=4.4.2.7:1 Begin getAvailableServers
connectionmanager.js?v=4.4.2.7:1 Begin getConnectServers
connectionmanager.js?v=4.4.2.7:1 Begin connectToServers, with 1 servers
connectionmanager.js?v=4.4.2.7:1 begin connectToServer
connectionmanager.js?v=4.4.2.7:1 tryReconnect: http://192.168.1.16:8096|http://diskstation.local:8096|http://101.161.197.201:8096
connectionmanager.js?v=4.4.2.7:1 tryReconnectToUrl: http://192.168.1.16:8096
connectionmanager.js?v=4.4.2.7:1 tryReconnectToUrl: http://diskstation.local:8096
connectionmanager.js?v=4.4.2.7:1 tryReconnectToUrl: http://101.161.197.201:8096
connectionmanager.js?v=4.4.2.7:1 ConnectionManager requesting url: http://192.168.1.16:8096/emby/system/info/public
connectionmanager.js?v=4.4.2.7:1 ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/system/info/public
connectionmanager.js?v=4.4.2.7:1 ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/manifest.json
connectionmanager.js?v=4.4.2.7:1 ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/index.html
connectionmanager.js?v=4.4.2.7:1 ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/strings/en-US.json
connectionmanager.js?v=4.4.2.7:1 ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/manifest.json
connectionmanager.js?v=4.4.2.7:1 ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/strings/en-US.json
connectionmanager.js?v=4.4.2.7:1 ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/index.html
connectionmanager.js?v=4.4.2.7:1 returning instance from getOrAddApiClient
apiclient.js?v=4.4.2.7:1 Setting server address to http://192.168.1.16:8096
connectionmanager.js?v=4.4.2.7:1 resolving connectToServers with result.State: ServerSignIn
router.js?v=4.4.2.7:1 appRouter - processing path request /startup/manualserver.html
router.js?v=4.4.2.7:1 appRouter - proceeding to /startup/manualserver.html
connectionmanager.js?v=4.4.2.7:1 ConnectionManager requesting url: http://diskstation.local:8096/emby/system/info/public
connectionmanager.js?v=4.4.2.7:1 ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/system/info/public
/#!/startup/manualserver.html:1 Autofocus processing was blocked because a document already has a focused element.
connectionmanager.js?v=4.4.2.7:1 ConnectionManager requesting url: http://101.161.197.201:8096/emby/system/info/public
VM1005:1 GET http://101.161.197.201:8096/emby/system/info/public net::ERR_EMPTY_RESPONSE

 
This leaves me on the Connect to Server form, where if I enter my server host (diskstation.local) and click Connect, I get this further console output:
 

begin connectToServer
connectionmanager.js?v=4.4.2.7:1 tryReconnect: http://diskstation.local:8096
connectionmanager.js?v=4.4.2.7:1 tryReconnectToUrl: http://diskstation.local:8096
connectionmanager.js?v=4.4.2.7:1 ConnectionManager requesting url: http://diskstation.local:8096/emby/system/info/public
connectionmanager.js?v=4.4.2.7:1 ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/system/info/public
connectionmanager.js?v=4.4.2.7:1 ConnectionManager requesting url: http://diskstation.local:8096/emby/web/manifest.json
connectionmanager.js?v=4.4.2.7:1 ConnectionManager requesting url: http://diskstation.local:8096/emby/web/index.html
connectionmanager.js?v=4.4.2.7:1 ConnectionManager requesting url: http://diskstation.local:8096/emby/web/strings/en-US.json
connectionmanager.js?v=4.4.2.7:1 ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/web/manifest.json
connectionmanager.js?v=4.4.2.7:1 ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/web/index.html
connectionmanager.js?v=4.4.2.7:1 ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/web/strings/en-US.json
connectionmanager.js?v=4.4.2.7:1 returning instance from getOrAddApiClient
apiclient.js?v=4.4.2.7:1 Setting server address to http://diskstation.local:8096
apiclient.js?v=4.4.2.7:1 Requesting http://diskstation.local:8096/emby/users/public
apiclient.js?v=4.4.2.7:1 AbortError: http://diskstation.local:8096/emby/users/public
apiclient.js?v=4.4.2.7:1 Attempting reconnection
apiclient.js?v=4.4.2.7:1 tryReconnect: http://192.168.1.16:8096|http://diskstation.local:8096|http://101.161.197.201:8096
apiclient.js?v=4.4.2.7:1 tryReconnectToUrl: http://192.168.1.16:8096
apiclient.js?v=4.4.2.7:1 tryReconnectToUrl: http://diskstation.local:8096
apiclient.js?v=4.4.2.7:1 tryReconnectToUrl: http://101.161.197.201:8096
apiclient.js?v=4.4.2.7:1 Reconnect succeeded to http://192.168.1.16:8096
apiclient.js?v=4.4.2.7:1 Retrying request with new url: http://192.168.1.16:8096/emby/users/public
apiclient.js?v=4.4.2.7:1 Requesting http://192.168.1.16:8096/emby/users/public
VM1005:1 GET http://101.161.197.201:8096/emby/system/info/public net::ERR_EMPTY_RESPONSE
(anonymous) @ VM1005:1
getFetchPromise @ apiclient.js?v=4.4.2.7:1
(anonymous) @ apiclient.js?v=4.4.2.7:1
Promise.then (async)
tryReconnectToUrl @ apiclient.js?v=4.4.2.7:1
tryReconnectInternal @ apiclient.js?v=4.4.2.7:1
tryReconnect @ apiclient.js?v=4.4.2.7:1
(anonymous) @ apiclient.js?v=4.4.2.7:1
Promise.then (async)
ApiClient.fetchWithFailover @ apiclient.js?v=4.4.2.7:1
ApiClient.fetch @ apiclient.js?v=4.4.2.7:1
ApiClient.ajax @ apiclient.js?v=4.4.2.7:1
ApiClient.getPublicUsers @ apiclient.js?v=4.4.2.7:1
showLocalLoginFromApiClient @ router.js?v=4.4.2.7:1
handleConnectionResult @ router.js?v=4.4.2.7:1
(anonymous) @ manualserver.js?v=4.4.2.7:1
Promise.then (async)
(anonymous) @ manualserver.js?v=4.4.2.7:1
apiclient.js?v=4.4.2.7:1 Error opening web socket: Error: Cannot open web socket without access token
AbortError: http://192.168.1.16:8096/emby/users/public
apiclient.js?v=4.4.2.7:1 Reporting request failure
/#!/startup/manualserver.html:1 Uncaught (in promise) DOMException: The user aborted a request.
Promise.then (async)
showLocalLoginFromApiClient @ router.js?v=4.4.2.7:1
handleConnectionResult @ router.js?v=4.4.2.7:1
(anonymous) @ manualserver.js?v=4.4.2.7:1
Promise.then (async)
(anonymous) @ manualserver.js?v=4.4.2.7:1

 
From this output, it appears that the app is successfully connecting to my server by its local IP (192.168.1.16), but is then ignoring this and attempting to connect to my public IP (101.161.197.201), which fails (because I'm connecting from inside my local network).
 
In Safari, I am able to connect and log in successfully:
 

[Log] Setting require baseUrl to http://app.emby.media (app.js, line 1)
[Log] Begin ConnectionManager constructor (connectionmanager.js, line 1)
[Log] loadFirstLevelPresentationDependencies (app.js, line 1)
[Log] loadPlugins (app.js, line 1)
[Log] Loading installed plugins (app.js, line 1)

[Log] Setting page base to  (router.js, line 1)
[Log] credentials initialized with: {"Servers":[{"ManualAddress":"http://diskstation.local:8096","LastConnectionMode":0,"Name":"diskstation","Id":"d7b876e641284aa3b54af92cc64081c4","LocalAddress":"http://192.168.1.16:8096","RemoteAddress":"http://101.161.197.201:8096","DateLastAccessed":1586996484490,"UserId":null,"AccessToken":null,"Type":"Server"}]}(credentials.js, line 1)
[Log] ApiClient serverAddress: http://192.168.1.16:8096 (apiclient.js, line 1)
[Log] ApiClient appName: Emby Web (apiclient.js, line 1)
[Log] ApiClient appVersion: 4.4.2.7 (apiclient.js, line 1)
[Log] ApiClient deviceName: Safari (apiclient.js, line 1)
[Log] ApiClient deviceId: b0c02e68-2881-49b8-9f36-6a2a1635abb0 (apiclient.js, line 1)
[Log] returning instance from getOrAddApiClient (connectionmanager.js, line 1)
[Log] creating plugin instance (pluginmanager.js, line 1)
[Log] setting require config (pluginmanager.js, line 1)
[Log] loading plugin strings (pluginmanager.js, line 1)

[Log] loadExternalScripts (app.js, line 1)
[Log] loadHeader (app.js, line 1)
[Log] validateFeature: themes (registrationservices.js, line 1)
[Log] onAppReady (app.js, line 1)
[Log] getRegistrationInfo returning cached info (connectionmanager.js, line 1)
[Log] Loaded dependencies in onAppReady (app.js, line 1)
[Log] Defining core routes (app.js, line 1)

[Log] returning instance from getOrAddApiClient (connectionmanager.js, line 1)
[Log] Begin connect (connectionmanager.js, line 1)
[Log] Begin getAvailableServers (connectionmanager.js, line 1)
[Log] Begin getConnectServers (connectionmanager.js, line 1)
[Log] Begin connectToServers, with 1 servers (connectionmanager.js, line 1)
[Log] begin connectToServer (connectionmanager.js, line 1)
[Log] tryReconnect: http://192.168.1.16:8096|http://diskstation.local:8096|http://101.161.197.201:8096(connectionmanager.js, line 1)
[Log] tryReconnectToUrl: http://192.168.1.16:8096 (connectionmanager.js, line 1)
[Log] tryReconnectToUrl: http://diskstation.local:8096 (connectionmanager.js, line 1)
[Log] tryReconnectToUrl: http://101.161.197.201:8096 (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://192.168.1.16:8096/emby/system/info/public (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/system/info/public (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/manifest.json (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/index.html (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/strings/en-US.json (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/manifest.json (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/index.html (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/strings/en-US.json (connectionmanager.js, line 1)
[Log] returning instance from getOrAddApiClient (connectionmanager.js, line 1)
[Log] Setting server address to http://192.168.1.16:8096 (apiclient.js, line 1)
[Log] resolving connectToServers with result.State: ServerSignIn (connectionmanager.js, line 1)
[Log] appRouter - processing path request /startup/manualserver.html (router.js, line 1)
[Log] appRouter - proceeding to /startup/manualserver.html (router.js, line 1)
[Log] ConnectionManager requesting url: http://diskstation.local:8096/emby/system/info/public (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/system/info/public (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://101.161.197.201:8096/emby/system/info/public (connectionmanager.js, line 1)
[Error] Failed to load resource: The network connection was lost. (public, line 0)
[Log] begin connectToServer (connectionmanager.js, line 1)
[Log] tryReconnect: http://diskstation.local:8096 (connectionmanager.js, line 1)
[Log] tryReconnectToUrl: http://diskstation.local:8096 (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://diskstation.local:8096/emby/system/info/public (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/system/info/public (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://diskstation.local:8096/emby/web/manifest.json (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://diskstation.local:8096/emby/web/index.html (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://diskstation.local:8096/emby/web/strings/en-US.json (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/web/index.html (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/web/manifest.json (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/web/strings/en-US.json (connectionmanager.js, line 1)
[Log] returning instance from getOrAddApiClient (connectionmanager.js, line 1)
[Log] Setting server address to http://diskstation.local:8096 (apiclient.js, line 1)
[Log] Requesting http://diskstation.local:8096/emby/users/public (apiclient.js, line 1)
[Log] appRouter - processing path request /startup/manuallogin.html (router.js, line 1)
[Log] appRouter - proceeding to /startup/manuallogin.html (router.js, line 1)
[Log] calling apiClient.ensureWebSocket (connectionmanager.js, line 1)
[Log] opening web socket with url: ws://diskstation.local:8096/embywebsocket?api_key=REDACTED&deviceId=REDACTED (apiclient.js, line 1)
[Log] returning instance from getOrAddApiClient (connectionmanager.js, line 1)
[Log] Requesting http://diskstation.local:8096/emby/DisplayPreferences/usersettings?userId=REDACTED&client=emby (apiclient.js, line 1)
[Log] web socket connection opened (apiclient.js, line 1)
[Log] validateFeature: themes (registrationservices.js, line 1)
[Log] getRegistrationInfo returning cached info (connectionmanager.js, line 1)
[Log] appRouter - processing path request /home (router.js, line 1)
[Log] appRouter - user is authenticated (router.js, line 1)
[Log] appRouter - proceeding to /home (router.js, line 1)

 
That works quite well on first load, and I get the client UI with my server's content displayed. but if I then hit Refresh in the browser, I get the Emby logo with a loading spinner for about 30 seconds before the UI reappears with my library content. From the console output, it looks like the app is waiting for an attempt to connect to my public IP to time out before it loads the content from my private IP:
 

[Log] Setting require baseUrl to http://app.emby.media (app.js, line 1)
[Log] Begin ConnectionManager constructor (connectionmanager.js, line 1)
[Log] loadFirstLevelPresentationDependencies (app.js, line 1)
[Log] loadPlugins (app.js, line 1)
[Log] Loading installed plugins (app.js, line 1)

[Log] Setting page base to  (router.js, line 1)
[Log] credentials initialized with: {"Servers":[{"ManualAddress":"http://diskstation.local:8096","LastConnectionMode":0,"Name":"diskstation","Id":"d7b876e641284aa3b54af92cc64081c4","LocalAddress":"http://192.168.1.16:8096","RemoteAddress":"http://101.161.197.201:8096","DateLastAccessed":1586996899493,"UserId":"dfd2bb1666a341bc875859c091ad383e","AccessToken":"9283441f30b54e458819a6425af863ad","Type":"Server"}]}(credentials.js, line 1)
[Log] ApiClient serverAddress: http://192.168.1.16:8096 (apiclient.js, line 1)
[Log] ApiClient appName: Emby Web (apiclient.js, line 1)
[Log] ApiClient appVersion: 4.4.2.7 (apiclient.js, line 1)
[Log] ApiClient deviceName: Safari (apiclient.js, line 1)
[Log] ApiClient deviceId: b0c02e68-2881-49b8-9f36-6a2a1635abb0 (apiclient.js, line 1)
[Log] returning instance from getOrAddApiClient (connectionmanager.js, line 1)
[Log] creating plugin instance (pluginmanager.js, line 1)
[Log] setting require config (pluginmanager.js, line 1)
[Log] loading plugin strings (pluginmanager.js, line 1)

[Log] loadExternalScripts (app.js, line 1)
[Log] loadHeader (app.js, line 1)
[Log] validateFeature: themes (registrationservices.js, line 1)
[Log] onAppReady (app.js, line 1)
[Log] getRegistrationInfo returning cached info (connectionmanager.js, line 1)
[Log] Loaded dependencies in onAppReady (app.js, line 1)
[Log] Defining core routes (app.js, line 1)

[Log] returning instance from getOrAddApiClient (connectionmanager.js, line 1)
[Log] Begin connect (connectionmanager.js, line 1)
[Log] Begin getAvailableServers (connectionmanager.js, line 1)
[Log] Begin getConnectServers (connectionmanager.js, line 1)
[Log] Begin connectToServers, with 1 servers (connectionmanager.js, line 1)
[Log] begin connectToServer (connectionmanager.js, line 1)
[Log] tryReconnect: http://192.168.1.16:8096|http://diskstation.local:8096|http://101.161.197.201:8096(connectionmanager.js, line 1)
[Log] tryReconnectToUrl: http://192.168.1.16:8096 (connectionmanager.js, line 1)
[Log] tryReconnectToUrl: http://diskstation.local:8096 (connectionmanager.js, line 1)
[Log] tryReconnectToUrl: http://101.161.197.201:8096 (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://192.168.1.16:8096/emby/system/info/public (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/system/info/public (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/manifest.json (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/index.html (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/strings/en-US.json (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/index.html (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/manifest.json (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/strings/en-US.json (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://192.168.1.16:8096/emby/System/Info (connectionmanager.js, line 1)
[Log] ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/System/Info (connectionmanager.js, line 1)
[Log] returning instance from getOrAddApiClient (connectionmanager.js, line 1)
[Log] Setting server address to http://192.168.1.16:8096 (apiclient.js, line 1)
[Log] calling apiClient.ensureWebSocket (connectionmanager.js, line 1)
[Log] opening web socket with url: ws://192.168.1.16:8096/embywebsocket?api_key=REDACTED&deviceId=REDACTED (apiclient.js, line 1)
[Log] returning instance from getOrAddApiClient (connectionmanager.js, line 1)
[Log] Requesting http://192.168.1.16:8096/emby/DisplayPreferences/usersettings?userId=REDACTED&client=emby (apiclient.js, line 1)
[Log] web socket connection opened (apiclient.js, line 1)
[Log] ConnectionManager requesting url: http://diskstation.local:8096/emby/system/info/public (connectionmanager.js, line 1)
[Log] ConnectionManager requesting url: http://101.161.197.201:8096/emby/system/info/public (connectionmanager.js, line 1)
[Error] Failed to load resource: The network connection was lost. (public, line 0)
[Log] ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/system/info/public (connectionmanager.js, line 1)
[Log] AbortError: http://192.168.1.16:8096/emby/DisplayPreferences/usersettings?userId=REDACTED&client=emby (apiclient.js, line 1)
[Log] Attempting reconnection (apiclient.js, line 1)
[Log] tryReconnect: http://192.168.1.16:8096|http://diskstation.local:8096|http://101.161.197.201:8096(apiclient.js, line 1)
[Log] tryReconnectToUrl: http://192.168.1.16:8096 (apiclient.js, line 1)
[Log] tryReconnectToUrl: http://diskstation.local:8096 (apiclient.js, line 1)
[Log] tryReconnectToUrl: http://101.161.197.201:8096 (apiclient.js, line 1)
[Log] Reconnect succeeded to http://192.168.1.16:8096 (apiclient.js, line 1)
[Log] Retrying request with new url: http://192.168.1.16:8096/emby/DisplayPreferences/usersettings?userId=REDACTED&client=emby (apiclient.js, line 1)
[Log] Requesting http://192.168.1.16:8096/emby/DisplayPreferences/usersettings?userId=REDACTED&client=emby (apiclient.js, line 1)
[Error] Failed to load resource: The network connection was lost. (public, line 0)
[Log] AbortError: http://192.168.1.16:8096/emby/DisplayPreferences/usersettings?userId=REDACTED&client=emby (apiclient.js, line 1)
[Log] Reporting request failure (apiclient.js, line 1)
[Log] resolving connectToServers with result.State: SignedIn (connectionmanager.js, line 1)
[Log] appRouter - processing path request /home (router.js, line 1)
[Log] appRouter - user is authenticated (router.js, line 1)
[Log] appRouter - proceeding to /home (router.js, line 1)
[Error] Error: item or serverId cannot be null
(anonymous function) (connectionmanager.js:1:28148)
(anonymous function) (dockedtabs.js:1:1717)
setMode (dockedtabs.js:1:2993)
onViewShow (dockedtabs.js:1:3365)
dispatchEvent
onViewChange (viewmanager.js:1:645)
(anonymous function) (viewmanager.js:1:2308)
promiseReactionJob

 

 

Apart from the 30-second pause on loading the UI, the app continues to work fine in Safari.

Edited by sentience
Link to comment
Share on other sites

HI, it's normal for it to attempt all known addresses, because that's what it does, but it's not normal to have to wait for the full 20-30 second timeout. For the chrome console logs are you sure that's all of it? It doesn't seem complete.

Link to comment
Share on other sites

  • 2 weeks later...
sentience

Still seeing this. Unable to connect in Chrome, and 30s delay in connecting in Safari.

 

You asked if the console log was complete above. I did indeed chop some repetitive parts out (indicated with “…”). If you prefer the full log, here's everything for a direct visit to http://app.emby.media/#!/startup/manualserver.html in Chrome, where I type in the server name (http://diskstation.local), click Connect, and then wait while nothing happens.

 

 

app.js?v=4.4.2.9:1 Setting require baseUrl to http://app.emby.media

DevTools failed to load SourceMap: Could not load content for chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/sourcemaps/onloadwff.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
connectionmanager.js?v=4.4.2.9:1 Begin ConnectionManager constructor
app.js?v=4.4.2.9:1 loadFirstLevelPresentationDependencies
app.js?v=4.4.2.9:1 loadPlugins
app.js?v=4.4.2.9:1 Loading installed plugins
pluginmanager.js?v=4.4.2.9:1 Loading plugin: bower_components/emby-webcomponents/playback/playbackvalidation
pluginmanager.js?v=4.4.2.9:1 Loading plugin: bower_components/emby-webcomponents/playback/playaccessvalidation
pluginmanager.js?v=4.4.2.9:1 Loading plugin: bower_components/emby-webcomponents/playback/experimentalwarnings
pluginmanager.js?v=4.4.2.9:1 Loading plugin: modules/soundeffects/defaultsoundeffects/plugin
pluginmanager.js?v=4.4.2.9:1 Loading plugin: modules/logoscreensaver/plugin
pluginmanager.js?v=4.4.2.9:1 Loading plugin: modules/backdropscreensaver/plugin
pluginmanager.js?v=4.4.2.9:1 Loading plugin: modules/photoscreensaver/plugin
pluginmanager.js?v=4.4.2.9:1 Loading plugin: modules/htmlaudioplayer/plugin
pluginmanager.js?v=4.4.2.9:1 Loading plugin: modules/htmlvideoplayer/plugin
pluginmanager.js?v=4.4.2.9:1 Loading plugin: modules/photoplayer/plugin
pluginmanager.js?v=4.4.2.9:1 Loading plugin: modules/sessionplayer
pluginmanager.js?v=4.4.2.9:1 Loading plugin: modules/chromecast/chromecastplayer
pluginmanager.js?v=4.4.2.9:1 Loading plugin: modules/youtubeplayer/plugin
pluginmanager.js?v=4.4.2.9:1 Loading plugin: modules/confirmstillplaying/plugin
router.js?v=4.4.2.9:1 Setting page base to 
apiclient.js?v=4.4.2.9:1 ApiClient serverAddress: http://diskstation.local:8096
apiclient.js?v=4.4.2.9:1 ApiClient appName: Emby Web
apiclient.js?v=4.4.2.9:1 ApiClient appVersion: 4.4.2.9
apiclient.js?v=4.4.2.9:1 ApiClient deviceName: Chrome
apiclient.js?v=4.4.2.9:1 ApiClient deviceId: dd067255-a54b-4f26-ac63-c4045a68178b
connectionmanager.js?v=4.4.2.9:1 returning instance from getOrAddApiClient
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
pluginmanager.js?v=4.4.2.9:1 creating plugin instance
pluginmanager.js?v=4.4.2.9:1 setting require config
pluginmanager.js?v=4.4.2.9:1 loading plugin strings
app.js?v=4.4.2.9:1 loadExternalScripts
app.js?v=4.4.2.9:1 loadHeader
registrationservices.js?v=4.4.2.9:1 validateFeature: themes
app.js?v=4.4.2.9:1 onAppReady
connectionmanager.js?v=4.4.2.9:1 getRegistrationInfo returning cached info
app.js?v=4.4.2.9:1 Loaded dependencies in onAppReady
app.js?v=4.4.2.9:1 Defining core routes
router.js?v=4.4.2.9:1 Defining route: /startup/connectlogin.html
router.js?v=4.4.2.9:1 Defining route: /startup/connectsignup.html
router.js?v=4.4.2.9:1 Defining route: /startup/welcome.html
router.js?v=4.4.2.9:1 Defining route: /startup/forgotpassword.html
router.js?v=4.4.2.9:1 Defining route: /startup/forgotpasswordpin.html
router.js?v=4.4.2.9:1 Defining route: /home
router.js?v=4.4.2.9:1 Defining route: /home/home.html
router.js?v=4.4.2.9:1 Defining route: /home.html
router.js?v=4.4.2.9:1 Defining route: /home_horiz/home.html
router.js?v=4.4.2.9:1 Defining route: /list/list.html
router.js?v=4.4.2.9:1 Defining route: /item
router.js?v=4.4.2.9:1 Defining route: /item/item.html
router.js?v=4.4.2.9:1 Defining route: /livetv
router.js?v=4.4.2.9:1 Defining route: /startup/login.html
router.js?v=4.4.2.9:1 Defining route: /startup/manuallogin.html
router.js?v=4.4.2.9:1 Defining route: /movies
router.js?v=4.4.2.9:1 Defining route: /games
router.js?v=4.4.2.9:1 Defining route: /homevideos
router.js?v=4.4.2.9:1 Defining route: /musicvideos
router.js?v=4.4.2.9:1 Defining route: /music
router.js?v=4.4.2.9:1 Defining route: /videoosd/videoosd.html
router.js?v=4.4.2.9:1 Defining route: /settings
router.js?v=4.4.2.9:1 Defining route: /settings/keyboard.html
router.js?v=4.4.2.9:1 Defining route: /settings/playback.html
router.js?v=4.4.2.9:1 Defining route: /settings/subtitles.html
router.js?v=4.4.2.9:1 Defining route: /settings/display.html
router.js?v=4.4.2.9:1 Defining route: /settings/homescreen.html
router.js?v=4.4.2.9:1 Defining route: /settings/profile.html
router.js?v=4.4.2.9:1 Defining route: /settings/password.html
router.js?v=4.4.2.9:1 Defining route: /search
router.js?v=4.4.2.9:1 Defining route: /startup/manualserver.html
router.js?v=4.4.2.9:1 Defining route: /startup/selectserver.html
router.js?v=4.4.2.9:1 Defining route: /tv
router.js?v=4.4.2.9:1 Defining route: /plugins/install
router.js?v=4.4.2.9:1 Defining route: /dashboard
router.js?v=4.4.2.9:1 Defining route: /dashboard.html
router.js?v=4.4.2.9:1 Defining route: /dashboardgeneral.html
router.js?v=4.4.2.9:1 Defining route: /devices
router.js?v=4.4.2.9:1 Defining route: /network
router.js?v=4.4.2.9:1 Defining route: /devices/device.html
router.js?v=4.4.2.9:1 Defining route: /devices/cameraupload.html
router.js?v=4.4.2.9:1 Defining route: /metadatamanager
router.js?v=4.4.2.9:1 Defining route: /transcoding
router.js?v=4.4.2.9:1 Defining route: /librarysetup/library.html
router.js?v=4.4.2.9:1 Defining route: /librarysetup/advanced.html
router.js?v=4.4.2.9:1 Defining route: /livetvsetup/schedulesdirect.html
router.js?v=4.4.2.9:1 Defining route: /livetvsetup/xmltv.html
router.js?v=4.4.2.9:1 Defining route: /livetvsetup/embydata.html
router.js?v=4.4.2.9:1 Defining route: /livetvsetup/guideprovider.html
router.js?v=4.4.2.9:1 Defining route: /livetvsetup/livetvsettings.html
router.js?v=4.4.2.9:1 Defining route: /livetvsetup/livetvstatus.html
router.js?v=4.4.2.9:1 Defining route: /livetvsetup/livetvtuner.html
router.js?v=4.4.2.9:1 Defining route: /logs
router.js?v=4.4.2.9:1 Defining route: /log
router.js?v=4.4.2.9:1 Defining route: /metadataadvanced.html
router.js?v=4.4.2.9:1 Defining route: /notificationsetting.html
router.js?v=4.4.2.9:1 Defining route: /notificationsettings.html
router.js?v=4.4.2.9:1 Defining route: /plugincatalog
router.js?v=4.4.2.9:1 Defining route: /plugins
router.js?v=4.4.2.9:1 Defining route: /scheduledtask
router.js?v=4.4.2.9:1 Defining route: /dashboard/releasenotes.html
router.js?v=4.4.2.9:1 Defining route: /scheduledtasks
router.js?v=4.4.2.9:1 Defining route: /serveractivity
router.js?v=4.4.2.9:1 Defining route: /apikeys
router.js?v=4.4.2.9:1 Defining route: /embypremiere
router.js?v=4.4.2.9:1 Defining route: /syncactivity.html
router.js?v=4.4.2.9:1 Defining route: /syncsettings.html
router.js?v=4.4.2.9:1 Defining route: /useredit.html
router.js?v=4.4.2.9:1 Defining route: /userlibraryaccess.html
router.js?v=4.4.2.9:1 Defining route: /usernew.html
router.js?v=4.4.2.9:1 Defining route: /userparentalcontrol.html
router.js?v=4.4.2.9:1 Defining route: /userpassword.html
router.js?v=4.4.2.9:1 Defining route: /users
router.js?v=4.4.2.9:1 Defining route: /wizard/wizardagreement.html
router.js?v=4.4.2.9:1 Defining route: /wizard/wizardremoteaccess.html
router.js?v=4.4.2.9:1 Defining route: /wizard/wizardfinish.html
router.js?v=4.4.2.9:1 Defining route: /wizard/wizardlibrary.html
router.js?v=4.4.2.9:1 Defining route: /wizard/wizardsettings.html
router.js?v=4.4.2.9:1 Defining route: /wizard/wizardstart.html
router.js?v=4.4.2.9:1 Defining route: /wizard/wizarduser.html
router.js?v=4.4.2.9:1 Defining route: /configurationpageext
router.js?v=4.4.2.9:1 Defining route: /index.html
router.js?v=4.4.2.9:1 Defining route: /
connectionmanager.js?v=4.4.2.9:1 returning instance from getOrAddApiClient
connectionmanager.js?v=4.4.2.9:1 Begin connect
connectionmanager.js?v=4.4.2.9:1 Begin getAvailableServers
connectionmanager.js?v=4.4.2.9:1 Begin getConnectServers
connectionmanager.js?v=4.4.2.9:1 Begin connectToServers, with 1 servers
connectionmanager.js?v=4.4.2.9:1 begin connectToServer
connectionmanager.js?v=4.4.2.9:1 tryReconnectToUrl: http://192.168.1.16:8096
connectionmanager.js?v=4.4.2.9:1 tryReconnectToUrl: http://diskstation.local:8096
connectionmanager.js?v=4.4.2.9:1 tryReconnectToUrl: http://101.161.197.201:8096
connectionmanager.js?v=4.4.2.9:1 ConnectionManager requesting url: http://192.168.1.16:8096/emby/system/info/public
connectionmanager.js?v=4.4.2.9:1 ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/system/info/public
connectionmanager.js?v=4.4.2.9:1 ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/manifest.json
connectionmanager.js?v=4.4.2.9:1 ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/index.html
connectionmanager.js?v=4.4.2.9:1 ConnectionManager requesting url: http://192.168.1.16:8096/emby/web/strings/en-US.json
connectionmanager.js?v=4.4.2.9:1 ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/manifest.json
connectionmanager.js?v=4.4.2.9:1 ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/strings/en-US.json
connectionmanager.js?v=4.4.2.9:1 ConnectionManager response status: 200, url: http://192.168.1.16:8096/emby/web/index.html
connectionmanager.js?v=4.4.2.9:1 returning instance from getOrAddApiClient
apiclient.js?v=4.4.2.9:1 Setting server address to http://192.168.1.16:8096
connectionmanager.js?v=4.4.2.9:1 resolving connectToServers with result.State: ServerSignIn
router.js?v=4.4.2.9:1 appRouter - processing path request /startup/manualserver.html
router.js?v=4.4.2.9:1 appRouter - proceeding to /startup/manualserver.html
connectionmanager.js?v=4.4.2.9:1 ConnectionManager requesting url: http://diskstation.local:8096/emby/system/info/public
connectionmanager.js?v=4.4.2.9:1 ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/system/info/public
/#!/startup/manualserver.html:1 Autofocus processing was blocked because a document already has a focused element.
connectionmanager.js?v=4.4.2.9:1 ConnectionManager requesting url: http://101.161.197.201:8096/emby/system/info/public
VM289:1 GET http://101.161.197.201:8096/emby/system/info/public net::ERR_EMPTY_RESPONSE
(anonymous) @ VM289:1
(anonymous) @ connectionmanager.js?v=4.4.2.9:1
ajax @ connectionmanager.js?v=4.4.2.9:1
(anonymous) @ connectionmanager.js?v=4.4.2.9:1
Promise.then (async)
tryReconnectToUrl @ connectionmanager.js?v=4.4.2.9:1
tryReconnect @ connectionmanager.js?v=4.4.2.9:1
ConnectionManager.self.connectToServer @ connectionmanager.js?v=4.4.2.9:1
ConnectionManager.self.connectToServers @ connectionmanager.js?v=4.4.2.9:1
(anonymous) @ connectionmanager.js?v=4.4.2.9:1
Promise.then (async)
ConnectionManager.connect @ connectionmanager.js?v=4.4.2.9:1
appRouter.start @ router.js?v=4.4.2.9:1
(anonymous) @ app.js?v=4.4.2.9:1
Promise.then (async)
onAppReady @ app.js?v=4.4.2.9:1
Promise.then (async)
start @ app.js?v=4.4.2.9:1
(anonymous) @ app.js?v=4.4.2.9:1
(anonymous) @ app.js?v=4.4.2.9:1
connectionmanager.js?v=4.4.2.9:1 begin connectToServer
connectionmanager.js?v=4.4.2.9:1 tryReconnect: http://diskstation.local:8096
connectionmanager.js?v=4.4.2.9:1 tryReconnectToUrl: http://diskstation.local:8096
connectionmanager.js?v=4.4.2.9:1 ConnectionManager requesting url: http://diskstation.local:8096/emby/system/info/public
connectionmanager.js?v=4.4.2.9:1 ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/system/info/public
connectionmanager.js?v=4.4.2.9:1 ConnectionManager requesting url: http://diskstation.local:8096/emby/web/manifest.json
connectionmanager.js?v=4.4.2.9:1 ConnectionManager requesting url: http://diskstation.local:8096/emby/web/index.html
connectionmanager.js?v=4.4.2.9:1 ConnectionManager requesting url: http://diskstation.local:8096/emby/web/strings/en-US.json
connectionmanager.js?v=4.4.2.9:1 ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/web/manifest.json
connectionmanager.js?v=4.4.2.9:1 ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/web/index.html
connectionmanager.js?v=4.4.2.9:1 ConnectionManager response status: 200, url: http://diskstation.local:8096/emby/web/strings/en-US.json
connectionmanager.js?v=4.4.2.9:1 returning instance from getOrAddApiClient
apiclient.js?v=4.4.2.9:1 Setting server address to http://diskstation.local:8096
apiclient.js?v=4.4.2.9:1 Requesting http://diskstation.local:8096/emby/users/public
apiclient.js?v=4.4.2.9:1 AbortError: http://diskstation.local:8096/emby/users/public
apiclient.js?v=4.4.2.9:1 Attempting reconnection
apiclient.js?v=4.4.2.9:1 tryReconnectToUrl: http://192.168.1.16:8096
apiclient.js?v=4.4.2.9:1 tryReconnectToUrl: http://diskstation.local:8096
apiclient.js?v=4.4.2.9:1 tryReconnectToUrl: http://101.161.197.201:8096
apiclient.js?v=4.4.2.9:1 Reconnect succeeded to http://192.168.1.16:8096
apiclient.js?v=4.4.2.9:1 Retrying request with new url: http://192.168.1.16:8096/emby/users/public
apiclient.js?v=4.4.2.9:1 Requesting http://192.168.1.16:8096/emby/users/public
VM289:1 GET http://101.161.197.201:8096/emby/system/info/public net::ERR_EMPTY_RESPONSE
(anonymous) @ VM289:1
getFetchPromise @ apiclient.js?v=4.4.2.9:1
(anonymous) @ apiclient.js?v=4.4.2.9:1
Promise.then (async)
tryReconnectToUrl @ apiclient.js?v=4.4.2.9:1
tryReconnectInternal @ apiclient.js?v=4.4.2.9:1
tryReconnect @ apiclient.js?v=4.4.2.9:1
(anonymous) @ apiclient.js?v=4.4.2.9:1
Promise.then (async)
ApiClient.fetchWithFailover @ apiclient.js?v=4.4.2.9:1
ApiClient.fetch @ apiclient.js?v=4.4.2.9:1
ApiClient.ajax @ apiclient.js?v=4.4.2.9:1
ApiClient.getPublicUsers @ apiclient.js?v=4.4.2.9:1
showLocalLoginFromApiClient @ router.js?v=4.4.2.9:1
handleConnectionResult @ router.js?v=4.4.2.9:1
(anonymous) @ manualserver.js?v=4.4.2.9:1
Promise.then (async)
(anonymous) @ manualserver.js?v=4.4.2.9:1
apiclient.js?v=4.4.2.9:1 AbortError: http://192.168.1.16:8096/emby/users/public
apiclient.js?v=4.4.2.9:1 Reporting request failure
/#!/startup/manualserver.html:1 Uncaught (in promise) DOMException: The user aborted a request.

 

The second net::ERR_EMPTY_RESPONSE at the end is preceded by exactly 30 seconds of inactivity in the console.

Link to comment
Share on other sites

sentience

But it still connects right?

 

No, it never connects in Chrome. In Safari it connects after the 30s delay.

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...