Repository navigation
Reading file from google storage using async call gives error #364
Description
Activity
Is your gcsUri really
gs://bucket/file.wav, or did you change out the real names for placeholder names?apologies, yes those are placeholders indeed (not real names). It started to work actually, but all I did differently was to comment out the projectId in
var gcs = require('@google-cloud/storage')({
// projectId: process.env.GCLOUD_PROJECT,
credentials: require('key.json')
});... and I originally didn't have 'transcription' defined as a const because it was defined as a 'var' further up in the file. I changed it to be defined in the scope of the startRecognition function. I'm glad that it is working, but I don't really understand why these two changes resolved the error, or what that error was.
...sorry, the error is back. ugh.
so this is the full error:
{ Error: Requested entity was not found.
at /Users//Documents//node_modules/grpc/src/node/src/client.js:434:17
code: 5,
metadata: Metadata { _internal_repr: {} },
note: 'Exception occurred in retry method that was not classified as transient' }it seems if the audio is a few seconds long it makes the transcription, but as soon as I try to record something more lengthy I get that error. I've tried 1.5 mins and even 40 seconds, both threw the error.
apologies, this should not have been an issue. It was an asynchronous issue...I was running the transcription before the files posted to google cloud (hence why longer audio wasn't working, but shorter audio was). solved.
Reacted by Jason Dobry- addedtriage meI really want to be triaged.I really want to be triaged.🚨This issue needs some love.This issue needs some love.
on Apr 6, 2020 - added 9 commits that reference this issue
on Nov 11, 2022 - added a commit that references this issue
on Nov 17, 2022 - added a commit that references this issue
on Nov 17, 2022 - added 2 commits that reference this issue
on Nov 18, 2022
Hello,
I've been trying to make the asynchronous call
startRecognition(gcsUri, config)but getting the following error:Error: Requested entity was not found.my gcsUri is
gs://bucket/file.wavAny guidance would be appreciated.
Thank you
best