Bad credentials (or missing) throws UnhandledPromiseRejectionWarning #403
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
When creating a new SpeechClient (specifically using keyFilename), and the file does not exist:
' new speech.SpeechClient({keyFile:"my.json"});'
causes:
UnhandledPromiseRejectionWarning
How is the caller supposed to catch or handle this? Does the returned SpeechClient object expose a promise that can be acted upon?
The text was updated successfully, but these errors were encountered: