firebase-admin-java
firebase-admin-java copied to clipboard
Firebase Messaging throws exception and doesn't get back until server restart
I have a system built with spring boot, java 8 and hosted on google cloud using compute engine. My server app is wildfly 21.0.1.Final. I am using firebase messaging 9.1.1 to deliver notifications to the application users. The service is working fine most of the time, however, I get this error from time to time.
com.google.firebase.messaging.FirebaseMessagingException: Failed to establish a connection: Error getting access token for service account: IP_OF_PROXY_HOST_GOES_HERE, iss: [email protected]
As a workaround, I do a full server (wildfly) restart to get the service back.
In my pom file, I have:
I have searched for similar issues and checked: 1- The system clock is synchronized 2- Firewall access to firebase 3- The service works well and the issue happens randomly from time to time. 4- I can not reproduce since I don't know the cause.
Note: I don't use any other firebase service in this product.
Does anyone know what is happening and how to overcome this issue?
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hi Mohamed,
Once you start getting the error do you continue to get it till you restart or do you have successful requests even after you get the error (without restarting the server)?
Hello Arthur,
Yes, the error continues until I do the restart no success request happens meanwhile.
On Wed, May 17, 2023 at 1:50 AM Arthur Thompson @.***> wrote:
Hi Mohamed,
Once you start getting the error do you continue to get it till you restart or do you have successful requests even after you get the error (without restarting the server)?
— Reply to this email directly, view it on GitHub https://github.com/firebase/firebase-admin-java/issues/794#issuecomment-1550456704, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3RVJCMQSBXOXJVQ7BXJJDDXGQAFDANCNFSM6AAAAAAWSNAMCY . You are receiving this because you modified the open/close state.Message ID: @.***>