Skip to content

Bad credentials (or missing) throws UnhandledPromiseRejectionWarning #440

@kidplug

Description

@kidplug

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?

Metadata

Metadata

Labels

🚨This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions