You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functions (emulator): Error: The downloaded data did not match the data from the server. To be sure the content is the same, you should download the file again.
#4228
Closed
bytewiz opened this issue
Feb 28, 2022
· 4 comments
I followed and used the sample in functions-samples to generate a thumbnail of the image uploaded, which is a trigger on storage. It works fine in the regular environment. This error pops up when the file is uploaded and the function trigged by new file is fired. (this is the source code that is throwing the error with the emulator: https://github.com/firebase/functions-samples/tree/main/generate-thumbnail)
This is the error:
functions: Error: The downloaded data did not match the data from the server. To be sure the content is the same, you should download the file again.
The upload of file work fine but the admin SDK function errors out with the above.
[REQUIRED] Steps to reproduce
Run functions, storage emulator.
Upload file
Trigger function which listens for new storage objects
💥 (error)
[REQUIRED] Expected behavior
That there is no content mismatch when the function tries to download and compress the file.
[REQUIRED] Actual behavior
Errors out and function is killed.
The text was updated successfully, but these errors were encountered:
@bytewiz Would you mind posting the full stack trace? That can help us triage if this is an issue in functions emulator, storage emulator, or the sample code.
This could be related to #3469 and a few other issues, which are supposedly solved by PR #3647. However, this PR has been waiting for a review for a few months now.. Must be a frustrating experience for the contributing author @rhodgkins
Hey @bytewiz. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
[REQUIRED] Environment info
firebase-tools: firebase-tools@9.12.1
Platform: Firebase Functions
[REQUIRED] Test case
I followed and used the sample in functions-samples to generate a thumbnail of the image uploaded, which is a trigger on storage. It works fine in the regular environment. This error pops up when the file is uploaded and the function trigged by new file is fired. (this is the source code that is throwing the error with the emulator: https://github.com/firebase/functions-samples/tree/main/generate-thumbnail)
This is the error:
functions: Error: The downloaded data did not match the data from the server. To be sure the content is the same, you should download the file again.
The upload of file work fine but the admin SDK function errors out with the above.
[REQUIRED] Steps to reproduce
[REQUIRED] Expected behavior
That there is no content mismatch when the function tries to download and compress the file.
[REQUIRED] Actual behavior
Errors out and function is killed.
The text was updated successfully, but these errors were encountered: