Calling Python Eve from an Flask application leads to weird errors

matt3o

I've created an Eve API which is being called from an Flask Application using SSL protected traffic. The application itself should be working nevertheless an error occurs when Eve tries to handle the incoming requests.

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)
matt3o

At least in this case it was in incompatibility between the libraries, no idea why. Upgrade Eve and Flask via pip (pip install --upgrade flask and pip install --upgrade eve) and it works again.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

python-flask handling application errors

From Dev

Python BeautifulSoup "weird" errors

From Dev

Storing and calling functions in React Context leads to weird behavior

From Dev

calling javascript procedure with python-eve

From Dev

pymongo import errors in python3 flask application

From Dev

Weird problem with calling functions in Python

From Dev

python-eve oplog in not working in my application

From Dev

Various errors in Python Flask

From Dev

Calling/Invoking a Javascript function from python a flask function within html

From Dev

Creating pandas DataFrame from numpy array leads to strange errors

From Dev

Querying my Eve API from my Flask code

From Dev

Python eve validation with value from another property

From Dev

Calling method from Flask Blueprint

From Dev

flask calling a function from another

From Dev

calling another application from bash in python multiprocessing is very slow

From Dev

Python Flask weird logging behavior (kubernetes)

From Dev

Errors when calling powershell commands from cmd

From Java

Calling a Servlet from a Java application

From Dev

CSS isn't linking from my Python/Flask application

From Dev

Python Flask server getting 'code 400' errors (POST request sent from Telegram-webhook)

From Dev

calling variable from flask to javascript and use for loop

From Dev

Calling python from matlab

From Java

Calling Go from Python

From Java

Calling Java from Python

From Dev

calling python from java

From Dev

Calling a .ps1 script in Linux Powershell from a Flask route in Python

From Dev

Getting weird errors for python script on lines that don't exist

From Dev

Connecting to access controlled MongoDB replicaSet from Python Eve

From Dev

Python Eve Custom Endpoints, but with data pulled from database

Related Related

  1. 1

    python-flask handling application errors

  2. 2

    Python BeautifulSoup "weird" errors

  3. 3

    Storing and calling functions in React Context leads to weird behavior

  4. 4

    calling javascript procedure with python-eve

  5. 5

    pymongo import errors in python3 flask application

  6. 6

    Weird problem with calling functions in Python

  7. 7

    python-eve oplog in not working in my application

  8. 8

    Various errors in Python Flask

  9. 9

    Calling/Invoking a Javascript function from python a flask function within html

  10. 10

    Creating pandas DataFrame from numpy array leads to strange errors

  11. 11

    Querying my Eve API from my Flask code

  12. 12

    Python eve validation with value from another property

  13. 13

    Calling method from Flask Blueprint

  14. 14

    flask calling a function from another

  15. 15

    calling another application from bash in python multiprocessing is very slow

  16. 16

    Python Flask weird logging behavior (kubernetes)

  17. 17

    Errors when calling powershell commands from cmd

  18. 18

    Calling a Servlet from a Java application

  19. 19

    CSS isn't linking from my Python/Flask application

  20. 20

    Python Flask server getting 'code 400' errors (POST request sent from Telegram-webhook)

  21. 21

    calling variable from flask to javascript and use for loop

  22. 22

    Calling python from matlab

  23. 23

    Calling Go from Python

  24. 24

    Calling Java from Python

  25. 25

    calling python from java

  26. 26

    Calling a .ps1 script in Linux Powershell from a Flask route in Python

  27. 27

    Getting weird errors for python script on lines that don't exist

  28. 28

    Connecting to access controlled MongoDB replicaSet from Python Eve

  29. 29

    Python Eve Custom Endpoints, but with data pulled from database

HotTag

Archive