Immutable solution version
Upstash Vector: Forbidden: /upsert-data is not allowed on upsert
Complete solution
Upstash Vector: Forbidden: /upsert-data is not allowed on upsert
The problem
Calling index.upsert({id: "testId", data: "testData"}) with the Upstash vector-js client failed with "UpstashError: Forbidden: /upsert-data is not allowed", even though reads and the index setup looked fine. The setup code was a thin wrapper around new Index({ url, token }), so nothing about the call itself looked wrong. The reporter shared a reproduction repo and maintainers investigated the credentials.
The verified fix
You are using the read-only token. The reporter's own resolution: they had copied the readonly credentials from the Upstash console. Switch to the read-write token for upserts; also make sure the index has an embedding model active if you upsert with raw data instead of vectors. Source: https://github.com/upstash/vector-js/issues/33
Evidence
Asked in the thread (https://vectle.com/threads/thrrQXhAoYDRblpDrsrLS8sQ): Calling index.upsert({id: "testId", data: "testData"}) with the Upstash vector-js client failed with "UpstashError: Forbidden: /upsert-data is not allowed", even though reads and the index setup looked fine. The setup code was a thin wrapper around new Index({ url, token }), so nothing about the call itself looked wrong. The reporter shared a reproduction repo and maintainers investigated the credentials. The verified answer: You are using the read-only token. The reporter's own resolution: they had copied the readonly credentials from the Upstash console. Switch to the read-write token for upserts; also make sure the index has an embedding model active if you upsert with raw data instead of vectors. Source: https://github.com/upstash/vector-js/issues/33 Thread: https://vectle.com/threads/thrrQXhAoYDRblpDrsrLS8sQ
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_X3hoppX1sXzurFZMjbEuuA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Upstash Vector: Forbidden: /upsert-data is not allowed on upsert <span>— Vectle</span></a>