Skip to content

Issue when placing behind HAProxy #87

@JonahMMay

Description

@JonahMMay

I used the magic variable between the frontend and backend and it works great when I connect to the frontend via IP. However, I am trying to place it behind HAProxy for HTTPS/DNS and getting the following error when trying to load "Latest Downloads", "Steam Latest Downloads", and "Download Stats":

environment.js:4  Uncaught ReferenceError: EOL is not defined
    at environment.js:4:1
timezone.js:2 HALLOOOO123
[NEW] Explain Console errors by using Copilot in Edge: click
         
         to explain an error. 
        Learn more
        Don't show again
installHook.js:1  crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: net_WebSockets_InvalidState, Closed, Open, CloseSent
System.Net.WebSockets.WebSocketException (0x80004005): net_WebSockets_InvalidState, Closed, Open, CloseSent
   at System.Net.WebSockets.BrowserWebSocket.ReceiveAsyncCore(/ArraySegment`1 , CancellationToken )
   at System.Net.WebSockets.WebSocket.ReceiveAsync(/Memory`1 , CancellationToken )
   at Microsoft.AspNetCore.Http.Connections.Client.Internal.WebSocketsTransport.StartReceiving(/WebSocket )
   at System.IO.Pipelines.Pipe.GetReadResult(/ReadResult& )
   at System.IO.Pipelines.Pipe.ReadAsync(/CancellationToken )
   at System.IO.Pipelines.Pipe.DefaultPipeReader.ReadAsync(/CancellationToken )
   at Microsoft.AspNetCore.SignalR.Client.HubConnection.HandshakeAsync(/ConnectionState startingConnectionState, Int32 protocolVersion, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncCore(/CancellationToken cancellationToken)
   at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncCore(/CancellationToken cancellationToken)
   at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncInner(/CancellationToken cancellationToken)
   at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsync(/CancellationToken )
   at DeveLanCacheUI_Frontend.Pages.DownloadStatsPage.OnInitializedAsync((index))
   at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync((index))
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(/Task , ComponentState )
overrideMethod @ installHook.js:1
vt @ blazor.webassembly.js:1
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func287 @ 00b5b776:0x1f1c8
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func280 @ 00b5b776:0x1ec88
$func316 @ 00b5b776:0x1fdef
$func188 @ 00b5b776:0xc794
$mono_background_exec @ 00b5b776:0x47ff8
Yo @ dotnet.runtime.d1pzlaz2ez.js:3
callUserCallback @ dotnet.native.rtblh4npr3.js:8
(anonymous) @ dotnet.native.rtblh4npr3.js:8
setTimeout
safeSetTimeout @ dotnet.native.rtblh4npr3.js:8
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func789 @ 00b5b776:0x47f96
$func287 @ 00b5b776:0x1f1a4
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func246 @ 00b5b776:0x1d429
$func3221 @ 00b5b776:0xf108a
$func2544 @ 00b5b776:0xc6bee
$func2549 @ 00b5b776:0xc73e6
$func2573 @ 00b5b776:0xc9a78
$mono_wasm_invoke_jsexport @ 00b5b776:0xae69
Module._mono_wasm_invoke_jsexport @ dotnet.native.rtblh4npr3.js:8
hn @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
complete_task_wrapper @ dotnet.runtime.d1pzlaz2ez.js:3
resolve @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Promise.then
mo @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func287 @ 00b5b776:0x1f1c8
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func280 @ 00b5b776:0x1ec88
$func316 @ 00b5b776:0x1fdef
$func188 @ 00b5b776:0xc794
$mono_background_exec @ 00b5b776:0x47ff8
Yo @ dotnet.runtime.d1pzlaz2ez.js:3
callUserCallback @ dotnet.native.rtblh4npr3.js:8
(anonymous) @ dotnet.native.rtblh4npr3.js:8
setTimeout
safeSetTimeout @ dotnet.native.rtblh4npr3.js:8
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func789 @ 00b5b776:0x47f96
$func287 @ 00b5b776:0x1f1a4
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func246 @ 00b5b776:0x1d429
$func3221 @ 00b5b776:0xf108a
$func2544 @ 00b5b776:0xc6bee
$func2549 @ 00b5b776:0xc73e6
$func2573 @ 00b5b776:0xc9a78
$mono_wasm_invoke_jsexport @ 00b5b776:0xae69
Module._mono_wasm_invoke_jsexport @ dotnet.native.rtblh4npr3.js:8
hn @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
complete_task_wrapper @ dotnet.runtime.d1pzlaz2ez.js:3
resolve @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Promise.then
mo @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func287 @ 00b5b776:0x1f1c8
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func280 @ 00b5b776:0x1ec88
$func316 @ 00b5b776:0x1fdef
$func188 @ 00b5b776:0xc794
$mono_background_exec @ 00b5b776:0x47ff8
Yo @ dotnet.runtime.d1pzlaz2ez.js:3
callUserCallback @ dotnet.native.rtblh4npr3.js:8
(anonymous) @ dotnet.native.rtblh4npr3.js:8
setTimeout
safeSetTimeout @ dotnet.native.rtblh4npr3.js:8
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func789 @ 00b5b776:0x47f96
$func287 @ 00b5b776:0x1f1a4
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func246 @ 00b5b776:0x1d429
$func3221 @ 00b5b776:0xf108a
$func2544 @ 00b5b776:0xc6bee
$func2549 @ 00b5b776:0xc73e6
$func2573 @ 00b5b776:0xc9a78
$mono_wasm_invoke_jsexport @ 00b5b776:0xae69
Module._mono_wasm_invoke_jsexport @ dotnet.native.rtblh4npr3.js:8
hn @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
complete_task_wrapper @ dotnet.runtime.d1pzlaz2ez.js:3
resolve @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Promise.then
mo @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func287 @ 00b5b776:0x1f1c8
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func280 @ 00b5b776:0x1ec88
$func316 @ 00b5b776:0x1fdef
$func188 @ 00b5b776:0xc794
$mono_background_exec @ 00b5b776:0x47ff8
Yo @ dotnet.runtime.d1pzlaz2ez.js:3
callUserCallback @ dotnet.native.rtblh4npr3.js:8
(anonymous) @ dotnet.native.rtblh4npr3.js:8
setTimeout
safeSetTimeout @ dotnet.native.rtblh4npr3.js:8
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func789 @ 00b5b776:0x47f96
$func287 @ 00b5b776:0x1f1a4
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func246 @ 00b5b776:0x1d429
$func3221 @ 00b5b776:0xf108a
$func2544 @ 00b5b776:0xc6bee
$func2549 @ 00b5b776:0xc73e6
$func2573 @ 00b5b776:0xc9a78
$mono_wasm_invoke_jsexport @ 00b5b776:0xae69
Module._mono_wasm_invoke_jsexport @ dotnet.native.rtblh4npr3.js:8
hn @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
complete_task_wrapper @ dotnet.runtime.d1pzlaz2ez.js:3
resolve @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Promise.then
mo @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func287 @ 00b5b776:0x1f1c8
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func280 @ 00b5b776:0x1ec88
$func316 @ 00b5b776:0x1fdef
$func188 @ 00b5b776:0xc794
$mono_background_exec @ 00b5b776:0x47ff8
Yo @ dotnet.runtime.d1pzlaz2ez.js:3
callUserCallback @ dotnet.native.rtblh4npr3.js:8
(anonymous) @ dotnet.native.rtblh4npr3.js:8
setTimeout
safeSetTimeout @ dotnet.native.rtblh4npr3.js:8
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func789 @ 00b5b776:0x47f96
$func287 @ 00b5b776:0x1f1a4
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func246 @ 00b5b776:0x1d429
$func3221 @ 00b5b776:0xf108a
$func2544 @ 00b5b776:0xc6bee
$func2549 @ 00b5b776:0xc73e6
$func2573 @ 00b5b776:0xc9a78
$mono_wasm_invoke_jsexport @ 00b5b776:0xae69
Module._mono_wasm_invoke_jsexport @ dotnet.native.rtblh4npr3.js:8
hn @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
complete_task_wrapper @ dotnet.runtime.d1pzlaz2ez.js:3
resolve @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Promise.then
mo @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func287 @ 00b5b776:0x1f1c8
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func280 @ 00b5b776:0x1ec88
$func316 @ 00b5b776:0x1fdef
$func188 @ 00b5b776:0xc794
$mono_background_exec @ 00b5b776:0x47ff8
Yo @ dotnet.runtime.d1pzlaz2ez.js:3
callUserCallback @ dotnet.native.rtblh4npr3.js:8
(anonymous) @ dotnet.native.rtblh4npr3.js:8
setTimeout
safeSetTimeout @ dotnet.native.rtblh4npr3.js:8
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func789 @ 00b5b776:0x47f96
$func287 @ 00b5b776:0x1f1a4
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func246 @ 00b5b776:0x1d429
$func3221 @ 00b5b776:0xf108a
$func2544 @ 00b5b776:0xc6bee
$func2549 @ 00b5b776:0xc73e6
$func2573 @ 00b5b776:0xc9a78
$mono_wasm_invoke_jsexport @ 00b5b776:0xae69
Module._mono_wasm_invoke_jsexport @ dotnet.native.rtblh4npr3.js:8
hn @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
complete_task_wrapper @ dotnet.runtime.d1pzlaz2ez.js:3
resolve @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Promise.then
mo @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func287 @ 00b5b776:0x1f1c8
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func280 @ 00b5b776:0x1ec88
$func316 @ 00b5b776:0x1fdef
$func188 @ 00b5b776:0xc794
$mono_background_exec @ 00b5b776:0x47ff8
Yo @ dotnet.runtime.d1pzlaz2ez.js:3
callUserCallback @ dotnet.native.rtblh4npr3.js:8
(anonymous) @ dotnet.native.rtblh4npr3.js:8
setTimeout
safeSetTimeout @ dotnet.native.rtblh4npr3.js:8
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func789 @ 00b5b776:0x47f96
$func287 @ 00b5b776:0x1f1a4
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func246 @ 00b5b776:0x1d429
$func3221 @ 00b5b776:0xf108a
$func2544 @ 00b5b776:0xc6bee
$func2549 @ 00b5b776:0xc73e6
$func2573 @ 00b5b776:0xc9a78
$mono_wasm_invoke_jsexport @ 00b5b776:0xae69
Module._mono_wasm_invoke_jsexport @ dotnet.native.rtblh4npr3.js:8
hn @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
complete_task_wrapper @ dotnet.runtime.d1pzlaz2ez.js:3
resolve @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Promise.then
mo @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func287 @ 00b5b776:0x1f1c8
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func246 @ 00b5b776:0x1d429
$func3221 @ 00b5b776:0xf108a
$func2544 @ 00b5b776:0xc6bee
$func2549 @ 00b5b776:0xc73e6
$func2573 @ 00b5b776:0xc9a78
$mono_wasm_invoke_jsexport @ 00b5b776:0xae69
Module._mono_wasm_invoke_jsexport @ dotnet.native.rtblh4npr3.js:8
gn @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
endInvokeJSFromDotNet @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.then
beginInvokeJSFromDotNet @ blazor.webassembly.js:1
Zt @ blazor.webassembly.js:1
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
Fc @ dotnet.runtime.d1pzlaz2ez.js:3
$func287 @ 00b5b776:0x1f1c8
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func246 @ 00b5b776:0x1d429
$func3221 @ 00b5b776:0xf108a
$func2544 @ 00b5b776:0xc6bee
$func2543 @ 00b5b776:0xc6b7e
$func1902 @ 00b5b776:0xa10e6
$func287 @ 00b5b776:0x1f24c
$func218 @ 00b5b776:0x1c8ae
$func209 @ 00b5b776:0xea19
$func246 @ 00b5b776:0x1d429
$func3221 @ 00b5b776:0xf108a
$func2544 @ 00b5b776:0xc6bee
$func2549 @ 00b5b776:0xc73e6
$func2573 @ 00b5b776:0xc9a78
$mono_wasm_invoke_jsexport @ 00b5b776:0xae69
Module._mono_wasm_invoke_jsexport @ dotnet.native.rtblh4npr3.js:8
gn @ dotnet.runtime.d1pzlaz2ez.js:3
(anonymous) @ dotnet.runtime.d1pzlaz2ez.js:3
beginInvokeDotNetFromJS @ blazor.webassembly.js:1
invokeDotNetMethodAsync @ blazor.webassembly.js:1
invokeDotNetStaticMethodAsync @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Pe @ blazor.webassembly.js:1
Fe @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
onGlobalEvent @ blazor.webassembly.js:1

This is my docker compose:

version: '3'

services:
  develancacheui_backend:
    image: devedse/develancacheui_backend:latest
    restart: unless-stopped
    ports:
      - '7301:80'
    environment:
      - Feature_DirectSteamIntegration=true
      - Feature_SkipLinesBasedOnBytesRead=true
      - TZ=America/Chicago
      - LANG=en_US.UTF-8
    volumes:
      - "/home/administrator/lancache-ui/backend:/var/develancacheuidata"
      - "/home/administrator/lancache/lancache/logs:/var/develancacheui/lancachelogs:ro"
    dns:
      - 192.168.7.22
  develancacheui_frontend:
    image: devedse/develancacheui_frontend:latest
    restart: unless-stopped
    ports:
      - '7302:80'
    environment:
      - BACKENDURL=reverseproxyapi
      - AllowedHosts=*

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions