Skip to content
Back

Deprecated: json_decode(): Passing null to parameter #1 ($json)

  • 0
  • Self Hosted
D5
15 Jul, 2024, 11:44

I'm seeing that error randomly in my appwrite main container logs

Full error:

TypeScript
appwrite  | [Error] Message: Document with the requested ID could not be found.
appwrite  | [Error] File: /usr/src/code/app/controllers/api/databases.php
appwrite  | [Error] Line: 3161
appwrite  |
appwrite  | Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /usr/src/code/app/controllers/api/account.php on line 1241
TL;DR
Error message "Deprecated: json_decode(): Passing null to parameter #1 ($json)" seen randomly in appwrite main container logs. Error is related to a null `user` parameter. Check for any issues with auth/authentication operations. Solution: Investigate source code for null `user` parameter.
darShan
15 Jul, 2024, 11:53

any auth / oauth operations? as per current source, there's an attempt to get a user param but its apparently null.

D5
15 Jul, 2024, 11:57

Hmmm could be

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