Closed dazzyjong closed 6 years ago
From the onError of ResponseObserver, I can see the UNAUTHENTICATED error message. Even I make Service account key as owner role, but it returns below error.
com.google.api.gax.rpc.UnauthenticatedException: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Credentials require channel with PRIVACY_AND_INTEGRITY security level. Observed security level: NONE
Anyway I think this is not your library's problem. Please ignore this issue.
mmm...With the same credential json file, I can get the transcript through the python example and android example.
@dazzyjong Good question, we're missing documentation on that.
googleCredentials
needs to be in the format of:
JSON.stringify({
'type': 'service_account',
'project_id': 'XXXXX',
'private_key_id': 'XXXXX',
'private_key': '-----BEGIN PRIVATE KEY-----\nXXXXX\n-----END PRIVATE KEY-----\n',
'client_email': 'XXXXX',
'client_id': 'XXXXX',
'auth_uri': 'https://accounts.google.com/o/oauth2/auth',
'token_uri': 'https://accounts.google.com/o/oauth2/token',
'auth_provider_x509_cert_url': 'https://www.googleapis.com/oauth2/v1/certs',
'client_x509_cert_url': 'XXXXX'
})
Note the explicit \n
newlines for the private key lines.
@dazzyjong Good question, we're missing documentation on that.
googleCredentials
needs to be in the format of:JSON.stringify({ 'type': 'service_account', 'project_id': 'XXXXX', 'private_key_id': 'XXXXX', 'private_key': '-----BEGIN PRIVATE KEY-----\nXXXXX\n-----END PRIVATE KEY-----\n', 'client_email': 'XXXXX', 'client_id': 'XXXXX', 'auth_uri': 'https://accounts.google.com/o/oauth2/auth', 'token_uri': 'https://accounts.google.com/o/oauth2/token', 'auth_provider_x509_cert_url': 'https://www.googleapis.com/oauth2/v1/certs', 'client_x509_cert_url': 'XXXXX' })
Note the explicit
\n
newlines for the private key lines.
Thanks for reply. I changed the google credentials format as you mentioned, but it did not work with the same error. Can you please provide example application source?
@noel Maybe I can set up a publicly available example app using spokestack. Getting more practice with it never hurts.
After the dependencies are moved into android/build.gradle, the above issue is resolved.
There is no transcript after an activate event occurs.
I used the below configuration.
How can I make the device recognizable state?