这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG]: Some confluence doc name cannot be saved - throwing ENOENT: no such file or directory #1737

@jazelly

Description

@jazelly

How are you running AnythingLLM?

Local development

What happened?

We have a confluence doc named 2021-09-15 "Tested" Retrospective. When using confluence connector, I got an error like this.

Error: ENOENT: no such file or directory, open 'E:\github\my\anything-llm\server\storage\documents\XXXX\2021-09-15-"Tested"-Retrospective-bf2937a8-15bc-4da9-9b1b-efce42d892e4.json'
    at Object.writeFileSync (node:fs:2348:20)
    at writeToServerDocuments (E:\github\my\anything-llm\collector\utils\files\index.js:59:6)
    at E:\github\my\anything-llm\collector\utils\extensions\Confluence\index.js:92:5
    at Array.forEach (<anonymous>)
    at loadConfluence (E:\github\my\anything-llm\collector\utils\extensions\Confluence\index.js:72:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async E:\github\my\anything-llm\collector\extensions\index.js:115:43 {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
}

Are there known steps to reproduce?

  1. Have a confluence document with title that has quotes
  2. Use connector to scrape it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    possible bugBug was reported but is not confirmed or is unable to be replicated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions