Back

[SOLVED] When Discord Oauth2 fail appwrite throw error instead of redirecting

  • 0
  • Web
Bill.IHCha
12 Jul, 2023, 01:44

When I click cancel when trying to auth to Discord but click cancel instead of Authorize it redirect me to appwrite's API and it returned:

TypeScript
Error 400
Param "code" is not optional.

Error ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

instead of redirecting me to the failure URL I have to manually enter &code=0 to make it redirect

TL;DR
The user encountered a bug where Appwrite does not redirect to the failure URL when Discord OAuth2 fails. A solution for this issue is provided in the support thread by manually entering `&code=0` to force the redirect. The bug has been acknowledged and users are encouraged to support it on GitHub.
Bill.IHCha
12 Jul, 2023, 01:46

not really a big deal but I think it's a bug on the Appwrite side

Drake
12 Jul, 2023, 01:59

This is a known issue and I suggest you 👍🏼 this issue: https://github.com/appwrite/appwrite/issues/2591

Bill.IHCha
12 Jul, 2023, 02:01

alright

Bill.IHCha
12 Jul, 2023, 02:01

[SOLVED] When Discord Oauth2 fail appwrite throw error instead of redirecting

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