Getting 401 Unauthorized errors after migrating to serverless from gcp-starter

We recently migrated from gcp-starter to serverless. Now I am seeing the following error:

HTTP response headers: HTTPHeaderDict({‘x-pinecone-auth-rejected-reason’: ‘Malformed domain’, ‘www-authenticate’: ‘Malformed domain’, ‘Content-Length’: ‘12’, ‘content-type’: ‘text/plain’, ‘date’: ‘Sat, 05 Apr 2025 00:39:32 GMT’, ‘server’: ‘envoy’, ‘Via’: ‘1.1 google’, ‘Alt-Svc’: ‘h3=“:443”; ma=2592000,h3-29=“:443”; ma=2592000’})

HTTP response body: Unauthorized

What could be causing this?

Thanks for reaching out -
This is likely caused by a misconfiguration in the hostname you are using to connect to the Pinecone index. Make sure that you are either using one of our supported SDKs which will automatically resolve the correct hostname, or if you are connecting directly via HTTP, get the updated hostname from the console (or describe-index API) and then update your application accordingly.

If these still do not resolve the issue, please feel free to open a ticket with the details and I will investigate further.

See also Convert a gcp-starter index to serverless - Pinecone Docs