Error in loading db module from firebase_admin: "...unexpected arguement 'status'"
See original GitHub issueEnvironment:
- OS X 10.14.3
- firebase-admin 2.15.1
- python 3.6.7 with Anaconda
Steps to reproduce:
from firebase_admin import db
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-28-f1634322845c> in <module>
----> 1 from firebase_admin.db import Query
~/anaconda3/lib/python3.6/site-packages/firebase_admin/db.py in <module>
31
32 import firebase_admin
---> 33 from firebase_admin import _http_client
34 from firebase_admin import _sseclient
35 from firebase_admin import _utils
~/anaconda3/lib/python3.6/site-packages/firebase_admin/_http_client.py in <module>
28 DEFAULT_RETRY_CONFIG = retry.Retry(
29 connect=1, read=1, status=4, status_forcelist=[500, 503],
---> 30 raise_on_status=False, backoff_factor=0.5)
31
32
TypeError: __init__() got an unexpected keyword argument 'status'
I’ve tried this in a jupyter notebook and in the inline client. Someone else has the error on stackoverflow as well
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (4 by maintainers)
Top Results From Across the Web
How to fix Firebase_Admin Error TypeError: __init__() got an ...
This is caused due to the outdated urllib3 package. I resolved this error with the following solution. You can try it as well....
Read more >Admin SDK error handling - Firebase - Google
For example, all public methods in the auth module may throw API-specific error types such as auth.UserNotFoundError and auth.ExpiredIdTokenError .
Read more >failed to generate manifest from function source ... - You.com
Error: The default Firebase app already exists. This means you called initializeApp() more than once without providing an app name as the second...
Read more >Troubleshooting Cloud Functions - Google Cloud
Make sure you specify the name of your function correctly. You can always check using gcloud functions call which returns the correct 404...
Read more >How to fix Firestore Error: PERMISSION_DENIED - Medium
That's by far the most common and annoying error that you can get when you try to perform a Query against a Cloud...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To solve this, I manually installed requests to the latest version before installing firebase_admin. This way, requests already had the latest version of urllib3 and it was able to run just fine.
@michaelspring haha I ended up just removing the old
urllib3
fromrequests