Skip to content

TypeError: 'coroutine' object is not iterable #33

@PhanThanhTrung

Description

@PhanThanhTrung

When I ran QuartServer. I got an exception.

Traceback (most recent call last):                                                                                                      
  File "/mnt/hdd/spaces/miles/.local/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 396, in run_asgi       
    result = await app(self.scope, self.receive, self.send)                                                                             
  File "/mnt/hdd/spaces/miles/.local/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__             
    return await self.app(scope, receive, send)                                                                                         
  File "/mnt/hdd/spaces/miles/.local/lib/python3.7/site-packages/quart/app.py", line 2117, in __call__                                  
    await self.asgi_app(scope, receive, send)                                                                                           
  File "/mnt/hdd/spaces/miles/.local/lib/python3.7/site-packages/quart/app.py", line 2140, in asgi_app                                  
    await asgi_handler(receive, send)                                                                                                   
  File "/mnt/hdd/spaces/miles/.local/lib/python3.7/site-packages/quart/asgi.py", line 33, in __call__                                   
    _raise_exceptions(done)                                                                                                             
  File "/mnt/hdd/spaces/miles/.local/lib/python3.7/site-packages/quart/asgi.py", line 256, in _raise_exceptions                         
    raise task.exception()                                                                                                              
  File "/mnt/hdd/spaces/miles/.local/lib/python3.7/site-packages/quart/asgi.py", line 84, in handle_request                             
    await asyncio.wait_for(self._send_response(send, response), timeout=timeout)                                                        
  File "/usr/lib/python3.7/asyncio/tasks.py", line 442, in wait_for                                                                     
    return fut.result()                                                                                                                 
  File "/mnt/hdd/spaces/miles/.local/lib/python3.7/site-packages/quart/asgi.py", line 98, in _send_response                             
    async for data in body:                                                                                                             
  File "/mnt/hdd/spaces/miles/.local/lib/python3.7/site-packages/quart/wrappers/response.py", line 129, in _aiter                       
    for data in iterable:  # type: ignore                                                                                               
TypeError: 'coroutine' object is not iterable

My environment:

MlChain 0.1.9
Flask 1.1.2
Quart 0.14.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions