question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in loading db module from firebase_admin: "...unexpected arguement 'status'"

See original GitHub issue

Environment:

  • 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:closed
  • Created 5 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
noahasterncommented, Feb 3, 2020

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.

2reactions
xujennacommented, Jun 12, 2019

@michaelspring haha I ended up just removing the old urllib3 from requests

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found