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 () ?
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/57f4a574-cc4b-4588-a65f-5a98e04b13bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.