webdav-fs icon indicating copy to clipboard operation
webdav-fs copied to clipboard

TypeError: he.decode is not a function

Open sytolk opened this issue 3 years ago • 2 comments

I have this error on

wfs.stat(path, (err, stats) => {
        if (err) {
          return;
        }
})

stat works fine for other files only for this json file:

{
  "content-type": "application/octet-stream"
}
TypeError: he.decode is not a function
    at Object.decodeHTMLEntities (/Users/sytolk/IdeaProjects/tagspaces-common/common-webdav/node_modules/webdav/dist/node/tools/encode.js:9:19)
    at prepareFileFromProps (/Users/sytolk/IdeaProjects/tagspaces-common/common-webdav/node_modules/webdav/dist/node/tools/dav.js:77:29)
    at Object.parseStat (/Users/sytolk/IdeaProjects/tagspaces-common/common-webdav/node_modules/webdav/dist/node/tools/dav.js:117:12)
    at Object.<anonymous> (/Users/sytolk/IdeaProjects/tagspaces-common/common-webdav/node_modules/webdav/dist/node/operations/stat.js:69:34)
    at step (/Users/sytolk/IdeaProjects/tagspaces-common/common-webdav/node_modules/webdav/dist/node/operations/stat.js:33:23)
    at Object.next (/Users/sytolk/IdeaProjects/tagspaces-common/common-webdav/node_modules/webdav/dist/node/operations/stat.js:14:53)
    at fulfilled (/Users/sytolk/IdeaProjects/tagspaces-common/common-webdav/node_modules/webdav/dist/node/operations/stat.js:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

C047FC4B-563D-4E15-8B05-2C28911AE0DD

sytolk avatar Nov 30 '21 15:11 sytolk

Can you provide the file or a simple example project? I’d need this to reproduce.

perry-mitchell avatar Dec 11 '21 11:12 perry-mitchell

just run this test: https://github.com/tagspaces/tagspaces-common/blob/TSN26x---WebDav-re-integration/package.json#L11

sytolk avatar Dec 13 '21 07:12 sytolk