Comments (8)
You should also try with the latest release of the SDK (2.10.0), which caches public key certificates thereby avoiding calling the above URL on each invocation of verify_id_token()
.
from firebase-admin-python.
I don't quite understand. Are you implying that you're using a too old version of requests? Admin SDK uses requests>=2.13.0
, so it will typically install the latest version of requests along with firebase_admin.
from firebase-admin-python.
@hiranya911 you are right. Requests is the latest so I don't know why that is happening. If I understand well there shouldn't be any limitation on the number of requests for the verification of a token
from firebase-admin-python.
The above error has nothing to do with exceeding a quota. It's a low-level network error -- possibly a Firewall issue or something of the sorts. Is this something that happens all the time, or only occasionally?
from firebase-admin-python.
It doesn’t happen all the time but actually always if a user with a valid token has performed the same request repeatedly and the routine above checks if it is expired. The issue seems to be related with token verification imho.
from firebase-admin-python.
Try sending some GET requests to https://www.googleapis.com/robot/v1/metadata/x509/[email protected]
from your Python environment (use the requests
library), and see how that works out. The verify_id_token()
calls the above URL to download public key certificates, which is what's failing in your case.
from firebase-admin-python.
That's cool and likely one good reason to upgrade the SDK. Give a try and I'll let you know. Thanks @hiranya911
from firebase-admin-python.
Upgrading to latest with cache looks good. Issue disappeared
from firebase-admin-python.
Related Issues (20)
- urllib3 connection pool full using messaging.send_each_for_multicast() HOT 4
- Failing to verify a firebase id_token on backend from NextAuth GoogleProvider HOT 1
- No longer able to use pip install for system level package install HOT 3
- [FR] Add multiple Firestore support HOT 1
- facing issues when trying to install firebase-admin in my existing project, after installing also it's throwing error. HOT 2
- Geeting lots of issues when trying to install firebase-admin in my existing project, after installing also it's throwing error. HOT 2
- No module named 'firebase_auth' --> Newly Created Projects HOT 2
- Uploading files >100 MB to the Firebase Storage fails (Firebase Emulator Suite) HOT 3
- Missing ibi (iOS bundle ID) parameter on generated email link authentication URLs
- Localhost unavailable: WSA error HOT 1
- [FR] - When using Email/Password authentication, add a way to login with the password HOT 2
- Transaction contextmanager does not set transaction to in_progress HOT 2
- python-jwt is deprecated HOT 2
- firebase_admin installed and got PyJWKClient issue HOT 2
- [FR] Download url like with node js client HOT 1
- Github Desktop Pull/Push Issue HOT 2
- [FR] Adding global var HOT 1
- Option to pass values to the transaction function callback HOT 1
- auth.verify_id_token throwing ValueError HOT 1
- [FR] Add Support for Pyodide by providing a wheel with binaries built for Emscripten. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-admin-python.