Comments (4)
Can you add a proper test with the tar that fails as a fixture, without the fetch and stream wrappers
from tar-stream.
I don't really know what's the issue so I can't develop a proper fixture for it, but here you go: https://gitea.nulo.in/Nulo/tar-stream (uploaded to a self-hosted repo because GitHub doesn't allow LFS in forks...)
from tar-stream.
I'm encountering a similar (but maybe completely different?) issue.
I'm using tar-stream
with feross/buffer
in React Native (and a tar
file generated with tar-stream
).
For me, val.subarray(offset, end).toString()
in decodeOct
is evaluating to a list of numbers instead of as ASCII (e.g. 48,48,48,54,52,52
instead of 000644
).
Line 307 in 03da589
Replacing that line with
return parseInt(Buffer.from(val).toString('utf-8', offset, end), 8)
and adding
const {Buffer} = require('buffer');
to the top of the file seems to fix the issue.
Edit: Upstream issue: feross/buffer#329
from tar-stream.
I ran into a similar problem as @personalizedrefrigerator and ended up submitting a PR for it: #164
from tar-stream.
Related Issues (20)
- all entry name are paxheader HOT 2
- "Invalid tar header: unknown format." from valid tar file, IANA tz database HOT 5
- Tar file is corrupted when using single File larger than 8 GB - tar-fs HOT 1
- Packing files at the root HOT 1
- File corrupted when combining extract with gzip HOT 2
- unable to use stream.pipeline() HOT 1
- doesn't work with HOT 2
- skipping on entry, header errors HOT 1
- zero-sized files in tarballs do not call `end` handler HOT 2
- error handling issue HOT 3
- Add browser support HOT 12
- Error: Writable stream closed prematurely HOT 1
- Missing fast-fifo dependency HOT 2
- Using tar stream in the browser HOT 8
- create entry with base-256 size HOT 3
- Invalid tar header: unknown format. (for ExtendedName)
- Is it possible to return raw file offsets from within the tar? HOT 2
- Uncatchable error in pack.entry HOT 3
- Benchmarks not maintained in tar-fs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tar-stream.