Hi, I'm trying to execute a very simple command:
#[tauri::command]
fn get_ip(query: String, handle: AppHandle) -> Option<Connection>
I've registered it in my tauri::Builder...
.invoke_handler(tauri::generate_handler![get_ip])
And now I'm trying to call it in my javascript:
const cache = await invoke("get_ip", { "query": ip });
I thought that this would work fine (it seems to mirror the examples on the website), but I am getting this strange error in the console: