Timeout issue trying to reach my serveless index

Hi there !
Is there a maintenance or anyone experiencing problems accessing their serveless indexes on east-01 today? I can’t access the data in my index.

Hi @patrick.ouate, there is no ongoing maintenance or known issues. Can you please specify the operations you’re performing (share the code) and the full stack trace of the error message?

Hi zeke,

This issue is occuring in each of my procedures trying to connect to my pineconeIndex. The code was working great this morning, and without changes, the problem is now occuring. So I really wonder if there is an issue of my part or there are some maintenance operations on your side.

Anyway here is the code, I’ve bolded the part that generates the timeout error.

const pineconeIndex = pinecone.index(process.env.PINECONE_ENV)

    const embeddings = new GoogleGenerativeAIEmbeddings({
      apiKey: process.env.GOOGLE_API_KEY,
      modelName: 'embedding-001',
    })

    const splitter = RecursiveCharacterTextSplitter.fromLanguage(
      'markdown',
      {
        chunkSize: 8000,
        chunkOverlap: 200,
      },
    )

    const chunks = await splitter.splitDocuments(pageLevelDocs)

    for (let i = 0; i < chunks.length; i++) {
      const chunk = chunks[i]
      console.log(`Traitement du chunk ${i + 1} sur ${chunks.length}`)

      try {
        **await timeoutPromise(**

** PineconeStore.fromDocuments([chunk], embeddings, {**
** pineconeIndex,**
** namespace: createdFile.id,**
** }),**
** 30000, **
** )**
consecutiveErrors = 0
} catch (error) {
console.error(Error processing chunk ${i + 1}:, error)
consecutiveErrors++

        if (consecutiveErrors >= MAX_CONSECUTIVE_ERRORS) {
          console.error(`Trop d'erreurs consécutives. Arrêt du traitement.`)

          throw new Error(
            'Traitement interrompu en raison de multiples erreurs.',
          )
        }
        await new Promise((resolve) => setTimeout(resolve, 5000)) // 5 secondes de pause
      }
    }