firebase / firebase/firebase-admin-java

Firebase Messaging throws exception and doesn't get back until server restart

未關閉
#794 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
api: messaging needs-triage
主要語言
Java
星號
620
分支
305
平均合併
3 小時 23 分鐘
30 天內合併 PR
1

描述

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?

貢獻指南

開啟貢獻指南

研究方向

從 pom.xml 中對 firebase-admin 9.1.1 的相依性開始,追蹤服務帳戶存取權杖失敗時的 FirebaseMessagingException 路徑。收集間歇性故障期間的記錄,並比較 WildFly 重新啟動前後的行為;完成標準是找出可重現的原因並記錄可靠的修正方式,或確認這是 SDK 問題。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
api, authentication, backend
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。