You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2025. It is now read-only.
`const url = "http://127.0.0.1:8765";
async function invoke(action, version, params) {
try {
let res = await fetch(url, {
Method: "POST",
Body: JSON.stringify({
action,
version,
params,
}),
});
let data = await res.text();
return data;
} catch (e) {
console.log(e, "error");
}
}
invoke("deckNames", 6, {}).then((data) => console.log(data, "hello"));
`
The output is
AnkiConnect v.6 hellowhen I try res.json() it crashes and says it's not a json