devika
devika copied to clipboard
[Error 426 Upgrade Required] Running on WSL the console on brave is showing a websocket instead of http.
running it in WSL with windows 11 the console is showing this:
even if i checked the flask and the svelte files is set to http.
Same
UPDATE: i fixed the 426 error but now i have the CORS problem for not fetching the data. i even find and fixed the #171 issue error.
In TerminalWidget.svelte on line 12 there's a missing import.
onMount(async () => { let xterm = await import('xterm'); let xtermAddonFit = await import('xterm-addon-fit')
And for the Error 426 i set http2 in the headers for force it:
export async function createProject(projectName) { await fetch(
${API_BASE_URL}/api/create-project, { method: "POST", headers: { "http2": "true", "Content-Type": "application/json", }, body: JSON.stringify({ project_name: projectName }), }); }
is it solved or not? if solved then close the issue