Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: he.decode is not a function #83

Open
sytolk opened this issue Nov 30, 2021 · 2 comments
Open

TypeError: he.decode is not a function #83

sytolk opened this issue Nov 30, 2021 · 2 comments

Comments

@sytolk
Copy link

sytolk commented Nov 30, 2021

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

@perry-mitchell
Copy link
Owner

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

@sytolk
Copy link
Author

sytolk commented Dec 13, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants