firebase / firebase/firebase-admin-java

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

Đang mở
#794 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
api: messaging needs-triage
Ngôn ngữ chính
Java
Star
620
Fork
305
Merge trung bình
3 giờ 23 phút
Pull request đã merge (30 ngày)
1

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với dependency trong pom.xml của firebase-admin 9.1.1 và theo dõi luồng FirebaseMessagingException đối với các lỗi access-token của service-account. Thu thập log liên quan đến lỗi không liên tục và so sánh hành vi trước và sau khi khởi động lại WildFly; hoàn tất khi xác định được nguyên nhân có thể tái hiện và ghi lại cách khắc phục đáng tin cậy, hoặc xác nhận đây là vấn đề của SDK.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
api, authentication, backend
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.