Comments (5)
Thank you for the report I moved character metadata parsing under a try-catch so it won't crash the server. Also added logging so you could see which exact character is corrupted. I advise you to always keep backups of character cards somewhere just in case. Please check on main after this commit and let me know if that fixed the issue.
https://github.com/Cohee1207/SillyTavern/commit/658a26def2c445553c868c71e7cf9bcb379c2124
from sillytavern.
I solved it by doing a git pull of the main branch. Keeping this here in case anyone else has this problem.
from sillytavern.
I spoke too soon. The server still crashes on startup, but now it gives another error:
Launching...
TavernAI started: http://127.0.0.1:8000
ForbiddenError: invalid csrf token
at doubleCsrf (E:\ProgramsE\TavernAI-SillyLossy Mod\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object.<anonymous> (E:\ProgramsE\TavernAI-SillyLossy Mod\server.js:117:72)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
ForbiddenError: invalid csrf token
at doubleCsrf (E:\ProgramsE\TavernAI-SillyLossy Mod\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object.<anonymous> (E:\ProgramsE\TavernAI-SillyLossy Mod\server.js:117:72)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
ForbiddenError: invalid csrf token
at doubleCsrf (E:\ProgramsE\TavernAI-SillyLossy Mod\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object.<anonymous> (E:\ProgramsE\TavernAI-SillyLossy Mod\server.js:117:72)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
ForbiddenError: invalid csrf token
at doubleCsrf (E:\ProgramsE\TavernAI-SillyLossy Mod\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object.<anonymous> (E:\ProgramsE\TavernAI-SillyLossy Mod\server.js:117:72)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
E:\ProgramsE\TavernAI-SillyLossy Mod\server.js:688
var base64DecodedData = Buffer.from(textChunks[0].text, 'base64').toString('utf8');
^
TypeError: Cannot read properties of undefined (reading 'text')
at charaRead (E:\ProgramsE\TavernAI-SillyLossy Mod\server.js:688:55)
at E:\ProgramsE\TavernAI-SillyLossy Mod\server.js:708:28
at Array.forEach (<anonymous>)
at E:\ProgramsE\TavernAI-SillyLossy Mod\server.js:706:18
at FSReqCallback.oncomplete (node:fs:198:23)
Node.js v18.15.0
from sillytavern.
Let me know if the issue persists. Closing for now. Thanks,
from sillytavern.
Let me know if the issue persists. Closing for now. Thanks,
Thanks! The latest commit fixed the issue.
from sillytavern.
Related Issues (20)
- [FEATURE_REQUEST] Concept feature: "Split box" (not final name) HOT 2
- [BUG/UI] Bad Default value of dialogue examples when importing a character card causes slow prompt processing. HOT 1
- [BUG][Staging] Alltalk TTS Provider failed to return voice ids HOT 2
- [BUG] Return Key Sends Messages Mid-Input with Japanese IME HOT 5
- [BUG] <title> UTF-8 string not exported properly when exporting chat completion preset HOT 4
- [FEATURE_REQUEST] Advanced settings on User's card as requested by Character card. HOT 4
- [FEATURE_REQUEST] Grayed out/hidden folders when they don't refine the search any more. HOT 5
- [FEATURE_REQUEST] Context Indicator Usability Improvement HOT 3
- [BUG] Classifier Free Guidance (CFG) Prompts don't properly use defined user/system prefixes/suffixes
- [BUG] <title> When importing chat completion preset file, reverse proxy information from file provider will also be imported HOT 2
- Import screen doesn't fit on mobile devices HOT 2
- [BUG] QR editor caret is invisible on mobile HOT 5
- [FEATURE_REQUEST] Support ChatTTS
- [BUG] Expression Maps doent't work. Missing Local classification check in settings. HOT 5
- [BUG] uploads folder points to sillytavern source, not dataRoot? HOT 6
- [BUG] CFG Tokens Exceed Context Size
- [BUG] Error on saving group chat happens silently HOT 4
- [BUG] large number of tokenizers are tallying requests HOT 2
- [BUG] The official google colab is not working anymore HOT 1
- Would it be possible to support the option to automatically translate to English after the input content is sent out, I know the plugin can set the response or input to translate to English, but I need to translate the English response to my language and my language to English.[FEATURE_REQUEST] <title> HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sillytavern.