linkedin / linkedin/oncall

TypeError: get_wsgi_app() takes no arguments (2 given)

Open
#208 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.3k
Forks
245
PR merge metrics
No merged PRs in 30d

Description

Tried running gunicorn command gunicorn -b 0.0.0.0:8080 app:get_wsgi_app
Got this error.
noc@linux-test:/opt/oncall/build/lib.linux-x86_64-2.7/oncall$ gunicorn -b 0.0.0.0:8080 app:get_wsgi_app [2018-08-29 21:52:30 +0000] [2064] [INFO] Starting gunicorn 19.7.1 [2018-08-29 21:52:30 +0000] [2064] [INFO] Listening at: http://0.0.0.0:8080 (2064) [2018-08-29 21:52:30 +0000] [2064] [INFO] Using worker: sync [2018-08-29 21:52:30 +0000] [2068] [INFO] Booting worker with pid: 2068 [2018-08-29 21:52:54 +0000] [2068] [ERROR] Error handling request / Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/workers/sync.py", line 135, in handle self.handle_request(listener, req, client, addr) File "/usr/local/lib/python2.7/dist-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/workers/sync.py", line 176, in handle_request respiter = self.wsgi(environ, resp.start_response) TypeError: get_wsgi_app() takes no arguments (2 given) [2018-08-29 21:52:54 +0000] [2068] [ERROR] Error handling request /favicon.ico Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/workers/sync.py", line 135, in handle self.handle_request(listener, req, client, addr) File "/usr/local/lib/python2.7/dist-packages/gunicorn-19.7.1-py2.7.egg/gunicorn/workers/sync.py", line 176, in handle_request respiter = self.wsgi(environ, resp.start_response)
Is there any documentation on how to roll out this tool in production environment?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported Gunicorn entry point, app:get_wsgi_app, and the shown command and traceback. Check the project's existing deployment documentation and determine what production rollout steps and WSGI invocation should be documented; done means a newcomer can follow the documented setup without triggering the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.