question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unsuccessful authentication without errors/warnings

See original GitHub issue

At first the authentication worked fine and I could see the API requests in the dashboard. But at some point the requests were not showing up anymore in the dashboard API overview.

I created a service account and stored the json file locally. Then I set the environment variable GCLOUD_PROJECT to the project ID and GOOGLE_APPLICATION_CREDENTIALS to the path of the json file.

from google.cloud import speech
client = speech.Client()
print(client._credentials.service_account_email)

Prints the correct service account email.

import io
with io.open(audio_file, 'rb') as f:
    audio = client.sample(f.read(), source_uri=None, sample_rate=48000, encoding=speech.encoding.Encoding.FLAC)
alternatives = audio.sync_recognize(language_code='de-DE')

The resulting transcript is correct, but nothing happens on the dashboard at https://console.cloud.google.com/apis/api/speech.googleapis.com/overview?project=[project-ID]

I also tried to initialize the client with the function speech.Client.from_service_account_json and to authenticate by installing the Google Cloud SDK and gcloud auth application-default login, but without success.

The error count (Fehler) is increasing here but I don’t know how to get additional information.

  • Windows 7
  • conda environment
  • python 3.5.2
  • google-cloud-speech 0.23.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
theacodescommented, Mar 13, 2017

It’s None at first because the credentials have yet to be refreshed. It should be the time of execution plus one hour after because it refreshed during the execution.

1reaction
theacodescommented, Mar 13, 2017

Maybe @gguuss knows?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Too many failed login attempts - causes and resolution
Possible causes and their resolution for the "Too many failed login attempts" error - OutSystems Support.
Read more >
Troubleshoot error messages for single sign-on (SSO)
Guidance about how to troubleshoot problems with single sign-on (SSO) in Office Add-ins, and handle special conditions or errors.
Read more >
Error messages and problem solving - IBM
A warning or error message might be displayed in the user interface to provide information about the adapter or when an error occurs....
Read more >
altool fails with "The auth server returned a bad status code"
Hi All, Trying to validate some altool credentials, produces this error message. "Failed to get authorization for username '<username/>' and password with ...
Read more >
Authentication fails with Internal Server Error (500) after ...
Causes · The key is missing. · The key alias name is incorrect (for example, you have not changed the 'test' key alias)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found