Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Long running operation has finished but there was no result #330

@artz

Description

@artz

I followed the documentation on this page and am getting the following error:

{ error:
   { Error: Long running operation has finished but there was no result
       at self.getOperation (/Users/artz/Sites/website/node_modules/@google-cloud/speech/node_modules/google-gax/build/src/longrunning.js:284:39)
       at Operation._unpackResponse (/Users/artz/Sites/website/node_modules/@google-cloud/speech/node_modules/google-gax/build/src/longrunning.js:228:13)
       at noCallbackPromise.currentCallPromise_.then.responses (/Users/artz/Sites/website/node_modules/@google-cloud/speech/node_modules/google-gax/build/src/longrunning.js:197:18) code: 2 } }

My full code is below:

try {
    const [operation] = await speechClient.longRunningRecognize({
      config: {
        languageCode: 'en-US',
        encoding: 'OGG_OPUS',
        sampleRateHertz: 16000,
        model: 'video'
      },
      audio: {
        uri: `gs://${ video.bucket }/${ video.audio }`
      }
    })
    const [response] = await operation.promise()
    return response
} catch (error) {
  return { error }
}

I am testing with this file: http://assets.vizual.ai/audio/326c5427-4b03-4b37-a24d-4868198dbfb8.ogg

Any thoughts appreciated.

Metadata

Metadata

Labels

api: speechIssues related to the googleapis/nodejs-speech API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions