I’m facing a persistent issue while working with Pinecone and Next.js 13. I’m trying to perform an upsert
to a Pinecone index from a backend developed with Next.js 13, but I keep getting the following error:
roject Context:
- I’m using Next.js 13 with the new file structure (
app/api
) to set up API Routes. - I’m using Pinecone’s official SDK (
@pinecone-database/pinecone
). - I’ve set up the API Route to handle
GET
andPOST
methods. TheGET
method lists the available indexes and seems to work fine.
Error saving embedding to Pinecone: A call to https://‘…’-‘//’'.pinecone.io/indexes/dev returned HTTP status 404.