Skip to content
Back

[SOLVED] Invalid Scheme. The scheme used (tauri) in the Origin (tauri://localhost) ...

  • 0
  • Resolved
  • 5
  • Web
fritsstegmann
10 Aug, 2025, 14:02

Hi, I'm trying to build an app with appwrite and tauri, my webstack is react and typescript, when connecting I get the following error.

"Invalid Scheme. The scheme used (tauri) in the Origin (tauri://localhost) is not supported. If you are using a custom scheme, please change it to appwrite-callback-<PROJECT_ID>"

Has anyone experienced this before?

TL;DR
The issue was about an 'Invalid Scheme' error in Tauri framework. The solution involved changing fetch to this.fetch in the call method in the Client class.
10 Aug, 2025, 15:00

I think you need to change the scheme to deeplink to your app in appwrite-callback-<YOUR_PROJECT_ID> Maybe you will find useful info here: https://v2.tauri.app/plugin/deep-linking/

1
10 Aug, 2025, 15:20

Hi, thanks for the feedback, I've looked at that, it looks like in the web interface, it uses tauri: instead or http: or https: for the URL, which causes some confusion on the SDK. I'm using username/password, in tauri dev mode the app works fine, but when I do a release, no luck.

12 Aug, 2025, 15:21

I've managed to get this working, thank you.

12 Aug, 2025, 15:55

I’m happy for you, I’m sorry that i couldn’t help you more but I don’t know tauri really well

12 Aug, 2025, 18:04

what was the solution?

13 Aug, 2025, 07:03
1
13 Aug, 2025, 08:46

Oh, also forgot to add that you have to change fetch to this.fetch in the call method in the Client class.

13 Aug, 2025, 16:20

[SOLVED] Invalid Scheme. The scheme used (tauri) in the Origin (tauri://localhost) ...

14 Aug, 2025, 07:50

Hi <@566241373318152202> I actually got this issue too in this day, stucked almost 2 days to figure the error. Your solution really help me and fixed the issue happened, really appreciate and most thank you! I use same environment like you Tauri framework with Next JS frontend. Somehow with that solution, it cause another error that also happened in development environment. Have you faced this issue? Really appreciate for the help cuz I'm stucked quite amount of time right now:

TypeError: window.TAURI_INTERNALS.unregisterCallback is not a function. (In 'window.TAURI_INTERNALS.unregisterCallback(this.id)', 'window.TAURI_INTERNALS.unregisterCallback' is undefined)

14 Aug, 2025, 10:29

Hi, sorry, no I have not seen that error. maybe check with the Tauri community.

14 Aug, 2025, 10:29

yeah sure thanks

31 Jan, 2026, 08:25

Intresting?

31 Jan, 2026, 08:26

How come with eletron.js Appwrite email and passwords works fine but on with tauri it fails

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more