-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Thumbnails example - ECONNRESET #107
Comments
Let's handle that on StackOverflow :) |
@nicolasgarnier This was happening to me too. Filed bug report [0-1088000016633] ECONNRESET Error happens randomly and halts function execution. Tried to deploy the function again but run into a couple more issues:
To the Bucket permissions on Google Cloud Console.
Seems to be authentication related, but this was working fine a few days ago. Any ideas? |
Yes, I really think this is an open issue as I can confirm the problem. My function sometimes runs completely and sometimes throws this error. |
The issue appears to be related to bucket and object ACLs not being set up properly. Here's a bash script (using the
|
@mcdonamp I never used gsutil, just want to use Firebase functions as described in this repo :-) For the understanding: can you tell me if this is some bug at Firebase Beta (that will be fixed somewhen in the future), or where does this error occurs from? At the moment the functions are not useable for me as sometimes it works, and sometimes it just throws this error: Error: read ECONNRESET |
How your bucket ended up in a bad state is unclear at this point. Mike is investigating. The solution is to follow Mike's instructions and run gsutil commands he's provided. |
I think the ECONNRESET issue is an issue in the |
IMO, it seems to be related to Google Storage servers. When it comes up, every call ends up as ECONNRESET for several minutes. For example, yesterday 4 calls between 8:16PM and 8:23PM (UTC+2) crashed, while 5 successive calls this morning finished with no errors. Another point, to join @inlined remark and issue, is that it only happens when using google-cloud-node. I never had any problem uploading files to Storage client-side, using iOS or Android Firebase SDK, even during the moments all server calls (Firebase functions with google-cloud-node) do ECONNRESET. |
@mcdonamp yes of course, thank you for looking into this. I can also confirm never have any problems handling files client side (JS / Web SDK) |
Someone on SO linked this : https://issuetracker.google.com/issues/36667671 If someone can confirm this is working (can't try this out today) |
I did all the things above, but still get this error sometimes, why it's not stable? |
If you did all the things above, then surely you read about the bug in the public issue, and also noted the patch? Closing this issue to prevent further "me too" discussions. Follow the public bug and file separate issues as needed. |
Thanks @katowulf yes it seems this was fixed in googleapis/google-cloud-node#2254 Closing now. |
Hello,
I developed something really close to Thumbnails example provided here, and sometimes (often) I'm getting this error when uploading or deleting files from Storage :
I found #78, but I checked that a promise is returned everytime.
Here is some code snippet, for the deletion part :
index.js
example_function.js
I also created this StackOverflow post.
Thanks.
The text was updated successfully, but these errors were encountered: