Skip to content
This repository was archived by the owner on Feb 25, 2022. It is now read-only.
This repository was archived by the owner on Feb 25, 2022. It is now read-only.

TypeError: 'coroutine' object is not iterable #401

@zopyx

Description

@zopyx

The generated asyncio app skeleton raises the following error:

(app.backend) ajung@dev ~/src/app.backend (master) $ bin/gunicorn app:app --bind 0.0.0.0
[2018-03-14 13:37:41 +0100] [18183] [INFO] Starting gunicorn 19.7.1
[2018-03-14 13:37:41 +0100] [18183] [INFO] Listening at: http://0.0.0.0:8000 (18183)
[2018-03-14 13:37:41 +0100] [18183] [INFO] Using worker: sync
[2018-03-14 13:37:41 +0100] [18186] [INFO] Booting worker with pid: 18186
[2018-03-14 13:37:45 +0100] [18186] [ERROR] Error handling request /
Traceback (most recent call last):
  File "/home/ajung/src/app.backend/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 135, in handle
    self.handle_request(listener, req, client, addr)
  File "/home/ajung/src/app.backend/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 181, in handle_request
    for item in respiter:
TypeError: 'coroutine' object is not iterable
[2018-03-14 13:37:46 +0100] [18186] [ERROR] Error handling request /favicon.ico
Traceback (most recent call last):
  File "/home/ajung/src/app.backend/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 135, in handle
    self.handle_request(listener, req, client, addr)
  File "/home/ajung/src/app.backend/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 181, in handle_request
    for item in respiter:
TypeError: 'coroutine' object is not iterable
[2018-03-14 13:37:47 +0100] [18186] [ERROR] Error handling request /docs
Traceback (most recent call last):
  File "/home/ajung/src/app.backend/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 135, in handle
    self.handle_request(listener, req, client, addr)
  File "/home/ajung/src/app.backend/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 181, in handle_request
    for item in respiter:
TypeError: 'coroutine' object is not iterable
[2018-03-14 13:37:48 +0100] [18186] [ERROR] Error handling request /favicon.ico
Traceback (most recent call last):
  File "/home/ajung/src/app.backend/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 135, in handle
    self.handle_request(listener, req, client, addr)
  File "/home/ajung/src/app.backend/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 181, in handle_request
    for item in respiter:
TypeError: 'coroutine' object is not iterable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions