devika icon indicating copy to clipboard operation
devika copied to clipboard

[Error 426 Upgrade Required] Running on WSL the console on brave is showing a websocket instead of http.

Open Sante96 opened this issue 11 months ago • 3 comments

running it in WSL with windows 11 the console is showing this: image even if i checked the flask and the svelte files is set to http.

Sante96 avatar Mar 25 '24 21:03 Sante96

Same

dnnsdunca avatar Mar 25 '24 22:03 dnnsdunca

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 }), }); }

Sante96 avatar Mar 26 '24 23:03 Sante96

is it solved or not? if solved then close the issue

ARajgor avatar Apr 03 '24 18:04 ARajgor