Skip to content

Instantly share code, notes, and snippets.

@thadk
Created October 29, 2020 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thadk/28ac32af0e88747ce9056c90b0b19d34 to your computer and use it in GitHub Desktop.
Save thadk/28ac32af0e88747ce9056c90b0b19d34 to your computer and use it in GitHub Desktop.
INFO: 127.0.0.1:54507 - "GET /test2/Document/-/blob/2/object.blob HTTP/1.1" 200 OK
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/datasette/app.py", line 1021, in route_path
await response.asgi_send(send)
File "/Library/Python/3.8/site-packages/datasette/utils/asgi.py", line 328, in asgi_send
body = body.encode("utf-8")
AttributeError: 'NoneType' object has no attribute 'encode'
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/datasette/app.py", line 1021, in route_path
await response.asgi_send(send)
File "/Library/Python/3.8/site-packages/datasette/utils/asgi.py", line 328, in asgi_send
body = body.encode("utf-8")
AttributeError: 'NoneType' object has no attribute 'encode'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 389, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/Library/Python/3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
return await self.app(scope, receive, send)
File "/Library/Python/3.8/site-packages/datasette/utils/asgi.py", line 150, in __call__
await self.app(scope, receive, send)
File "/Library/Python/3.8/site-packages/datasette/tracer.py", line 75, in __call__
await self.app(scope, receive, send)
File "/Library/Python/3.8/site-packages/asgi_csrf.py", line 102, in app_wrapped_with_csrf
await app(scope, receive, wrapped_send)
File "/Library/Python/3.8/site-packages/datasette/app.py", line 979, in __call__
return await self.route_path(scope, receive, send, path)
File "/Library/Python/3.8/site-packages/datasette/app.py", line 1026, in route_path
return await self.handle_500(request, send, exception)
File "/Library/Python/3.8/site-packages/datasette/app.py", line 1160, in handle_500
await asgi_send_html(
File "/Library/Python/3.8/site-packages/datasette/utils/asgi.py", line 208, in asgi_send_html
await asgi_send(
File "/Library/Python/3.8/site-packages/datasette/utils/asgi.py", line 228, in asgi_send
await asgi_start(send, status, headers, content_type)
File "/Library/Python/3.8/site-packages/datasette/utils/asgi.py", line 237, in asgi_start
await send(
File "/Library/Python/3.8/site-packages/asgi_csrf.py", line 98, in wrapped_send
await send(event)
File "/Library/Python/3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 473, in send
raise RuntimeError(msg % message_type)
RuntimeError: Expected ASGI message 'http.response.body', but got 'http.response.start'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment