Class PineconeEnvironmentVarsNotSupportedError

This error occurs when the client tries to read environment variables in an environment that does not have access to the Node.js global process.env.

If you are seeing this error, you will need to configure the client by passing configuration values to the Pinecone constructor.

import { Pinecone } from '@pinecone-database/pinecone';

const pinecone = new Pinecone({
apiKey: 'YOUR_API_KEY',
})

See

Instructions for configuring Pinecone

Hierarchy

Constructors

Properties

cause?: Error

The underlying error, if any.

message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void