[GH-ISSUE #3625] [BUG]: Can't use upload-link endpoint on local network IPs #2338

Closed
opened 2026-02-22 18:29:14 -05:00 by yindo · 6 comments
Owner

Originally created by @agorman on GitHub (Apr 10, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3625

How are you running AnythingLLM?

Docker (local)

What happened?

When using the /v1/document/upload-link endpoint if I use a link with a local IP on my network I get the following error.

{
	"success": false,
	"error": "Not a valid URL.",
	"documents": []
}

Links sent to routable IPs or domain names seem to work https://google.com or https://8.8.8.8. However something like https://192.168.1.100 doesn't work. The error is also returned right away which seems like there is some validation check failing. I can curl the endpoints from the docker container so I know routing isn't an issue.

Are there known steps to reproduce?

No response

Originally created by @agorman on GitHub (Apr 10, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3625 ### How are you running AnythingLLM? Docker (local) ### What happened? When using the `/v1/document/upload-link` endpoint if I use a `link` with a local IP on my network I get the following error. ~~~ { "success": false, "error": "Not a valid URL.", "documents": [] } ~~~ Links sent to routable IPs or domain names seem to work `https://google.com` or `https://8.8.8.8`. However something like `https://192.168.1.100` doesn't work. The error is also returned right away which seems like there is some validation check failing. I can curl the endpoints from the docker container so I know routing isn't an issue. ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:29:14 -05:00
yindo closed this issue 2026-02-22 18:29:14 -05:00
Author
Owner

@shatfield4 commented on GitHub (Apr 10, 2025):

I see here that you are trying to use a local IP on your network but in your URL you are using a https address. This is probably not working because your local IP does not use https but http instead.

Try using http://192.168.1.100 instead and this should work properly.

@shatfield4 commented on GitHub (Apr 10, 2025): I see here that you are trying to use a local IP on your network but in your URL you are using a **https** address. This is probably not working because your local IP does not use https but http instead. Try using `http://192.168.1.100` instead and this should work properly.
Author
Owner

@agorman commented on GitHub (Apr 10, 2025):

@shatfield4 http gives the same response.

@agorman commented on GitHub (Apr 10, 2025): @shatfield4 http gives the same response.
Author
Owner

@agorman commented on GitHub (Apr 10, 2025):

@shatfield4 this is the issue https://github.com/Mintplex-Labs/anything-llm/blob/master/collector/utils/url/index.js#L15. For some reason you aren't allowing any non routable IPs to be used.

@agorman commented on GitHub (Apr 10, 2025): @shatfield4 this is the issue https://github.com/Mintplex-Labs/anything-llm/blob/master/collector/utils/url/index.js#L15. For some reason you aren't allowing any non routable IPs to be used.
Author
Owner

@agorman commented on GitHub (Apr 11, 2025):

@shatfield4 can we re-open this?

@agorman commented on GitHub (Apr 11, 2025): @shatfield4 can we re-open this?
Author
Owner

@troymroberts commented on GitHub (Jul 4, 2025):

I have the same issue, it's def not https related. I'm trying to index a product page on a local odoo server at http://10.1.1.195/shop/acoustic-bloc-screens-23 and i get the "not a valid url" issue

@troymroberts commented on GitHub (Jul 4, 2025): I have the same issue, it's def not https related. I'm trying to index a product page on a local odoo server at http://10.1.1.195/shop/acoustic-bloc-screens-23 and i get the "not a valid url" issue
Author
Owner

@agorman commented on GitHub (Jul 4, 2025):

@troymroberts this is solved by https://github.com/Mintplex-Labs/anything-llm/pull/3652.

@agorman commented on GitHub (Jul 4, 2025): @troymroberts this is solved by https://github.com/Mintplex-Labs/anything-llm/pull/3652.
yindo changed title from [BUG]: Can't use upload-link endpoint on local network IPs to [GH-ISSUE #3625] [BUG]: Can't use upload-link endpoint on local network IPs 2026-06-05 14:45:59 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2338