javagoogle-cloud-speech

gcp cloud speech java client throwing Exception: Task was cancelled


I have a java app using the GCP speech client library that suddenly started throwing an exception: "Task was canceled" on files that took more than 15 minutes. This didn't happen before, has anything changed in the last couple weeks? We updated to the latest version of the client library to no avail :(


Solution

  • I asked around again. Turns out we did upgrade the client version. 1.20.0 v1p1beta1 works fine, 1.22.3 v1p1beta1 throws error, 1.22.3 v1 throws error. We tested this with a file of 1 hr of audio