-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Provide a "timeout" option #71
Comments
@mvalota Can you share the exact stacktrace/error message you're seeing? The 5 second timeout is for internal RPC calls made by App Engine. URL Fetch calls have a 60 second timeout by default:
I would like to know what is actually triggering the deadline exceeded error. |
Here's the stacktrace:
I received the last expected log at 12:32:56.773, while the error log was at 12:33:01.770 (~ 5 seconds later) The lines that are causing this error are: But I had the same error on other requests to firebase db (get, update..) |
Thank you @mvalota. If I push a fix to a separate branch, can you try it out and provide some feedback? |
Sure, I can try it. Thank you @hiranya911 |
@mvalota I have a fix in progress at #72. You can checkout the |
Hi @hiranya911, I tried to read/write to Firebase, and it seems to work; but since the problem is not occurring regularly (I had a few timeouts today, while the last errors were returned on 05-06-09/09), I'll keep it checked in order to find any errors. |
Hi @hiranya911, |
@mvalota That's great news. I will get the fix merged into a release soon. |
This was released today: https://firebase.google.com/support/release-notes/admin/python#2.4.0 |
I'm using firebase-admin v2.3.0 in a Google AppEngine app (Standard Environment, Python 2.7).
Unfortunately I'm getting a DeadlineExceededError once in a while when accessing my Firebase DB.
On Appengine the request timeout is 5 seconds, but it is possible to increase it up to 60 seconds, as described here:
https://cloud.google.com/appengine/articles/deadlineexceedederrors
I already tried to follow the official solution proposed by Google for Requests, but it doesn't seem to work:
https://cloud.google.com/appengine/docs/standard/python/issue-requests
I've seen that the google-auth library provides a timeout option in her Requests transport:
https://google-auth.readthedocs.io/en/latest/reference/google.auth.transport.requests.html#module-google.auth.transport.requests
It would be great to have a "timeout" option on Firebase App initialization, in order to avoid the DeadlineExceededError on AppEngine.
have a nice day!
Mauro
The text was updated successfully, but these errors were encountered: