This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
UnhandledPromiseRejectionWarning when calling SpeechClient.recognize #684
Labels
api: speech
Issues related to the googleapis/nodejs-speech API.
status: investigating
The issue is under investigation, which is determined to be non-trivial.
type: question
Request for information or clarification. Not an issue.
I am using the @google-cloud/speech library and bundling an express app with webpack.
I had the proto error (as described here) and fixed it by passing
{fallback: true}
to the constructor.Right now I get the error
UnhandledPromiseRejectionWarning: TypeError: fetch is not a function
, which is triggered when in my code I execute the recognize function of the client.Here the related portions of my code:
Environment details
@google-cloud/speech
version: 4.1.5Steps to reproduce
recognize
function of the speech client{fallback: true}
optionThanks!
The text was updated successfully, but these errors were encountered: