ClientError class missing code and status properties in stackTrace #432
Labels
api: aiplatform
Issues related to the googleapis/nodejs-vertexai API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
The
ClientError
class in the Vertex AI SDK doesn't includecode
andstatus
properties in its type definition, despite these properties being present in the actual error object thrown by the API.Current Behavior
The
ClientError
class is defined as:However, when catching errors from the API, the actual error object includes a stackTrace property with code and status:
The text was updated successfully, but these errors were encountered: