agence-appy / fcmhttpv1

Send push notifications with Laravel and the FCM Http V1 API
28 stars 12 forks source link

Error while I am tryng to send notification #4

Open stojankukrika opened 1 year ago

stojankukrika commented 1 year ago

I get this as an error: [2023-06-23 03:19:43] production.INFO: Subscribed to topic: 11 [{"GuzzleHttp\Psr7\Stream":"{\"results\":[{\"error\":\"NOT_FOUND\"}]}"}] [2023-06-23 03:19:43] production.ERROR: [Notification] ERROR ["Client error: POST https://fcm.googleapis.com/v1/projects/treniraj-lako/messages:send resulted in a 400 Bad Request response:\n{\n \"error\": {\n \"code\": 400,\n \"message\": \"Invalid value at 'message.topic' (TYPE_STRING), 11\",\n \"status\": \"INVA (truncated...)\n"]

If you need more info that can help you be free to ask.

Vincentdm31 commented 1 year ago

Hi can you show me the code where you're trying to send the notification please ?