`Uncaught Error: window.__FLUXER_BOOTSTRAP__ is missing — app must be served by fluxer_app_proxy` on selfhosted community

(#589) Bug Closed: Fixed self-hosting

Summary

image
[22:42:54] [Gateway] [Warn] WebSocket closed [1001] 8cbe6afe043ceca0.js:14:198350
[22:42:54] [Gateway] [Info] Gateway state CONNECTED -> RECONNECTING 8cbe6afe043ceca0.js:14:198350
[22:42:54] [Gateway] [Info] Scheduling reconnect in 1000ms 8cbe6afe043ceca0.js:14:198350
GET
https://fluxer.group/channels/1516421313219002368/{{STATIC_CDN_ENDPOINT}}/fonts/ibm-plex.css?v=3
NS_ERROR_CORRUPTED_CONTENT

GET
https://fluxer.group/channels/1516421313219002368/{{STATIC_CDN_ENDPOINT}}/web/apple-touch-icon.png
[HTTP/3 404  1973ms]

GET
https://fluxer.group/channels/1516421313219002368/{{STATIC_CDN_ENDPOINT}}/web/favicon-32x32.png
[HTTP/3 404  1622ms]

Uncaught Error: window.__FLUXER_BOOTSTRAP__ is missing — app must be served by fluxer_app_proxy
    default RuntimeConfig.ts:139
    <anonymous> RuntimeConfig.ts:142
    57837 RuntimeConfig.ts:700
    h 8cbe6afe043ceca0.js:433
    87122 8cbe6afe043ceca0.js:6
    h 8cbe6afe043ceca0.js:433
    3607 8cbe6afe043ceca0.js:1
    h 8cbe6afe043ceca0.js:433
    5074 8cbe6afe043ceca0.js:433
    h 8cbe6afe043ceca0.js:433
    g 8cbe6afe043ceca0.js:433
    O on_chunk_loaded:29
    <anonymous> 8cbe6afe043ceca0.js:433
    <anonymous> 8cbe6afe043ceca0.js:433
8cbe6afe043ceca0.js:2:116522

Steps to reproduce

this happens for me pretty much every time.
  1. visit channel https://fluxer.group/channels/xxxxxxxxxxxxxxx/Xxxxxxxxxxxxxxxx
  2. reload the page
  3. see a blank screen
  4. check console with errors
  1. The pull request fluxer#1680 mentions this post Merged
  2. The pull request fluxer#1680 was merged Merged

2 comments

Sign in with Fluxer to comment and vote.
Comment by Tarek
TarekMod 1 vote originally by @Taarek on GitHub
This seems to be caused by running the instance under a proxied domain by Cloudflare and using the "Rocket Loader" feature, which basically is for "Speeding up" websites by delaying any JS and load the UI first, this is causing a side effect for Fluxer, it's wiping all child objects under Window, including window.__FLUXER_BOOTSTRAP__ in this case. To fix this, go to https://dash.cloudflare.com/ -> Speed -> Settings and disable this; image
Comment by @mcd1992
RexSystem 1 vote originally by @mcd1992 on GitHub
I'm getting this even when not behind cloudflare. Doing ctrl + shift + r to clear cache reload seems to work around it.