Je rencontre fréquemment ces erreurs dans mon environnement de développement :
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
Ou bien :
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)
Je n’ai aucune idée de la raison. La page ne se charge pas non plus la moitié du temps. Il faut environ 2 à 3 rechargements et un peu de chance pour qu’elle se charge. C’est très frustrant, surtout lorsqu’on utilise le gem discourse_theme, car les mises à jour effectuent un rechargement de l’onglet, ce qui peut provoquer un chargement infini.
Cependant, lorsque la page se charge, ces erreurs n’apparaissent pas initialement, mais elles apparaissent après le journal habituel :
Cela semble également lié :
Comme dans le sujet lié, mon environnement est sous WSL2 (Ubuntu) en utilisant Dev Containers.
