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

Use ip address in configuration #124

Open
almostengr opened this issue Dec 23, 2024 · 1 comment
Open

Use ip address in configuration #124

almostengr opened this issue Dec 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@almostengr
Copy link
Owner

When "http://localhost" is used in configuration, it can capture the wrong IP address. When FPP starts up, the localhost address is 192.168.8.1 until it connects to a wireless network. However, the worker application caches this address, even after connecting to wifi. This results in exceptions being throw for not being able to connect. Also requests submitted are not able to be processed as the IP address of the device has changed, and the application has the previous IP address.

Configuration was updated to confirm this issue and has been resolved. Creating issue for documentation.

Dec 22 22:30:33 fpphouse Almostengr.LightShowExtender.Worker[6196]: Almostengr.LightShowExtender.DomainService.FalconPiPlayer.GetCpuTemperaturesHandler[0] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object.    at Almostengr.LightShowExtender.DomainService.FalconPiPlayer.GetCpuTemperaturesHandler.ExecuteAsync(CancellationToken cancellationToken) in /mnt/d74511ce-4722-471d-8d27-05013fd521b3/projects/light-show-extender/extender/Almostengr.LightShowExtender.DomainService/FalconPiPlayer/GetCpuTemperaturesHandler.cs:line 42
Dec 22 22:30:34 fpphouse Almostengr.LightShowExtender.Worker[6196]: Almostengr.LightShowExtender.DomainService.Website.PostDisplayInfoHandler[0] Code: InternalServerError, Body: body
Dec 22 22:31:04 fpphouse Almostengr.LightShowExtender.Worker[6196]: Almostengr.LightShowExtender.DomainService.FalconPiPlayer.GetStatusHandler[0] Connection timed out (192.168.8.1:80) System.Net.Http.HttpRequestException: Connection timed out (192.168.8.1:80)  ---> System.Net.Sockets.SocketException (110): Connection timed out    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)    at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)    --- End of inner exception stack trace ---    at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)    at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.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.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)    at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)    at Almostengr.Extensions.AeHttpClient.GetAsync[T](HttpClient httpClient, String route, CancellationToken cancellationToken) in /mnt/d74511ce-4722-471d-8d27-05013fd521b3/projects/light-show-extender/extender/Almostengr.Extensions/AeHttpClient.cs:line 66    at Almostengr.LightShowExtender.Infrastructure.FalconPiPlayer.FppHttpClient.GetFppdStatusAsync(CancellationToken cancellationToken, String hostname) in /mnt/d74511ce-4722-471d-8d27-05013fd521b3/projects/light-show-extender/extender/Almostengr.LightShowExtender.Infrastructure/FalconPiPlayer/FppHttpClient.cs:line 40    at Almostengr.LightShowExtender.DomainService.FalconPiPlayer.GetStatusHandler.ExecuteAsync(FppStatusRequest request, CancellationToken cancellationToken) in /mnt/d74511ce-4722-471d-8d27-05013fd521b3/projects/light-show-extender/extender/Almostengr.LightShowExtender.DomainService/FalconPiPlayer/GetStatusHandler.cs:line 28
@almostengr almostengr added the bug Something isn't working label Dec 23, 2024
@almostengr almostengr self-assigned this Dec 23, 2024
@almostengr
Copy link
Owner Author

should use 127.0.0.1 for localhost ip address instead of device address once connected to router

almostengr pushed a commit that referenced this issue Dec 27, 2024
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

1 participant