In meiner Entwicklungsumgebung treten häufig diese Fehler auf:
discourse-reactions_main.Q5vqJe-h8ro1ilp.digested.js:1 Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
chunk-jiiahumh.digested.js:1 Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
chunk-mkia0op3.digested.js:1 Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
Oder:
GET http://localhost:3000/assets/js/plugins/chat_main.DXNPoW-htkfwtbk.digested.js net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
(index):90 GET http://localhost:3000/assets/js/plugins/discourse-ai_admin.DncC-f-mtqe97w7.digested.js net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
(index):541 GET http://localhost:3000/stylesheets/admin_c962958770e1245d5bb1026e1e40f1ef3ef611f6.css?__ws=localhost net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)
(index):545 GET http://localhost:3000/stylesheets/chat_c962958770e1245d5bb1026e1e40f1ef3ef611f6.css?__ws=localhost net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)
color_definitions_dark_13_-1_2507ff89a2ca761acdb701533aca3014e900a7a0.css?__ws=localhost:1 GET http://localhost:3000/fonts/InterVariable.woff2?v=0.0.19 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
(index):126 GET http://localhost:3000/assets/js/plugins/discourse-reactions_main.Q5vqJe-h8ro1ilp.digested.js net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
Ich habe keine Ahnung, warum das passiert. Die Seite lädt auch nur in der Hälfte der Fälle. Es dauert etwa 2–3 Neuladungen und ein wenig Glück, bis sie endlich lädt. Zusammen mit dem discourse_theme-Gem ist das besonders frustrierend, da Updates einen Neuladeprozess des Tabs auslösen, was zu einem endlosen Ladevorgang führen kann.
Wenn die Seite doch lädt, erscheinen diese Fehler zunächst nicht, treten aber nach dem üblichen Log auf:
Dies scheint ebenfalls damit zusammenzuhängen:
Wie im verlinkten Thema läuft meine Umgebung auf WSL2 (Ubuntu) mit Dev Containers.
