nachol_Original post
Rank 1: Thread
I get this error on appwrite console
Failed sending to targets with error: Utopia\Messaging\Helpers\JWT::encode(): Argument #2 ($key) must be of type string, null given, called in /usr/src/code/vendor/utopia-php/messaging/src/Utopia/Messaging/Adapter/Push/FCM.php on line 61
- Push notifications provider works
- I see on Auth user target is successfully registered
Summary
Developers need to make sure they uploaded a valid `Service account JSON` file without corruption. Error may occur when sending push messages from the cloud or appwrite console. The error message indicates an issue with the encryption key.
Possible Solution: Ensure that the encryption key is set as a string and not null in the FCM.php file.