livereload in docker container not working
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
Start by reproducing the documented livereload --host 0.0.0.0 -p 8000 docs/_build/html/ command inside Docker with the reported Tornado versions. Review the Tornado traceback and websocket headers, then compare behavior across Tornado versions. Done means the container serves the Sphinx page and live reload without the HTTPOutputError.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hello,
I have a livereload running in a docker container hosting some sphinx documentation that I built. I am trying to use it to to navigate the docs while I edit them outside of the container. I attempt to start livereload like so
livereload --host 0.0.0.0 -p 8000 docs/_build/html/
From inside the container, and that works fine. However, when I surf to the page to view the docs, I get the following error.
[I 180703 22:16:15 server:292] Serving on http://0.0.0.0:8000
[I 180703 22:16:15 handlers:59] Start watching changes
[I 180703 22:16:15 handlers:61] Start detecting changes
[E 180703 22:16:17 web:1621] Uncaught exception GET /userguide/about-as3.html (172.17.0.1)
HTTPServerRequest(protocol='http', host='localhost:8000', method='GET', uri='/userguide/about-as3.html', version='HTTP/1.1', remote_ip='172.17.0.1')
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1543, in _execute
result = yield result
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1099, in run
value = future.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 260, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 315, in wrapper
yielded = next(result)
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 2472, in get
yield self.flush()
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 973, in flush
start_line, self._headers, chunk, callback=callback)
File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py", line 403, in write_headers
data += self._format_chunk(chunk)
File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py", line 415, in _format_chunk
"Tried to write more data than Content-Length")
HTTPOutputError: Tried to write more data than Content-Length
[E 180703 22:16:17 web:1042] Cannot send error response after headers written
It appears the -148 bytes are being detected by tornado...for reasons unknown...but the headers are the following
0.0s write_headers: k='Connection', v='Upgrade'
0.0s write_headers: k='Date', v='Tue, 03 Jul 2018 21:53:40 GMT'
0.0s write_headers: k='Sec-Websocket-Accept', v='rhbSxvq2M8ltJL2dQgWpQ+zNv2o='
0.0s write_headers: k='Server', v='TornadoServer/5.0.2'
0.0s write_headers: k='Upgrade', v='websocket'
If I downgrade tornado to any version < 4, the error goes away.
I'm scratching my head as to what the problem might be though, because I see release notes for livereload that say its fixing stuff in tornado 4.5+
Any ideas?
Thanks!
- Lenguaje dominante
- Python
- Estrellas
- 1.1k
- Forks
- 148
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lepture/python-livereload
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
lepture/python-livereload#159 · 3 reacciones ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
lepture/python-livereload#288 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
lepture/python-livereload#283 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
lepture/python-livereload#282 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
lepture/python-livereload#279 ·
Todos los issues de lepture/python-livereload
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NousResearch/hermes-agent#136483 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
[BUG] LazyStackedTensorDictStore zeroes the last byte of a new key set on the last elementPosiblemente ocupada @peterdsharpe la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pytorch/tensordict#2307 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
GrokModel.generate/a_generate pass an OpenAI-style list-of-dicts to xai_sdk.chat.user(), so every call crashes with a protobuf TypeError before any network I/OPosiblemente ocupada @Christian-Sidak la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
confident-ai/deepeval#3436 · 1 comentario ·
Los mantenedores suelen responder en 1 día