fix(bug): use stream when downloading snapshot locally#223
Conversation
|
Hello @KeiKey I tested your changes and they worked fine. but I noticed something, I can see the success message is displayed before the download has actually completed. I think we need to wait until the download is fully complete before showing that message |
I checked it and the message is printed after creating the Snapshot. More than likely what you noticed was a visual issue. Since it was a big file, it took some time in order for the file to show in the IDE/code editor. |
Thanks @KeiKey ,I don’t think the issue is related to the size of the snapshot file. In this case, we’re using streams, which are asynchronous operations. We need to wait until the download is fully completed before continuing. Currently, we're returning without waiting for the final result, so it might fail later. yet we still show that the snapshot was created successfully |
Updated accordingly. Thank you! |
|
🎉 This PR is included in version 1.8.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR is about fixing the issue where large snapshot couldn't be downloaded via CLI. In order to fix it streams are used.
How to test it:
http://ipv4.download.thinkbroadband.com/5GB.zip. Side note, if you follow this method it will take some time to download.