PineconeError: PineconeClient: Error calling upsert: PineconeError: undefined

am creating embedding using langchain the dimension is 1536
I can created the index using nodejs and its perfectly running fine but when I call PineconeStore.fromDocuments() its returning
PineconeError: PineconeClient: Error calling upsert: PineconeError: undefined
I even tried manually with await index.upsert({ upsertRequest }); manually to push vector to pinecone but its not working or the issue is only with asia-northeast1-gcp environment ?

here is the code with langchain:

import { PineconeClient } from "@pinecone-database/pinecone";
import * as dotenv from "dotenv";
import { Document } from "langchain/document";
import { OpenAIEmbeddings } from "langchain/embeddings/openai";
import { PineconeStore } from "langchain/vectorstores/pinecone";

dotenv.config();

const client = new PineconeClient();
await client.init({
    apiKey: process.env.PINECONE_API_KEY,
    environment: process.env.PINECONE_ENVIRONMENT,
});
const pineconeIndex = client.Index("new");

const docs = [
    new Document({
        metadata: { foo: "bar" },
        pageContent: "pinecone is a vector db",
    }),
    new Document({
        metadata: { foo: "bar" },
        pageContent: "the quick brown fox jumped over the lazy dog",
    })
];

await PineconeStore.fromDocuments(docs, new OpenAIEmbeddings(), {  pineconeIndex,});

here is the code that I did manually

import { PineconeClient } from "@pinecone-database/pinecone";
import * as dotenv from "dotenv";
import { OpenAIEmbeddings } from "langchain/embeddings/openai";

dotenv.config();

const client = new PineconeClient();
await client.init({
    apiKey: process.env.PINECONE_API_KEY,
    environment: process.env.PINECONE_ENVIRONMENT,
});

const embedd = new OpenAIEmbeddings()
const data = await embedd.embedQuery('Hi')
console.log(data);

const index = client.Index("new");
// console.log(index);
const upsertRequest = {
    vectors: [
        {
            id: "vec1",
            values: data,
        },
    ],
    namespace: "give_me",
};
const upsertResponse = await index.upsert({ upsertRequest });

its fixed just change the environment to us server

Can you pls explain what you did? DId you force the environment to be us-west1-gcp? My env is asia-northeast1-gcp

pinecone.init(
api_key=PINECONE_API_KEY, # find at app.pinecone.io
environment=PINECONE_API_ENV # next to api key in console
)

Same here! Can we just check the environment

delete your index if you have created
go to organization > project
delete existing project
create new one with us server

Cannot delete the index…there is an ongoing issue going on
Investigating - We are currently investigating an issue with API keys in the asia-northeast1-gcp environment. Customers may see an increased number of 401 errors in this environment and a spinning icon when accessing the Indexes page for projects hosted there on the console.

hope it will be fixed soon
Identified - We have identified the issue causing problems with API keys in asia-northeast1-gcp. For the time being, we recommend that affected customers create a new project in a different region. If you run into difficulty doing so, please visit https://support.pinecone.io.

We cannot create a new project since we cannot delete the existing index only after which it will allow us to create a new project

Same issue here! Can’t do any thing until that is resolved unless create new account or upgrade?

try with nodejs
delete your index by

import { PineconeClient } from "@pinecone-database/pinecone";

const pinecone = new PineconeClient();
await pinecone.init({
  environment: "YOUR_ENVIRONMENT",
  apiKey: "YOUR_API_KEY",
});

await pinecone.deleteIndex({
  indexName: "your-index-name",
});

node js https://docs.pinecone.io/docs/node-client.