This error is thrown when the client attempts to make a request and never receives any response.
This could be due to:
The cause property will contain a reference to the underlying error. Inspect its value to find out more about the root cause of the error.
cause
import { Pinecone } from '@pinecone-database/pinecone';const p = new Pinecone({ apiKey: 'invalid-api-key-value' })try { await p.listIndexes();} catch (e) { console.log(e.name); // PineconeConnectionError console.log(e.cause); // Error [FetchError]: The request failed and the interceptors did not return an alternative response console.log(e.cause.cause); // TypeError: fetch failed console.log(e.cause.cause.cause); // Error: getaddrinfo ENOTFOUND controller.wrong-environment.pinecone.io} Copy
import { Pinecone } from '@pinecone-database/pinecone';const p = new Pinecone({ apiKey: 'invalid-api-key-value' })try { await p.listIndexes();} catch (e) { console.log(e.name); // PineconeConnectionError console.log(e.cause); // Error [FetchError]: The request failed and the interceptors did not return an alternative response console.log(e.cause.cause); // TypeError: fetch failed console.log(e.cause.cause.cause); // Error: getaddrinfo ENOTFOUND controller.wrong-environment.pinecone.io}
Pinecone's status page
Optional
The underlying error, if any.
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
This error is thrown when the client attempts to make a request and never receives any response.
This could be due to:
The
cause
property will contain a reference to the underlying error. Inspect its value to find out more about the root cause of the error.See
Pinecone's status page