plone / guillotina

Python AsyncIO data API to manage billions of resources
https://guillotina.readthedocs.io/en/latest/
Other
187 stars 51 forks source link

G6 not converting Response to ASGIResponse #866

Closed masipcat closed 4 years ago

masipcat commented 4 years ago
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/uvicorn/protocols/http/h11_impl.py", line 385, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "/usr/local/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
    return await self.app(scope, receive, send)
  File "/usr/local/lib/python3.7/site-packages/uvicorn/middleware/asgi2.py", line 7, in __call__
    await instance(receive, send)
  File "/usr/local/lib/python3.7/site-packages/guillotina/asgi.py", line 42, in run_asgi2
    return await self.real_asgi_app(scope, receive, send)
  File "/usr/local/lib/python3.7/site-packages/guillotina/asgi.py", line 50, in real_asgi_app
    return await self.handler(scope, receive, send)
  File "/usr/local/lib/python3.7/site-packages/guillotina/asgi.py", line 113, in handler
    if not resp.prepared:
AttributeError: 'HTTPUnauthorized' object has no attribute 'prepared'