
Thanks @Steven , adding the complete hostname fixed the issue.
Note: This issue came automatically without even changing the piece of code. The success url has always been the same since the project was hosted but suddenly yesterday this stopped working.

Its the same as mentioned in the piece of code i.e ( 'https://hack-bud.vercel.app/')

our domain validator works slightly differenrly now

馃憖

is this new or a regression from 1.3?

I think this has always been there

<:KEKW:736600409228967937> I thought we fixed this

I remember raising this when 1.0 came out

I get the same error with NextJS and GitHub OAuth
{"message":"Invalid `success` param: URL host must be one of: localhost, appwrite.jaoudestudios.co.uk, *.vercel.app,localhost,*.jaoudestudios.co.uk","code":400,"type":"general_argument_invalid","version":"0.11.33"}
After research, I have done the following, am I missing something?
- used a custom sub domain
appwrite.jaoudestudios.co.uk
and added it to my Appwrite Cloud project - using custom sub domain to connect to Appwrite
const client = new Client()
.setEndpoint("https://appwrite.jaoudestudios.co.uk/v1")
.setProject(process.env.NEXT_PUBLIC_APPWRITE_PROJECT_ID);
- using a host file for
rating.jaoudestudios.co.uk
to point tolocalhost
, and added to allowed hostnames
const login = async () => {
account.createOAuth2Session(
"github",
"http://rating.jaoudestudios.co.uk:3000/account",
"http://rating.jaoudestudios.co.uk:3000/failed"
);
};
Let me know if you prefer me to start a new discussion

Your appwrite version is 0.11.33 ?

I did try by adding the complete sub domain and not the wildcard but same error

It鈥檚 not about the domain you鈥檙e connecting to Appwrite with, it鈥檚 about the domain you鈥檙e redirecting to from GitHub. Wildcards are not supported

ah ok, I forgot about the redirect back, let me check the github oauth settings

where can i check this?

You're adding 2 domains at the same time

Also put there the entire domain including the subdomain

Footer of the console

still the same error after changing from wildcard and updating github oauth settings
{"message":"Invalid `success` param: URL host must be one of: localhost, appwrite.jaoudestudios.co.uk, *.vercel.app,localhost,rating.jaoudestudios.co.uk","code":400,"type":"general_argument_invalid","version":"0.11.33"}

it says Version 1.4.13

Create a separate post then since it's different from main issue


ok sure, i thought it was the same, but i can do that now if you think it is different

And what鈥檚 the callback URL you鈥檙e setting when you create the OAuth request in your code?

btw we started a new discussion and solve the issue here (the fix was the mulitple domains in Appwrite, changing it to a single domain) https://discord.com/channels/564160730845151244/1176241774038110218

[SOLVED] Appwrite GitHub Oauth error
Recommended threads
- Looking for Partner
I'm looking for a partner for long-term collaboration. Of course, you'll get paid for it. If you are interested, please send a DM to me
- Looking for Partner
I'm looking for partner for long-term collaborating. Of course, I'll pay for you. If you are interested, Please DM me.
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: {聽聽"name":聽"upload-whitelist",聽聽"type"...
