모바일(에뮬레이터)에서 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를 활성화하면 완전히 작동을 멈춥니다.
개발자 콘솔 로그:
GET http://192.168.0.6:3000/assets/locales/en.js?1616414336.2489636 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
GET http://192.168.0.6:3000/assets/pretty-text-bundle.js?1616414336.2663965 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
GET http://192.168.0.6:3000/assets/vendor.js?1616414336.2663667 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
GET http://192.168.0.6:3000/assets/ember_jquery.js?1616414336.2662969 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
GET http://192.168.0.6:3000/assets/plugins/discourse-local-dates.js?1616414336.269725 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
GET http://192.168.0.6:3000/assets/plugins/discourse-presence.js?1616414336.269779 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
GET http://192.168.0.6:3000/assets/plugins/poll.js?1616414336.2698483 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
GET http://192.168.0.6:3000/assets/application.js?1616414336.2664297 net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
javascripts/lib/discourse-markdown/details:1 Uncaught ReferenceError: define is not defined
at eval (javascripts/lib/discourse-markdown/details:1)
at discourse-details.js?1616414336.2696738:1
(anonymous) @ javascripts/lib/discourse-markdown/details:1
(anonymous) @ discourse-details.js?1616414336.2696738:1
javascripts/initializers/new-user-narrative:1 Uncaught ReferenceError: define is not defined
at eval (javascripts/initializers/new-user-narrative:1)
at discourse-narrative-bot.js?1616414336.2697492:1
(anonymous) @ javascripts/initializers/new-user-narrative:1
(anonymous) @ discourse-narrative-bot.js?1616414336.2697492:1
javascripts/initializers/alert:1 Uncaught ReferenceError: define is not defined
at eval (javascripts/initializers/alert:1)
at discourse-racoon.js?1616414336.2698188:1
(anonymous) @ javascripts/initializers/alert:1
(anonymous) @ discourse-racoon.js?1616414336.2698188:1
javascripts/lazyYT:174 Uncaught ReferenceError: jQuery is not defined
at eval (javascripts/lazyYT:174)
at lazy-yt.js?1616414336.2698355:1
(anonymous) @ javascripts/lazyYT:174
(anonymous) @ lazy-yt.js?1616414336.2698355:1
start-discourse:3 Uncaught ReferenceError: Discourse is not defined
at eval (start-discourse:3)
at eval (start-discourse:4)
at start-discourse.js?1616414336.5657332:1
(anonymous) @ start-discourse:3
(anonymous) @ start-discourse:4
(anonymous) @ start-discourse.js?1616414336.5657332:1
localhost:3000/uploads/default/optimized/1X/_129430568242d1b7f853bb13ebea28b3f6af4e7_2_180x180.png:1 GET http://localhost:3000/uploads/default/optimized/1X/_129430568242d1b7f853bb13ebea28b3f6af4e7_2_180x180.png net::ERR_CONNECTION_REFUSED
localhost:3000/uploads/default/optimized/1X/_129430568242d1b7f853bb13ebea28b3f6af4e7_2_32x32.png:1 GET http://localhost:3000/uploads/default/optimized/1X/_129430568242d1b7f853bb13ebea28b3f6af4e7_2_32x32.png net::ERR_CONNECTION_REFUSED