Did anyone have ERR_CONTENT_LENGTH_MISMATCH when trying to connect to discourse from mobile (emulator)?
I installed WSL2 with Ubuntu and discourse forum on my windows 10 machine. Everything works fine when I try to access discourse via windows browser etc. but when I try to access it using my mobile emulator I get many ERR_CONTENT_LENGTH_MISMATCH errors and forum isn’t loading (blank page)
I connect to my discourse by my ip address and I have port forwarding on ma windows to WSL2 ubuntu. When I run http://192.168.0.6:3000 from my mobile browser without javascript enabled I can see forum (but now working very well without javascript) but when I enable javascript it stops working entirely.
Logs from developer console:
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