mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-11-05 00:27:39 +00:00
[GH-ISSUE #51] [BUG] Invalid CSRF Token #19
Labels
No labels
🚏 Awaiting User Response
🐛Bug
🐛Bug
🐛Bug
🦄 Feature Request
✅ Fixed
✅ Fixed
👩💻 Good First Issue
‼️ High Priority
🧑💻 In Progress
🐧 Linux
🐧 Linux
💤 Low Priority
🍎 Mac
❕ Medium Priority
pull-request
🪟 Windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/SillyTavern-Launcher#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RyushoYosei on GitHub (Apr 29, 2024).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Launcher/issues/51
Environment
🪟 Windows
System
Windows
Describe the problem
After a power outage, I am getting spam of Invalid CSRF Token and Silly Tavern can no longer start.
Launching...
SillyTavern is listening on: http://127.0.0.1:8000/
ForbiddenError: invalid csrf token
at doubleCsrf (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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 (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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 (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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 (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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 (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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 (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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 (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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 (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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 (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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 (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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 (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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 (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\node_modules\csrf-csrf\lib\cjs\index.cjs:18:61)
at Object. (C:\SillyTavern\Launcher\SillyTavern-Launcher\SillyTavern\server.js:134:53)
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
Additional info
No response
Please tick the boxes
@deffcolony commented on GitHub (Apr 29, 2024):
@RyushoYosei try these steps:
Toolbox->TroubleshootingRemove node_modules folderFix unresolved conflicts or unmerged files [SillyTavern]@deffcolony commented on GitHub (Jun 16, 2024):
@RyushoYosei
I assume the problem is solved so i am closing the issue now if you still have problem then please reopen it