Qualcuno ha riscontrato l’errore ERR_CONTENT_LENGTH_MISMATCH tentando di connettersi a Discourse da mobile (emulatore)?
Ho installato WSL2 con Ubuntu e il forum Discourse sulla mia macchina Windows 10. Tutto funziona correttamente quando provo ad accedere a Discourse tramite il browser di Windows, ma quando provo ad accedervi usando il mio emulatore mobile ricevo molti errori ERR_CONTENT_LENGTH_MISMATCH e il forum non si carica (pagina vuota).
Mi connetto al mio Discourse tramite il mio indirizzo IP e ho configurato l’inoltro delle porte su Windows verso WSL2 Ubuntu. Quando apri http://192.168.0.6:3000 dal mio browser mobile senza abilitare JavaScript, riesco a vedere il forum (anche se non funziona molto bene senza JavaScript), ma quando attivo JavaScript smette di funzionare completamente.
Log dalla console degli sviluppatori:
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