Skip to content
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

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

Comments

@bytewiz
Copy link

bytewiz commented Feb 28, 2022

[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

  1. Run functions, storage emulator.
  2. Upload file
  3. Trigger function which listens for new storage objects
  4. 💥 (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.

@bytewiz bytewiz added the bug label Feb 28, 2022
@yuchenshi
Copy link
Member

@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.

@yuchenshi yuchenshi added the Needs: Author Feedback Issues awaiting author feedback label Feb 28, 2022
@jeroenkroese
Copy link

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

@google-oss-bot
Copy link
Contributor

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!

@google-oss-bot
Copy link
Contributor

Since there haven't been any recent updates here, I am going to close this issue.

@bytewiz if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants