google-cloud-python: Speech: Obscure encoding error message

Using the wrong encoding for the file results in an error that does not easily point to the right cause.

self._exceptiongoogle.api_core.exceptions.GoogleAPICallError:
None Unexpected state: Long-running operation had neither response nor
error set.

See #4885 for background info.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

Issue is still active for the Google Cloud Speech API in Python (diarization).

I’m also experiencing the same problem with python 3.5, 3.6 and 3.7, with the gcloud command it works.

also using any previous version of google-cloud-speech doesn’t work, seems that’s a backend error

I faced the same problem. I’m using Python 3.7 and the latest versions of google-cloud-speech and google-cloud-storage.

Any update on this issue ?