2016-09-02 64 views
0

我創建了一個Eve API,它是使用受SSL保護的流量從Flask應用程序調用的。 當Eve嘗試處理傳入的請求時,應用程序本身應該正常工作但發生錯誤。從Flask應用程序調用Python Eve導致奇怪的錯誤

Eve==0.6.4 
Flask==0.10.1 



Traceback (most recent call last): 
    File "/home/user/.virtualenvs/eve-oauth2/lib/python2.7/site-packages/eve/flaskapp.py", line 968, in __call__ 
    return super(Eve, self).__call__(environ, start_response) 
    File "/home/user/.virtualenvs/eve-oauth2/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__ 
    return self.wsgi_app(environ, start_response) 
    File "/home/user/.virtualenvs/eve-oauth2/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app 
    response = self.make_response(self.handle_exception(e)) 
    File "/home/user/.virtualenvs/eve-oauth2/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception 
    reraise(exc_type, exc_value, tb) 
    File "/home/user/.virtualenvs/eve-oauth2/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app 
    response = self.full_dispatch_request() 
    File "/home/user/.virtualenvs/eve-oauth2/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request 
    rv = self.handle_user_exception(e) 
    File "/home/user/.virtualenvs/eve-oauth2/lib/python2.7/site-packages/flask/app.py", line 1539, in handle_user_exception 
    return self.handle_http_exception(e) 
    File "/home/user/.virtualenvs/eve-oauth2/lib/python2.7/site-packages/flask/app.py", line 1495, in handle_http_exception 
    handler = self._find_error_handler(e) 
    File "/home/user/.virtualenvs/eve-oauth2/lib/python2.7/site-packages/flask/app.py", line 1476, in _find_error_handler 
    .get(code)) 
    File "/home/user/.virtualenvs/eve-oauth2/lib/python2.7/site-packages/flask/app.py", line 1465, in find_handler 
    handler = handler_map.get(cls) 

回答

0

至少在這種情況下,它是在庫之間不兼容,不知道爲什麼。 通過pip升級Eve和Flask(pip install --upgrade flaskpip install --upgrade eve),它再次運行。

相關問題