# 개발 환경에서 브라우저 콘솔에 ERR\_CONTENT\_LENGTH\_MISMATCH 오류가 자주 발생

**URL:** <https://meta.discourse.org/t/frequent-err-content-length-mismatch-errors-in-browser-console-in-dev-environment/413624>\
**Category:** Bug\
**Tags:** dev-install\
**Created:** [9월 30, 2026, 4:36오전 UTC](https://meta.discourse.org/t/frequent-err-content-length-mismatch-errors-in-browser-console-in-dev-environment/413624 "2026-09-30T04:36:50Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Post date:** [9월 30, 2026, 4:36오전 UTC](https://meta.discourse.org/t/frequent-err-content-length-mismatch-errors-in-browser-console-in-dev-environment/413624/1 "2026-09-30T04:36:50Z")

</div>

개발 환경에서 자주 이러한 오류가 발생합니다:

```plaintext
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

```

또는:

```plaintext
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)

```

왜 이런 현상이 발생하는지 알 수 없습니다. 페이지가 절반의 확률로 로드되지도 않습니다. 로딩에 성공하려면 2~3번의 재로드와 운이 필요합니다. `discourse_theme` gem과 함께 사용할 때 특히 짜증나는데, 업데이트 시 탭이 재로드되어 영원히 로딩 상태에 머물러 있기 때문입니다.

페이지가 _로딩되는_ 경우에도, 처음에는 이러한 오류가 표시되지 않지만, 일반적인 로그 이후에는 나타납니다:

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/2/3/a231543e3254bc9e730556aaf05a5571122490d1.png)

이것과도 관련이 있는 것 같습니다:

> [@모바일에서 ERR\_CONTENT\_LENGTH\_MISMATCH 오류 발생](https://meta.discourse.org/t/err-content-length-mismatch-on-mobile/184024):
>
> 모바일(에뮬레이터)에서 discourse에 연결하려고 할 때 ERR\_CONTENT\_LENGTH\_MISMATCH 오류를 겪은 분이 계신가요? Windows 10 머신에 WSL2와 Ubuntu, 그리고 discourse 포럼을 설치했습니다. Windows 브라우저 등을 통해 discourse에 접근하면 모든 것이 정상적으로 작동하지만, 모바일 에뮬레이터로 접근하려고 하면 수많은 ERR\_CONTENT\_LENGTH\_MISMATCH 오류가 발생하고 포럼이 로드되지 않습니다(빈 화면). IP 주소를 통해 discourse에 접속하고 있으며, Windows에서 WSL2 Ubuntu로 포트 포워딩을 설정해 두었습니다. 모바일 브라우저에서 JavaScript를 비활성화한 상태로 http://192.168.0.6:3000을 실행하면 포럼이 보이지만(JavaScript 없이 작동하는 방식이라 매우 잘 동작하지는 않습니다), JavaScript를 활성화하면 완전히 작동을 멈춥니다. 개발자 콘솔 로그: …

링크된 주제와 마찬가지로, 제 환경은 Dev Containers를 사용하는 WSL2 (Ubuntu)입니다.

---

_[View the full topic](https://meta.discourse.org/t/frequent-err-content-length-mismatch-errors-in-browser-console-in-dev-environment/413624)._
