Groups
Sign in
Groups
grpc.io
Conversations
About
Send feedback
Help
Exception if grpc::GoogleDefaultCredentials fails and error handling
24 views
Skip to first unread message
Eugene Abramov
unread,
Oct 18, 2016, 4:16:27 AM
10/18/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
Hello,
If the file application_default_credentials.json is missing the function grpc::GoogleDefaultCredentials fails with a critical error. How to fix it?
How to check for errors?
auto Credentials = grpc::GoogleDefaultCredentials (); <- Exception here before return from this function
if (Credentials) { // It`s correct?
} else { } // If Error
And how to check for connect errors?
auto Channel = grpc::CreateChannel ("
speech.googleapis.com
", Credentials);
auto stub = GoogleSpeechAPI::Speech::NewStub (Channel);
Channel->GetState () ?
Yang Gao
unread,
Nov 15, 2016, 5:11:50 PM
11/15/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
What kind of error are you seeing?
Are there any error logs printed?
Reply all
Reply to author
Forward
0 new messages