OpenFn / OpenFn/apollo

vocab mapper: pinecone env var is being loaded wrongly?

Open
#151 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
5
Forks
10
Avg merge
2d 20h
Merged PRs (30d)
17

Description

Not sure what this issue is or where it lives

In production, the pineone api key seems to be loading badly from the env. Somehow an extra line break is added after it.

I've checked the environment with Stu and the value looks correct (no trailing line break)

I'm not sure why the value being loaded into the mapper is corrupted? The code looks totally simple.

Working around this for now by passing the token directly.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the mapper's Pinecone environment-variable loading and compare the value loaded in production with the environment value and the direct-token workaround. Done means the environment-loaded API key has no extra line break and the mapper authenticates successfully.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.