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

TypeError: Cannot read properties of undefined (reading '0') #1868

Open
Brancliff opened this issue Sep 7, 2022 · 0 comments
Open

TypeError: Cannot read properties of undefined (reading '0') #1868

Brancliff opened this issue Sep 7, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Brancliff
Copy link

Brancliff commented Sep 7, 2022

Bug report

Describe the bug
I'm stuck on the setup Wizard. After inputting a Jellyfin URL and API Key, it gets stuck on verifying the api key 1/4. I know I got both the URL and API key correct because the button next to the URL box does link to my Jellyfin API settings, and my Jellyfin API auth verify link checks out. Anyways, after a bit, it times out and takes me to a white screen. If I try to go back to the page, it just brings back to the start of the wizard.

Also, when trying to detect a server, it says "Now we will set up your {{type}} connection." That's not super important, but I thought I'd mention it while I'm here

To Reproduce
I don't know if it can be reproduced on everyone else's end, or if it's just something wrong on my part :c But, here's my docker-compose
version: '3'
services:
embystat:
image: uping/embystat:beta
container_name: embystat
ports:
- 5007:6555
volumes:
- /share/CE_CACHEDEV1_DATA/Library/Projects/Grafana/embystat:/app/config

System (please complete the following information):

  • OS: Windows, EmbyStat and Jellyfin are ran through Docker
  • Vivaldi v5.0.2497.32 (Stable)
  • embystat:beta
  • Media server type [e.g. Emby/Jellyfin]

Additional context
Here are the logs associated with all of this:

Browser console logs:
[2022-09-07T01:51:57.778Z] Information: Normalizing '/hub' to 'http://10.0.0.147:5007/hub'.
Utils.ts:203 [2022-09-07T01:51:57.783Z] Debug: Starting connection with transfer format 'Text'.
Utils.ts:203 [2022-09-07T01:51:57.784Z] Debug: Sending negotiation request: http://10.0.0.147:5007/hub/negotiate?negotiateVersion=1.
Utils.ts:203 [2022-09-07T01:51:57.988Z] Debug: Selecting transport 'WebSockets'.
Utils.ts:199 [2022-09-07T01:51:58.111Z] Information: WebSocket connected to ws://10.0.0.147:5007/hub?id=rIEOsyNgFFDbWPeUqhJ42A.
Utils.ts:203 [2022-09-07T01:51:58.112Z] Debug: The HttpConnection connected successfully.
SignalRState.tsx:40 SignalR Connected
react-dom.production.min.js:216 TypeError: Cannot read properties of undefined (reading '0')
at TestSuccessFul.tsx:71
at ra (react-dom.production.min.js:157)
at Na (react-dom.production.min.js:176)
at Ws (react-dom.production.min.js:271)
at jc (react-dom.production.min.js:250)
at Ec (react-dom.production.min.js:250)
at kc (react-dom.production.min.js:250)
at vc (react-dom.production.min.js:243)
at react-dom.production.min.js:123
at t.unstable_runWithPriority (scheduler.production.min.js:18)
as @ react-dom.production.min.js:216
n.callback @ react-dom.production.min.js:216
fi @ react-dom.production.min.js:131
ps @ react-dom.production.min.js:220
Ac @ react-dom.production.min.js:259
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ho @ react-dom.production.min.js:122
Tc @ react-dom.production.min.js:252
vc @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ho @ react-dom.production.min.js:122
qo @ react-dom.production.min.js:123
Vo @ react-dom.production.min.js:122
lc @ react-dom.production.min.js:237
Ca @ react-dom.production.min.js:170
(anonymous) @ TestMediaServer.tsx:47
l @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
co @ asyncToGenerator.js:3
a @ asyncToGenerator.js:25
Utils.ts:203 [2022-09-07T01:53:01.742Z] Debug: HttpConnection.stopConnection(undefined) called while in state Disconnecting.
Utils.ts:199 [2022-09-07T01:53:01.743Z] Information: Connection disconnected.
SignalRState.tsx:54 SignalR Connection closed
TestSuccessFul.tsx:71 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '0')
at TestSuccessFul.tsx:71
at ra (react-dom.production.min.js:157)
at Na (react-dom.production.min.js:176)
at Ws (react-dom.production.min.js:271)
at jc (react-dom.production.min.js:250)
at Ec (react-dom.production.min.js:250)
at kc (react-dom.production.min.js:250)
at vc (react-dom.production.min.js:243)
at react-dom.production.min.js:123
at t.unstable_runWithPriority (scheduler.production.min.js:18)

Container console logs:
[2022-09-07 01:53:32] [] [INF] --------------------------------------------------------------------
[2022-09-07 01:53:32] [] [INF] System info:
[2022-09-07 01:53:32] [] [INF] Environment Production
[2022-09-07 01:53:32] [] [INF] Debugger False
[2022-09-07 01:53:32] [] [INF] Process Name dotnet
[2022-09-07 01:53:32] [] [INF] Version 0.2.0.0
[2022-09-07 01:53:32] [] [INF] Log level: Information
[2022-09-07 01:53:32] [] [INF] Port: 6555
[2022-09-07 01:53:32] [] [INF] SSL Port: 6556
[2022-09-07 01:53:32] [] [INF] SSL Enabled: False
[2022-09-07 01:53:32] [] [INF] URLs: *
[2022-09-07 01:53:32] [] [INF] Config dir: /app/config
[2022-09-07 01:53:32] [] [INF] Log dir: /app/logs
[2022-09-07 01:53:32] [] [INF] Data dir: /app/data
[2022-09-07 01:53:32] [] [INF] Can update: True
[2022-09-07 01:53:32] [] [INF] As service: False
[2022-09-07 01:53:32] [] [INF] --------------------------------------------------------------------
[2022-09-07 01:53:35] [Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository] [WRN] Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
[2022-09-07 01:53:37] [Microsoft.Hosting.Lifetime] [INF] Now listening on: http://[::]:6555
[2022-09-07 01:53:43] [EmbyStat.Core.DataStore.EsDbContext] [INF] Found 0 pending database migration
[2022-09-07 01:53:48] [Microsoft.Hosting.Lifetime] [INF] Application started. Press Ctrl+C to shut down.
[2022-09-07 01:53:48] [Microsoft.Hosting.Lifetime] [INF] Hosting environment: Production
[2022-09-07 01:53:48] [Microsoft.Hosting.Lifetime] [INF] Content root path: /app
[2022-09-07 01:55:07] [EmbyStat.Jobs.Jobs.Maintenance.PingEmbyJob] [WRN] Job not running because wizard is not finished
[2022-09-07 01:55:54] [EmbyStat.Common.Exceptions.BusinessExceptionFilterAttribute] [ERR] Exception occured
System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
---> System.TimeoutException: A task was canceled.
---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at Refit.RequestBuilderImplementation.<>c__DisplayClass14_02.<b__0>d.MoveNext() in /_/Refit/RequestBuilderImplementation.cs:line 256
--- End of stack trace from previous location ---
at EmbyStat.Clients.Base.Http.BaseHttpClient.GetServerInfo()
at EmbyStat.Core.MediaServers.MediaServerService.TestNewApiKey(String url, String apiKey, ServerType type)
at EmbyStat.Controllers.MediaServer.MediaServerController.TestApiKey(LoginViewModel login)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
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.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

@mregni mregni self-assigned this Sep 8, 2022
@mregni mregni added the bug Something isn't working label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants