Repository navigation
Firebase Cloud Messaging (FCM) Access Token Issue #917
Description
Activity
- addedtriage meI really want to be triaged.I really want to be triaged.
on Dec 17, 2019 - addedtype: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.and removedtriage meI really want to be triaged.I really want to be triaged.
on Dec 17, 2019 To me this sounds like a firewall issue with the timeout. Can you run
curl -I "https://oauth2.googleapis.com/token"from where ever your code is running?- addedneeds more infoThis issue needs more information from the customer to proceed.This issue needs more information from the customer to proceed.
on Dec 17, 2019 - Hello, After debugging inside sdk I found that it is trying to connect to https://oauth2.googleapis.com/token but this URL is not working. Is this URL is correct? I tried to open it but I got bttp error 404 with/without firewall…On Tue, Dec 17, 2019, 7:30 PM Cody Oss ***@***.***> wrote: To me this sounds like a firewall issue with the timeout. Can you run curl -I "https://oauth2.googleapis.com/token" from where ever your code is running? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#917?email_source=notifications&email_token=AD5HJ557NFNO54H4EABLHZTQZD5CBA5CNFSM4J3GZ27KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHDEBZY#issuecomment-566640871>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AD5HJ56WQLKRWZZVZXQBBOLQZD5CBANCNFSM4J3GZ27A> .
Yes that is correct, although Firebase does have its own auth as well: https://firebase.google.com/docs/auth Are you still having issues?
- it was firewall issue , thanks alot…On Fri, Jan 3, 2020 at 1:38 AM Cody Oss ***@***.***> wrote: Yes that is correct, although Firebase does have its own auth as well: https://firebase.google.com/docs/auth Are you still having issues? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#917?email_source=notifications&email_token=AD5HJ57TG5ZO64XTSK67E7TQ3ZUFHA5CNFSM4J3GZ27KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7VKDA#issuecomment-570381580>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AD5HJ57YDLTJRHO5DYVOV3TQ3ZUFHANCNFSM4J3GZ27A> .
hy guys!
I'm trying to notify my app using the FCM but when i send the request i'm surprised by an exception.
My send code:
`
try{Message message = Message.builder() .putData("test", "test") .putData("test", "test") //.setToken("dla3GnhWQjc:APA91bH3dE2St0dLPMmhhTThgrpYSx7yY7gkR7sx_xL8DcQcDiCla_DtoJrhG-_uJFn9pmdwm78-0UcHIwJz1oplOb7n-P2n3FZY2vh1d1YP_Nirtt7NLVbQgDObQyLNwLQ0fr1JBEA6") .setTopic(topic) .build(); // Send a message to the device corresponding to the provided // registration token. String response = FirebaseMessaging.getInstance().send(message); // Response is a message ID string. System.out.println("Successfully sent message: " + response); }catch (FirebaseMessagingException e) { System.out.println(e.getMessage()); }`
Excepiton:
java.io.IOException: Error getting access token for service account:
Error while calling FCM backend servicecan you help me?
I've already checked the credentials and firewall issue
Please open a new issue as this is a different exception.
I've already checked the credentials and firewall issue
hy guys!
I'm trying to notify my app using the FCM but when i send the request i'm surprised by an exception.
My send code:
` try{
Message message = Message.builder() .putData("test", "test") .putData("test", "test") //.setToken("dla3GnhWQjc:APA91bH3dE2St0dLPMmhhTThgrpYSx7yY7gkR7sx_xL8DcQcDiCla_DtoJrhG-_uJFn9pmdwm78-0UcHIwJz1oplOb7n-P2n3FZY2vh1d1YP_Nirtt7NLVbQgDObQyLNwLQ0fr1JBEA6") .setTopic(topic) .build(); // Send a message to the device corresponding to the provided // registration token. String response = FirebaseMessaging.getInstance().send(message); // Response is a message ID string. System.out.println("Successfully sent message: " + response); }catch (FirebaseMessagingException e) { System.out.println(e.getMessage()); }`
Excepiton:
java.io.IOException: Error getting access token for service account: Error while calling FCM backend service
can you help me?
have you got solution?
bz I am getting also same error.it was firewall issue , thanks alot
…
On Fri, Jan 3, 2020 at 1:38 AM Cody Oss @.***> wrote: Yes that is correct, although Firebase does have its own auth as well: https://firebase.google.com/docs/auth Are you still having issues? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#917?email_source=notifications&email_token=AD5HJ57TG5ZO64XTSK67E7TQ3ZUFHA5CNFSM4J3GZ27KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7VKDA#issuecomment-570381580>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5HJ57YDLTJRHO5DYVOV3TQ3ZUFHANCNFSM4J3GZ27A .Hi, I am having the similar issue. What did you change in the firewall to make it work? Is there any list of IP-Addresses to be whitelisted?
Is there any list of IP-Addresses to
Was this sorted? We too have a some issue in Firebase Messaging. Error seems to be different, but we are stuck in getting the access token and network team is analyzing the issue.
Error : Error obtaining access token: Error getting access token for service account: Remote host terminated the handshake,iss.
@dineshsraman @neewaz @SanketNikam18062000 @codyoss
I am also facing this same issue, any idea regarding this will be very helpful..
Hello,
i'm trying to send message via Firebase Cloud Messaging but i received the below error so can you please help in fixing this issue
java.util.concurrent.ExecutionException: com.google.firebase.messaging.FirebaseMessagingException: Error while calling FCM backend service
..
Caused by: java.io.IOException: Error getting access token for service account: connect timed out
code snippets :-
FileInputStream serviceAccount =
new FileInputStream("serviceAccountKey.json");
// response = instance.send(message);
// Response is a message ID string.
System.out.println("Successfully sent message: " + response);
} catch (Exception e) {
e.printStackTrace();
}