[GH-ISSUE #1] config.json can't load #3

Closed
opened 2026-10-30 21:16:42 +00:00 by bsakaguchi · 7 comments
Owner

Originally created by @gdtiti on GitHub (Oct 11, 2022).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/1

http://127.0.0.1:7860/file/tags/config.json 500 internal server error

Originally created by @gdtiti on GitHub (Oct 11, 2022). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/1 http://127.0.0.1:7860/file/tags/config.json 500 internal server error
bsakaguchi 2026-10-30 21:16:42 +00:00
Author
Owner

@DominikDoom commented on GitHub (Oct 11, 2022):

Did you place the file in the right spot? I tested it on Chrome and Firefox just now and it still works for me.

<!-- gh-comment-id:1275269053 --> @DominikDoom commented on GitHub (Oct 11, 2022): Did you place the file in the right spot? I tested it on Chrome and Firefox just now and it still works for me.
Author
Owner

@evanjs commented on GitHub (Oct 15, 2022):

I'm seeing a similiar issue with any files specified in wc.txt.

The wc.txt file appears to initialize as expected, but reads for the specified files seem to fail.

It looks like there is some sandboxing, and only certain files are allowed to load, as far as I can tell.

ValueError: File cannot be fetched: scripts/wildcards/views.txt, perhaps because it is not in any of
{'C:\\Users\\evanjs\\AppData\\Local\\Temp\\tmp1z27z66v', 'C:\\Users\\evanjs\\AppData\\Local\\Temp\\tmpfnroftve', ... }

Source of upstream error:
github.com/gradio-app/gradio@831ae1405f/gradio/routes.py (L253-L256)

<!-- gh-comment-id:1279797260 --> @evanjs commented on GitHub (Oct 15, 2022): I'm seeing a similiar issue with any files specified in `wc.txt`. The `wc.txt` file appears to initialize as expected, but reads for the specified files seem to fail. It looks like there is some sandboxing, and only certain files are allowed to load, as far as I can tell. ``` ValueError: File cannot be fetched: scripts/wildcards/views.txt, perhaps because it is not in any of {'C:\\Users\\evanjs\\AppData\\Local\\Temp\\tmp1z27z66v', 'C:\\Users\\evanjs\\AppData\\Local\\Temp\\tmpfnroftve', ... } ``` Source of upstream error: https://github.com/gradio-app/gradio/blob/831ae1405f0f2cddf8d508775731eef39c5a09df/gradio/routes.py#L253-L256
Author
Owner

@DominikDoom commented on GitHub (Oct 15, 2022):

Yes, Gradio for security reasons only allows to load files in the app root and its subdirectories via JavaScript. But everything in the wildcards folder should be fine under that condition.
Are you running the webui from a different location or something like that?

<!-- gh-comment-id:1279799018 --> @DominikDoom commented on GitHub (Oct 15, 2022): Yes, Gradio for security reasons only allows to load files in the app root and its subdirectories via JavaScript. But everything in the wildcards folder should be fine under that condition. Are you running the webui from a different location or something like that?
Author
Owner

@evanjs commented on GitHub (Oct 15, 2022):

Thanks for the 🦆, that makes sense now.
I have wildcards stored somewhere external to the webui, and that is what was causing issues on my end.
Ensuring any/all symlinks point to a directory within the application root ensures that the wildcard files can be loaded properly.

<!-- gh-comment-id:1279822231 --> @evanjs commented on GitHub (Oct 15, 2022): Thanks for the 🦆, that makes sense now. I have wildcards stored somewhere external to the webui, and that is what was causing issues on my end. Ensuring any/all symlinks point to a directory within the application root ensures that the wildcard files can be loaded properly.
Author
Owner

@martinobettucci commented on GitHub (Nov 17, 2022):

I have the same problem since installing the extension via the installer manager from auto1111.
It works if I copy the extension manually into the root

<!-- gh-comment-id:1318813884 --> @martinobettucci commented on GitHub (Nov 17, 2022): I have the same problem since installing the extension via the installer manager from auto1111. It works if I copy the extension manually into the root
Author
Owner

@DominikDoom commented on GitHub (Nov 17, 2022):

@martinobettucci Can you tell me a few more details? Is there an error message in the command prompt running the webui?
Also, if you used the legacy version before installing it from the manager, make sure to move/delete all script parts of it (see #76) so that there is no remnant still using old non-extension paths.

<!-- gh-comment-id:1318924316 --> @DominikDoom commented on GitHub (Nov 17, 2022): @martinobettucci Can you tell me a few more details? Is there an error message in the command prompt running the webui? Also, if you used the legacy version before installing it from the manager, make sure to move/delete all script parts of it (see #76) so that there is no remnant still using old non-extension paths.
Author
Owner

@DominikDoom commented on GitHub (Jan 10, 2023):

Since the original issue was ages ago before the extension system, and the OP has not provided feedback, closing the issue for now.

<!-- gh-comment-id:1377366424 --> @DominikDoom commented on GitHub (Jan 10, 2023): Since the original issue was ages ago before the extension system, and the OP has not provided feedback, closing the issue for now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DominikDoom/a1111-sd-webui-tagcomplete#3
No description provided.