Title: Error : Error getting access token for service account: Remote host terminated the handshake, iss: · Issue #49 · firebase/quickstart-java · GitHub
Open Graph Title: Error : Error getting access token for service account: Remote host terminated the handshake, iss: · Issue #49 · firebase/quickstart-java
X Title: Error : Error getting access token for service account: Remote host terminated the handshake, iss: · Issue #49 · firebase/quickstart-java
Description: 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....
Open Graph Description: 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 IOExce...
X Description: 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 IO...
Opengraph URL: https://github.com/firebase/quickstart-java/issues/49
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error : Error getting access token for service account: Remote host terminated the handshake, iss: ","articleBody":"I'm using below Java snippet to get the Authentication token for Firebase Messaging. But its throwing error during refreshIfExpired method call.\r\n\r\n\tprivate static String getAccessToken() throws IOException {\r\n\t\tString[] SCOPES = {\"https://www.googleapis.com/auth/firebase.messaging\"};\r\n\t \r\n\t GoogleCredentials googleCredentials = GoogleCredentials.fromStream(new FileInputStream(\"./src/service-account.json\")).createScoped(Arrays.asList(SCOPES));\r\n\t //googleCredentials.refresh();\r\n\t try {\r\n\t \tgoogleCredentials.getAuthenticationType();\r\n\t \tgoogleCredentials.refreshIfExpired();\r\n\t } catch (IOException e) {\r\n\t \te.printStackTrace();\r\n\t }\r\n\t \r\n\t return googleCredentials.getAccessToken().getTokenValue();\r\n\t \r\n\t\t}\r\n\r\nWhen 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.\r\n\r\nError at refreshIfExpired step: Error getting access token for service account: Remote host terminated the handshake, iss: firebase-adminsdk-jnf15@***\r\n\r\n","author":{"url":"https://github.com/dineshsraman","@type":"Person","name":"dineshsraman"},"datePublished":"2024-01-29T09:13:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/49/quickstart-java/issues/49"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c14fa940-4f45-a994-e929-ea1f7b127b97 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9C2:2A07B7:101FF70:154632E:697427AE |
| html-safe-nonce | 5dd214e61988d51866bbc4e09b5561d74140387671c42db602ce8b17a3ab4ff2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUMyOjJBMDdCNzoxMDFGRjcwOjE1NDYzMkU6Njk3NDI3QUUiLCJ2aXNpdG9yX2lkIjoiMjYyNTQyMTIyMzg1MTczMDg2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | df692488cd4d1efad39977328c6d5777a89341e4502ae4489dc96ee1df064533 |
| hovercard-subject-tag | issue:2105008651 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/firebase/quickstart-java/49/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d376de73c356704ef8107b8f55bf73177a30ca40a3662200952c48f832badfe2/firebase/quickstart-java/issues/49 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d376de73c356704ef8107b8f55bf73177a30ca40a3662200952c48f832badfe2/firebase/quickstart-java/issues/49 |
| og:image:alt | 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 IOExce... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dineshsraman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 447dc9917c3d68d647a01abfdefe55ec7ee1785922136c1d8395dbb3ab6d57b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/firebase/quickstart-java git https://github.com/firebase/quickstart-java.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 57147453 |
| octolytics-dimension-repository_nwo | firebase/quickstart-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 57147453 |
| octolytics-dimension-repository_network_root_nwo | firebase/quickstart-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8dad7bdfecbe3eaa97ac4e632d6b47e2b23e81d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width