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

[BUG]: File Parsing Fails for URLs With Uppercase Characters #4514

@angelplusultra

Description

@angelplusultra

How are you running AnythingLLM?

Docker (local)

What happened?

When attempting to pull and parse a file via a URL either with RAG modal or @agent mode, if the URL contains uppercase characters the prcess will fail, this is because the validateURL func converts the URL to lowercase which results in a 404 error when the fetching the content type. This is the culprit:

let destination = url.trim().toLowerCase();

Remove .toLowerCase() and it should work.

Are there known steps to reproduce?

No response

Metadata

Metadata

Labels

bugSomething isn't workingpossible 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