Error : Error getting access token for service account: Remote host terminated the handshake, iss:
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- firebase, java
研究方向
顯示的唯一進入點是 getAccessToken(),它會讀取 service-account.json 並呼叫 refreshIfExpired()。請先重現握手失敗,並檢查 Maven JAR 以及執行環境或網路設定;只有在確認原因並驗證 access-token 取得成功後,才算完成。
由索引模型根據 Issue 內容生成。
描述
I'm using below Java snippet to get the Authentication token for Firebase Messaging. But its throwing error during refreshIfExpired method call.
private static String getAccessToken() throws IOException {
String[] SCOPES = {"https://www.googleapis.com/auth/firebase.messaging"};
GoogleCredentials googleCredentials = GoogleCredentials.fromStream(new FileInputStream("./src/service-account.json")).createScoped(Arrays.asList(SCOPES));
//googleCredentials.refresh();
try {
googleCredentials.getAuthenticationType();
googleCredentials.refreshIfExpired();
} catch (IOException e) {
e.printStackTrace();
}
return googleCredentials.getAccessToken().getTokenValue();
}
When i remove refreshIfExpired and call getAccessToken directly also same error is coming. Any suggestion. Are these related to jars? As i have uploaded certain jars downloaded from Maven as i do not find anything on google firebase link.
Error at refreshIfExpired step: Error getting access token for service account: Remote host terminated the handshake, iss: firebase-adminsdk-jnf15@***
- 主要語言
- Java
- 星號
- 241
- 分支
- 148
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
firebase/quickstart-java 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 30/100
firebase/quickstart-java#50 ·
-
outdated未關閉
難度 2/5 1-3 小時 新手友好度 45/100
firebase/quickstart-java#41 ·
-
難度 3/5 1-2 天 新手友好度 25/100
firebase/quickstart-java#32 · 3 則留言 ·
-
Admin SDK example可能重新可做 @kroikie 於 2512 天前認領,目前沒有進行中的 PR。 未關閉
firebase/quickstart-java#31 · 2 則留言 · 已指派 1 人 ·
-
難度 4/5 3-5 天 新手友好度 20/100
firebase/quickstart-java#28 · 2 則留言 ·
查看 firebase/quickstart-java 的全部 Issue
相似的 Issue
-
Clarify Javadoc for Logger methods taking Object... arguments with regards to Throwable detection未關閉
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 1/5 1-3 小時 新手友好度 88/100
-
[Bug] The shared instance selector's placeholder and no-match text ignore the display language可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 90/100
apache/rocketmq-dashboard#5561 ·
維護者通常 3 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
test(setup): GitHub configuration tests fail when the temp path is long enough for YAML folding可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉bug good first issue help wanted priority medium size S
難度 2/5 1-3 小時 新手友好度 84/100
martin-francois/symphony-trello#776 · 1 則留言 ·
維護者通常 1 天內回覆