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.

zipEntries.js?4c22:149 Uncaught Error: Can't find end of central directory : is this a zip file ? If it is

See original GitHub issue

使用axios请求一个express的静态文件地址,请求结果是blob类型,然后使用 filereader 读取blob中的buffer,然后就报错了

this.axios({
           method: "get",
           url: "http://127.0.0.1:3000/demo文档.doc",
           responseType: "blob"
       }).then(r => {
           let res = r.data;
           let file = new FileReader();
           file.onload = function(e){
               let buffer = e.target.result;
               mammoth.convertToHtml({arrayBuffer:buffer}).then(r=>{
                   console.log(r);
               }).done();
           }
           file.readAsArrayBuffer(res);

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mwilliamsoncommented, Jan 14, 2020

It looks like you’re trying to use a .doc file, which isn’t supported.

0reactions
Jimmiaxiecommented, Oct 28, 2020

Only support .docx, use .doc will report this error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Corrupted zip : can't find end of central directory #35
I am trying to use this library to parse a base64 encoded .xslx file on the server using node.js. I have also removing...
Read more >
XLSX Populate: "Error: Can't find end of central directory
My code consists in a Reader for Templates .XSLX files and then populate using data from a Firecloud Database. Code: exportData() { var ......
Read more >
How to Fix Unzip Error “End-of-central-directory signature not ...
Rarely, you may attempt to unzip a zip archive and come across an error that states “End-of-central-directory signature not found.
Read more >
Can't find end of central directory : is this a zip file (#3) · Issues
when reading file inside electron===(node environment), I used the path to the file as indicated in the documentation.
Read more >
unzip error "End-of-central-directory signature not found"
Try this excellent solution: jar xvf COCR2_100.zip. steps: drag and drop file into terminal window. use keyboard arrows to navigate to start of...
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