before_first_request has been deprecated
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Domain
- authentication, backend
Research direction
Start with requirements.txt and the reported flask run failure involving before_first_request. Check the Flask version constraint against the workaround, then run flask run to verify the AttributeError no longer occurs.
Written by the indexing model from the issue text.
Description
When running flask run, an error will occur: AttributeError: 'Flask' object has no attribute 'before_first_request'.
workaround:
diff --git a/requirements.txt b/requirements.txt
index a9a0f2d..34f5e84 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
-Flask
+Flask~=2.2.0
Flask-SQLAlchemy
Authlib
- Dominant language
- Python
- Stars
- 705
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from authlib/example-oauth2-server
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
authlib/example-oauth2-server#92 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
authlib/example-oauth2-server#90 · 8 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
authlib/example-oauth2-server#86 · 2 comments ·
All issues in authlib/example-oauth2-server
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100