question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Downloading a file results in a corrupted archive

See original GitHub issue
  • OS: Windows 10 Pro x86_64
  • Version of IPFS Desktop: 0.12.2

Describe the bug

Downloading a file results in a corrupted archive.

To Reproduce

  1. Download something
  2. Open it

Expected behavior

  1. The downloaded file shouldn’t be compressed
  2. The downloaded file should be usable
  3. It would be nice to have progress reporting via https://github.com/ipfs/go-ipfs/issues/7672 🤗

Screenshots

image

image

Additional context

When I download via BitTorrent, the download files aren’t compressed. This makes BitTorrent infinitely easier to download with than IPFS Desktop at the moment.

  1. Not everyone is able to open .tar.gz
  2. I don’t have the time to download+compress+decompress 10 GB. Let’s just skip the useless compress+decompress part, please!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lidelcommented, Sep 15, 2020

Ok, the problem here is that your browser (Electron renderer) does not handle 405 - Method Not Allowed error properly, and instead downloads the error under the name Test.tar.gz - I think that is an undesired behavior of Electron, in regular browser the download fails with proper error.

Good news is that this bug will be fixed in next release when https://github.com/ipfs-shipyard/ipfs-desktop/pull/1638 is merged, so all you need to do is wait for new release.

0reactions
NatoBoramcommented, Sep 15, 2020

Tested with tar.

$ tar -xvzf Test.tar.gz
tar (child): \302\226Test.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Tested with 7z.

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 25 bytes (1 KiB)

Extracting archive: .\Test.tar.gz
ERROR: .\Test.tar.gz
.\Test.tar.gz
Open ERROR: Can not open the file as [gzip] archive


ERRORS:
Is not archive

Can't open as archive: 1
Files: 0
Size:       0
Compressed: 0
  • ipfs://bafybeieo32rknzpc76mubirgsh6benjjthrzgq2wctvcgrego3ae4ewjlu
  • Test.tar.gz

If you are indeed getting corrupted files, please re-open.

Looks like I don’t have the permission to re-open issues.

and it’s not just a 7-zip problem

Issues with 7-zip can be reported here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Methods to Extract Data from Corrupt ZIP File
Part 2: Extracting Data From a Corrupt ZIP File with these 7 Awesome Tools · 1) Stellar File Repair · 2) WinRAR ·...
Read more >
Download results in a corrupt Zip file for some and not for others
Download results in a corrupt Zip file for some and not for others · Open the General tab in Internet Options · Click...
Read more >
5 Ways to Fix a Zip File if It's Corrupted After Download
5 Ways to Fix a Zip File if It's Corrupted After Download · 1. Use third-party software · 2. Check your antivirus ·...
Read more >
How to Repair a Corrupted ZIP Archive in Windows 10 & 11
Open the ZIP Repair website. · Click Start your Repair to bring up the utility. · Select Choose file, select a corrupted ZIP,...
Read more >
How to Fix Corrupt ZIP File after Download Error? - Yodot
Usually, it could happen when your ZIP archive is corrupted due to downloading errors or incomplete download. Sometimes, ZIP file download process may...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found