Error: End of data reached (data length = 0, asked index = 4) when calling fromFIle

See original GitHub issue

I have a node script that I’m using to grab symbols from a downloaded sketch file.

const sketchFileData = await Sketch.fromFile(sketchFile);

Everytime I run this code I get the same error Error: End of data reached (data length = 0, asked index = 4). Corrupted zip ?

The file is there and I can open it but I can’t seem to use this this function to query the data in it.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
phil-isaacscommented, Jun 26, 2020

Opps, sorry I forgot I open this ticket. I was able to resolve it. It turned out to be an issue with another conflicting library. I will close this.

0reactions
Koshubcommented, Sep 21, 2020

@dbanksdesign no. Thank you. Well, it would be nice if you check this one, please. 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERR Error: End of data reached (data length = 0, asked index ...
I believe you would get this error after you stop your execution in between, i.e when the file is getting updated and this...
Read more >
[Solved]-ERR Error: End of data reached (data length = 0 ...
Coding example for the question ERR Error: End of data reached (data length = 0, asked index = 4). Corrupted zip?-node.js.
Read more >
IBM Informix Messages and Corrections
The ISAM processor has been asked to delete the primary key index. For C-ISAM programs, the isdelindex call cannot delete the primary key....
Read more >
Import or link to data in an Excel workbook - Microsoft Support
When you import data, Access creates a copy of the data in a new or existing table without altering the source Excel worksheet....
Read more >
Errors | Basics | kdb+ and q documentation
Errors signalled by the interpreter, and what triggers them. ... Incomplete transaction at end of file, get good (count;length) with ... Not a...
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