Back

500. Cannot assign null to property Appwrite\Auth\OAuth2\Google

  • 0
  • Self Hosted
  • Accounts
bluesky
7 Jan, 2024, 02:47

Hello, if I used localhost to test the OAuth, it's return this (image attached)

If I'm using domain, it works.

TL;DR
User is encountering an error in which they cannot assign null to a property in the Appwrite\Auth\OAuth2\Google code. The issue occurs when testing OAuth on localhost, but works on a domain. User has been advised to try a solution provided in a GitHub gist. Further discussion reveals that the problem may be due to an invalid client secret. The version being used is also mentioned. No solution is mentioned in the thread.
Drake
7 Jan, 2024, 03:54

Is this on 1.4.13?

bluesky
7 Jan, 2024, 03:55

Yes, right

Drake
7 Jan, 2024, 04:00

Weird...you're supposed to get more info now...

The problem is usually invalid client secret

Drake
7 Jan, 2024, 04:02
bluesky
7 Jan, 2024, 05:12

Okay thank's Steven, I'll try it.

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