-
Notifications
You must be signed in to change notification settings - Fork 902
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
Files bigger than 256kb fail when saving to storage emulator #4927
Comments
I'm experiencing the same problem. |
I got the same error I am not sure my issue exactly the same cause, though. I couldn't fix my code when I reduced the file size less than 256KB. |
I've started experiencing the same problem as Gremash the last day or so. Was using firebase-tools 11.2, now using 11.8 (experiencing the problem with both). I recently updated the gcloud cli, I'm not sure if that could be related. |
We're seeing this issue too. Looks like a regression of #4407 |
Same issue when running tests in my dev and CI environments. It comes up only for larger blobs. I've also noticed that the corresponding file is created (visible in the storage emulator UI) but it's only about 260KB, and the content type is application/octet-stream rather than the content type of the object that's actually being uploaded. Reverting to firebase-tools 11.7 is a workaround. |
Having this issue as well |
Thanks for your patience everyone, I merged in a fix for this #5018. I'm closing this for now but please be sure to try it out once the new release is out and report back if there are any issues, we can reopen and take another look if needed then. |
[REQUIRED] Environment info
firebase-tools: 11.8.0
firebase NPM package: firebase@9.9.3
Platform: macOS Monterey, MacBook Pro 2021 w/ Apple M1 Pro chip
[REQUIRED] Test case
Upload a file larger than 256kb using the Javascript SDK to the Firebase Storage emulator
[REQUIRED] Steps to reproduce
While using the storage emulator and the Firebase JavaScript SDK, upload any file larger than 256kb. The following error occurs:
Firebase Storage: An unknown error occurred, please check the error payload for server response. (storage/unknown)
. No other information is provided and no logs are recorded. This error does not happen when using production Firebase Cloud Storage. Files smaller than 256kb do not fail. Also, files larger than 256kb can be manually uploaded via the emulator UI.Here is the sample code:
[REQUIRED] Expected behavior
Users can uploaded files larger than 256kb while using the emulator.
[REQUIRED] Actual behavior
Any file larger than 256kb causes the firebase storage emulator to throw an unknown error.
The text was updated successfully, but these errors were encountered: