What kind of error are you seeing?
Are there any error logs printed?

On Tuesday, October 18, 2016 at 1:16:27 AM UTC-7, Eugene Abramov wrote:
>
> 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 grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
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/27853fab-bf9f-44d3-9c57-bf1a4f0bd88a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to