This always appears in the Log after loading the Site.
[2024-01-06T18:40:23.747] [ERROR] server - Error parsing message: TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11457:11)
at async Object.getModelList (B:\STMP\src\api-calls.js:617:22)
at async WebSocket.<anonymous> (B:\STMP\server.js:660:32) {
cause: Error: unknown scheme
at makeNetworkError (node:internal/deps/undici/undici:6802:35)
at schemeFetch (node:internal/deps/undici/undici:10919:18)
at node:internal/deps/undici/undici:10792:26
at mainFetch (node:internal/deps/undici/undici:10809:11)
at fetching (node:internal/deps/undici/undici:10766:7)
at fetch2 (node:internal/deps/undici/undici:10644:20)
at Object.fetch (node:internal/deps/undici/undici:11455:18)
at fetch (node:internal/process/pre_execution:230:25)
at Object.getModelList (B:\STMP\src\api-calls.js:617:28)
at WebSocket.<anonymous> (B:\STMP\server.js:660:42) {
[cause]: undefined
}
}
If then the user sends a message, the server will just crash.
B:\STMP\src\api-calls.js:42
let isCCSelected = liveAPI.type === 'CC' ? true : false
^
TypeError: Cannot read properties of undefined (reading 'type')
at Object.getAIResponse (B:\STMP\src\api-calls.js:42:32)
at handleResponse (B:\STMP\server.js:1026:36)
at WebSocket.<anonymous> (B:\STMP\server.js:922:25)
Node.js v18.16.0
I'm using Text-Generation-Webui on Port 5000.