-
Notifications
You must be signed in to change notification settings - Fork 369
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
I can't download files larger than 70KB to my Google Cloud Storage bucket #2370
Comments
Hi @PatricioPoncini unfortunately at this time we do not have official support for Bun. This library was written / intended for Node environments. We are currently investigating the possibility of expanding support to other runtimes but there is no time frame for when / if this will happen. |
Hi @ddelgrosso1 nice to meet you. Do you know if there is any other way to use the npm library google-cloud/storage in a project with Bun? Specifically, it's with Bun and ElysiaJS the project. Thank you! |
@PatricioPoncini unfortunately my testing with Bun has been fairly limited at this point. I've actually spent more time investigating Deno. So I'm not sure how to get this working with Bun. Just looking at the stack trace you provided the problem seems to be coming from Duplexify which is one of our dependencies. It might be worth opening an issue with that repository. I noted this on another similar issue, we are planning to move away from Duplexify in the next major revision to storage but I wouldn't expect that to happen until sometime next year. |
@ddelgrosso1 No problem, thanks anyway. Cheers! |
Same error occurs on node 20 |
@charlesbodman if you are seeing this issue on a supported Node version can you please open a new issue with additional details? |
Going to close this as I believe this has been resolved (at least for Node). At this time we do not support environments other than Node. If this is still an issue for Node, please feel free to open a new issue with additional details. |
I'm having an issue with GCS and Bun. It turns out that I want to download an image from my bucket, and I'm encountering an error. I'm using the
.download()
method from the GCS library, but it gives me an error for files larger than a certain size in KB.This worked fine in Express, but when doing it in Bun, it doesn't, and I don't know why. What I'm trying to do is pass an array of public URLs that I have in my bucket, download them, and send them by email. However, for files larger than approximately 70KB, it doesn't work because the code stops, and nothing gets sent. I'm getting the following errors:
I'm not sure what these errors refer to. I've tried updating the library, dependencies, etc., but nothing seems to work. The error seems to have occurred when I switched from Express to Bun because it used to work perfectly fine before.
This is the line, with files larger than approximately 70KB, it doesn't go beyond this line, meaning it doesn't download them: const
downloadResponse = await findFile.download();
The text was updated successfully, but these errors were encountered: