firebase / firebase/firebase-admin-java
Firebase Messaging throws exception and doesn't get back until server restart
- Lenguaje dominante
- Java
- Estrellas
- 620
- Forks
- 305
- Merge medio
- 3 h 23 min
- PR fusionados (30 d)
- 1
Descripción
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: firebase-adminsdk-project@projectname.iam.gserviceaccount.com`
As a workaround, I do a full server (wildfly) restart to get the service back.
In my pom file, I have:
com.google.firebase
firebase-admin
9.1.1
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?
Guía de contribución
Línea de trabajo
Comienza con la dependencia de pom.xml en firebase-admin 9.1.1 y sigue la ruta de FirebaseMessagingException para los fallos del token de acceso de la cuenta de servicio. Recopila registros relacionados con el fallo intermitente y compara el comportamiento antes y después de reiniciar WildFly; se considerará terminado cuando se haya identificado una causa reproducible y documentado una solución fiable, o confirmado que se trata de un problema del SDK.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- api, authentication, backend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100