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.

Cannot upload compressed .gz files

See original GitHub issue

Bug

Expected Behavior

WHEN Uploading a compressed .gz file

THEN the file will be unziped and if the map is valid it is loaded properly.

Actual Behavior

an error message appears “File invalid or empty”

Steps to Reproduce the Problem

  1. Click the “load map” button on the upper left
  2. Upload a .gz file

Developer Notes

  • The fileChooser component tries to unzip the compressed file.
  • Then a Uint8Array is returned from the zlib library.
  • We then mistakenly assume that the Uint8Array is a Json string which we can parse with JSON.parse(content).
  • This results in the aforementioned error message.
  • I think we must handle a buffer array differntly, converting it to string and then parse it as a JSON.
  • We have to add tests for that.

Specifications

  • is released in online-demo: yes
  • CodeCharta Version: 1.64.0
  • OS: Windows
  • Browser: Chrome

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
BridgeARcommented, Dec 15, 2020

😕 we should really only land PRs that are fully covered (or at least fully test the main features).

0reactions
Shivan-997commented, Jan 27, 2021

look at Issue #1702. the implementation is handled there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot upload compressed file to Cloud Storage with Python ...
When I try to upload a compressed gzip file to cloud storage using a python script on a Cloud Shell instance, it always...
Read more >
Inventory Beacon cannot upload .gz files - Flexera Community
Symptoms: .gz file upload is failing for Beacon-generated compressed files. Bstat.gz and actdir.gz files (reporting Beacon Status and Active ...
Read more >
Uploading .gz file to S3 results in file being stored ... - GitHub
I have compressed log files I'm trying to store in S3 using django-storages s3 backend, but when I inspect the files I discover...
Read more >
Transcoding of gzip-compressed files | Cloud Storage
While it is possible to do so, a file that is gzip-compressed should not be uploaded with the compressed nature of the file...
Read more >
How To Optimize Your Site With GZIP Compression
Verify Your Compression​​ Refresh your page, and click the network line for the page itself (i.e., www.google.com ). The header “Content-encoding: gzip” means ......
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