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.

Fail to uncompress zip file created by 7zip

See original GitHub issue
Deno 1.15.0
exit using ctrl+d or close()
> import * as fflate from './fflate.js';
undefined
> const rawdata = await Deno.readFile('county_border.zip');
undefined
> fflate.decompressSync(rawdata)
Uncaught Error: invalid length/literal
    at inflt (file:///D:/git_work/loc2district/fflate.js:259:9)
    at inflateSync (file:///D:/git_work/loc2district/fflate.js:920:10)
    at Module.decompressSync (file:///D:/git_work/loc2district/fflate.js:1201:159)
    at <anonymous>:2:8
> rawdata
Uint8Array(31903372) [
   80,  75,   3,   4,  20,   0,   0,   0,   8,   0, 101,  91,  35,  83, 175,
  100, 188, 138, 226, 205, 230,   1,  52, 251,  18,   7,  18,   0,   0,   0,
   99, 111, 117, 110, 116, 121,  95,  98, 111, 114, 100, 101, 114,  46, 106,
  115, 111, 110, 180, 157, 187, 202, 104,  61,  17, 134, 123, 175,  66, 172,
   69, 114,  78, 150, 173,  96,  41, 246,  34, 226,  25, 193,  19,  30,  10,
   17,  11,  65, 176,  17, 177, 241,  22,  44,   5,  11,  27,   5, 189,  26,
    5, 239, 194, 247, 205, 154, 201, 188, 203, 195,
  ... 31903272 more items
]

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
101arrowzcommented, Dec 15, 2021

It would help inexperienced users like myself if there was a table in the docs matching the types of files to the API/function used for those types.

Thanks for the feedback, I’ll close this issue after clarifying in the docs.

0reactions
AlexanderMiselcommented, Dec 15, 2021

It works! Thank you. I’m also confused by

fflate can autodetect a compressed file’s format as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it true that 7-Zip can fail to extract an successfully created ...
If a 7-Zip archive cannot be extracted, it would most likely be due to file corruption after the archive was created.
Read more >
How to Fix 7-Zip Cannot Open File as Archive Error - Guide
Several different reasons can cause 7Zip to fail to open an archived file. The most common one is corruption. To fix this, you...
Read more >
4 methods to fix 7-zip data error - Wondershare Recoverit
Inappropriate tool: When the 7-zip file is compressed or the use of the substandard application to uncompressing them, may lead to 7-zip file...
Read more >
Fix 7-Zip Cannot open file as archive ... - The Windows Club
Re-download or re-create the compressed archive file · Use a ZIP Repair freeware · Repair ZIP archive using WinRAR utility · Use Command...
Read more >
Solved: 7-Zip Data Error - AnyRecover
Corrupted .7z files lead to 7-Zip data error which prevents extraction of the archive data. Fortunately, you can fix the error in most...
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