-
-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unauthorized Exception not working with Werkzeug >= 15.0 #1245
Comments
Hi Stefano, Thanks for reporting it. We are aware of Werkzeug breaking backward compatibility, see #1238 which is a work in progress. In Eve 0.8.2 (not released yet) we pinned to 0.14.1. As suggested in the SO question, for the time being your best bet falling back to v0.14. |
Hi Nicola, Thanks for your answer. Yes, I solved my issue changing the Project requirements. |
Alright, I took the plunge and upgraded Eve to support werkzeug 0.15.1+. This is a breaking change: v0.8.2 will require you to upgrade to werkzeug v0.15.1. |
is it solved ? how to make it solved ? my wekzeug version is already v.0.15.2 thanks |
@masrayie you need Eve v0.9+ |
how to upgrade ? because i still new in eve, thank you |
|
thanks ! |
I'm using the demo code of Python Eve, nothing changed except for MongoDB settings. I'm trying
run-auth.py
in order to test basic authentication. I want Eve to raise unauthorized exception and return 401 error to the requester. Unfortunately seems that, using Werkzueg >= 15.0 the code crashes returning 500. Seems that Werkzueg changed the way to handle Unauthorized exceptions, more details hereCredit: Thanks to dmitrybelyakov which replied to my SO question.
Expected Behavior
Requester gets 401 Unauthorized.
Actual Behavior
Exception raised, the server returns 500.
Environment
The text was updated successfully, but these errors were encountered: