Unable to Connect Pinecone to n8n: 401 Unauthorized and API Key Issues

Describe the problem/error/question

I am encountering issues when trying to connect Pinecone to n8n. The main issue is that I cannot add the API key to the credentials section. Additionally, I receive a 401 Unauthorized error when trying to access Pinecone via HTTP requests in n8n, even though my API key is valid.

What is the error message ?

401 Unauthorized

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.72.1 (Cloud)
  • Database: N/A (Cloud Version)
  • n8n EXECUTIONS_PROCESS setting: Default (Cloud)
  • Running n8n via: n8n Cloud
  • Operating system: Cloud (No local OS)

Additional Issue

I am unable to add the API key under credentials, which might be causing the issue.

Could the issue be related to the trial version of n8n, or is there something else I might be missing in the API key setup? How can I resolve the authorization failure?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
  • n8n version: 1.72.1 (Cloud)
  • Database: N/A (Cloud Version)
  • n8n EXECUTIONS_PROCESS setting: Default (Cloud)
  • Running n8n via: n8n Cloud
  • Operating system: Cloud (No local OS)

Be careful with screenshots of api keys. you should reset that key, some of it is visible.

I don’t think you need the “Bearer” with pinecone.

Here is the curl from their docs:

curl -s "https://api.pinecone.io/indexes" \
    -H "Api-Key: YOUR_API_KEY" \  < -------- no Bearer
   ...

try to add it without the “Bearer”. and best practice is to use api keys in the credentials, otherwise it will be stored in plain text unencrypted.

Thank you for the heads-up, I’ll reset the API key. You’re right, the ‘Bearer’ is not needed for Pinecone. I’ll also set up the API keys in the credentials for better security. Also, I noticed there’s a Pinecone vector store available for managing connections with Pinecone natively. Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.