Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError encountered #13

Open
jiandai opened this issue Apr 8, 2017 · 1 comment
Open

TypeError encountered #13

jiandai opened this issue Apr 8, 2017 · 1 comment

Comments

@jiandai
Copy link

jiandai commented Apr 8, 2017

Here is the error:

127.0.0.1 - - [2017-04-08 00:08:57] "POST /publish/epoch/end/ HTTP/1.1" 500 161 0.000000
Traceback (most recent call last):
  File "C:\Anaconda3\lib\site-packages\gevent\pywsgi.py", line 884, in handle_one_response
    self.run_application()
  File "C:\Anaconda3\lib\site-packages\gevent\pywsgi.py", line 870, in run_application
    self.result = self.application(self.environ, self.start_response)
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 2000, in __call__
    return self.wsgi_app(environ, start_response)
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1991, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1567, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Anaconda3\lib\site-packages\flask\_compat.py", line 33, in reraise
    raise value
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1988, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1642, in full_dispatch_request
    response = self.make_response(rv)
  File "C:\Anaconda3\lib\site-packages\flask\app.py", line 1746, in make_response
    rv = self.response_class.force_type(rv, request.environ)
  File "C:\Anaconda3\lib\site-packages\werkzeug\wrappers.py", line 847, in force_type
    response = BaseResponse(*_run_wsgi_app(response, environ))
  File "C:\Anaconda3\lib\site-packages\werkzeug\test.py", line 871, in run_wsgi_app
    app_rv = app(environ, start_response)
TypeError: 'dict' object is not callable
{'CONTENT_LENGTH': '164',
 'CONTENT_TYPE': 'application/json',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'application/json',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_HOST': 'localhost:9000',
 'HTTP_USER_AGENT': 'python-requests/2.12.4',
 'PATH_INFO': '/publish/epoch/end/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '127.0.0.1',
 'REMOTE_PORT': '63842',
 'REQUEST_METHOD': 'POST',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'GNELTSG5507WTZ.nala.roche.com',
 'SERVER_PORT': '9000',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'gevent/1.1 Python/3.5',
 'werkzeug.request': <Request 'http://localhost:9000/publish/epoch/end/' [POST]>,
 'wsgi.errors': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp437'>,
 'wsgi.input': <gevent.pywsgi.Input object at 0x0000000004A8DA08>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)} failed with TypeError

Any advise?

@giahung24
Copy link

You have the answer here #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants