send message fail
My Firebase account can send notification bar messages to users by topic, but I am unable to use the reg id to send notification bar messages to users. This happened suddenly and has not been possible until now. The error code returned is 500, internal server error for url https://fcm.googleapis.com/v1/projects/xxx/messages:send My machine environment is Ubuntu, Python==3.9, Pip==20.2.3, Firebase admin==5.2.0 User System: IOS my code:
message = messaging.Message( data=extra_dict, notification=messaging.Notification( title=title, body=subtitle, image=image ), android=messaging.AndroidConfig( ttl=datetime.timedelta(seconds=86400), priority='normal', notification=messaging.AndroidNotification( icon='stock_ticker_update', color='#f45342', image=image ), data=extra_dict ), webpush=messaging.WebpushConfig( headers=headers, data=extra_dict, notification=messaging.WebpushNotification( title=title, body=subtitle, badge='1', data=extra_dict, image=image ) ), token=condition ) msg_id = messaging.send(message)
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hey @xushaochen, v5.2.0 is a bit outdated (latest is v7.1.0). Are you able to test on the latest version of Firebase Admin SDK?
I cannot upgrade the version as it would require significant changes to the environment. And not all Firebase projects have this issue, only this one project has encountered the problem.
In that case, this seem to be an isolated issue on a specific project. You can file a support request on https://firebase.google.com/support/troubleshooter/report/bugs so the correct internal teams can investigate the issue on that specific project.
thank you