Skip to content
Back

I am receiving an Error 400 Invalid `success` param

  • 0
  • Databases
  • Auth
  • Web
  • Functions
!themothershipp (Joseph)
27 Feb, 2025, 20:33

Hi, I am an armature trying to set up a Google Sign-in button and authentication with some scopes. However, I don't understand why I can't redirect the button to my success page. I have tried troubleshooting and looking at documentation but nothing is working. My website is registered in the custom domains with the proper subdomain. I will attach some of the code below as well as my attribute scopes. Any help would be great. Thanks.

TL;DR
Developers experiencing Error 400 due to invalid `success` parameter for Google Sign-in button. The issue lies in the mismatch between the web platform and Appwrite endpoint hostnames. Ensure the success URL matches the app, not Appwrite. Update the hostname to match the project's web platform. Solution: Ensure the success URL aligns with the web platform, not the Appwrite endpoint.
Steven
27 Feb, 2025, 20:34

Add a web platform to your project

!themothershipp (Joseph)
27 Feb, 2025, 20:38

I do have a web platform. However I did just notice that the hostname of the web platform was under revealyt.org and not *appwrite.revealyt.org. So let me try that. I'm gonna be mad if this works

Steven
27 Feb, 2025, 20:38

It should match your app, not the Appwrite endpoint

!themothershipp (Joseph)
27 Feb, 2025, 20:40

so should I revert the hostname back to revealyt.org?

!themothershipp (Joseph)
27 Feb, 2025, 20:41

either way I run into the same error

Steven
27 Feb, 2025, 20:41

Why did you put appwrite.xyz.com for your success url?

!themothershipp (Joseph)
27 Feb, 2025, 20:44

I have 'appwrite' as a subdomain. The full url for the success url is https://appwrite.revealyt.org/templates/success.html

Steven
27 Feb, 2025, 20:46

Then appwrite.revealyt.org should be your web platform

!themothershipp (Joseph)
27 Feb, 2025, 20:49

alright, but the problem still persists

!themothershipp (Joseph)
27 Feb, 2025, 20:50

same error 400

!themothershipp (Joseph)
27 Feb, 2025, 20:54

is there something wrong with the attributes and what the button is requesting?

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