Upsert not happening but no error

I am having an issue with pinecone calling it using the nodejs client. I am calling upsert as follows:

await index.namespace(name_space).upsert([{
    id: id,
    values: embedding,
    metadata: {
      unix_epoch: String(new Date(,
      text: chunk,
      mimetype: mimetype,
      document_id: document_id,
  }]).catch((e) => console.log(e));

No error is returned. But when I checked the index in the web console there is nothing there. Very odd!

Hi @rich1 and welcome to the Pinecone community forums!

Thanks for your question.

As a sanity check, can you console.log your embedding, chunk, and document_id values and ensure they’re populated as expected?

Are you able to share more of your relevant code?