Skip to content
Back

OAUTH deeplink 404 error (1.3.6)

  • 0
  • Web
rohan
2 Jun, 2023, 15:33

hi im getting 404 error on https://domain.com/auth/oauth2/success

{"message":"Not Found","code":404,"type":"general_route_not_found","version":"1.3.6"}

TL;DR
The user is experiencing a 404 error on the OAuth deeplink. They previously made manual changes and saw the commits made by someone else, but the issue still persists. It seems that the error is related to the path "/auth/oauth2/success" not existing. The user mentions that it was working with version 1.3.1. There is a suggestion to check a link provided for more information. The user also mentions using it in React Native and wanting to call the deeplink "appwrite-callback-[project]". The solution suggested is to set the success and failure URLs appropriately when running OAuth. An example
Binyamin
2 Jun, 2023, 15:59

That is actually correct When running your OAuth try to set the success and failure URLs as such for example

TypeScript
account.createOAuth2Session(
        'google',
        window.location.href,
        window.location.href,
)

Replace google with the one you're using.

rohan
2 Jun, 2023, 16:54

im using it in react native.. i want to call the deeplink "appwrite-callback-[project]"

Binyamin
2 Jun, 2023, 16:56
rohan
2 Jun, 2023, 16:56

it was working with 1.3.1

rohan
2 Jun, 2023, 16:57

here the error is "/auth/oauth2/success" this path dosent exist

Binyamin
2 Jun, 2023, 16:57

Really, this is interesting - the same code? Let me check something.

Drake
2 Jun, 2023, 17:17

hmmm...we may have missed this...

Binyamin
2 Jun, 2023, 17:21

You're correct Just verify that with version 1.3.1

rohan
3 Jun, 2023, 06:52

@Steven any fix for this?

Drake
3 Jun, 2023, 14:36

Are you on self hosted or cloud?

rohan
3 Jun, 2023, 14:37

Self hosted

rohan
3 Jun, 2023, 14:37

I fixed the issue by seeing the commits you made

rohan
3 Jun, 2023, 14:37

I changed the files manually

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