[BUG] Infinite SillyTavern load on browser
13Angels opened this issue · comments
13Angels commented
Environment
🪟 Windows
System
Firefox 118
Version
1.11.8
Desktop Information
Node Version: 18.16.1
Branch: Staging
Describe the problem
When I try to open up SillyTavern on any browser, it loads forever. No error log in the SillyTavern terminal but there is one in the browser.
Additional info
Firefox console log:
Uncaught TypeError: reference is null
sanitizeServiceSettings http://127.0.0.1:8000/scripts/PromptManager.js:844
sanitizeServiceSettings http://127.0.0.1:8000/scripts/PromptManager.js:844
init http://127.0.0.1:8000/scripts/PromptManager.js:318
setupChatCompletionPromptManager http://127.0.0.1:8000/scripts/openai.js:588
changeMainAPI http://127.0.0.1:8000/script.js:5880
getSettings http://127.0.0.1:8000/script.js:6275
[PromptManager.js:844:77](http://127.0.0.1:8000/scripts/PromptManager.js)
sanitizeServiceSettings http://127.0.0.1:8000/scripts/PromptManager.js:844
findIndex self-hosted:368
sanitizeServiceSettings http://127.0.0.1:8000/scripts/PromptManager.js:844
init http://127.0.0.1:8000/scripts/PromptManager.js:318
setupChatCompletionPromptManager http://127.0.0.1:8000/scripts/openai.js:588
changeMainAPI http://127.0.0.1:8000/script.js:5880
getSettings http://127.0.0.1:8000/script.js:6275
InterpretGeneratorResume self-hosted:1469
AsyncFunctionNext self-hosted:852
Error: Promised response from onMessage listener went out of scope
Please tick the boxes
- I have explained the issue clearly, and I included all relevant info
- I have checked that this issue hasn't already been raised
- I have checked the docs
Cohee commented
It seems your prompt manager settings are a bit corrupted. I added a failsafe check to the prompt manager init function to let it complete the app initialization. After that you'd need to go to prompt manager settings for chat completion and reset the prompt order (yellow round arrow button).
13Angels commented
That worked! Thank you for the quick fix.