flanker / flanker/chromadb-admin

`TypeError: Failed to parse URL from 10.152.183.193/api/v2/tenants/khteh`

Open
#12 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
282
Forks
77
PR merge metrics
No merged PRs in 30d

Description

```
⨯ Error: Could not connect to tenant khteh. Are you sure it exists? Underlying error:
TypeError: Failed to parse URL from 10.152.183.193/api/v2/tenants/khteh
at validateTenantDatabase (webpack-internal:///(rsc)/./node_modules/chromadb/dist/chromadb.mjs:10687:11)
at async ChromaClient.listCollections (webpack-internal:///(rsc)/./node_modules/chromadb/dist/chromadb.mjs:12130:5)
at async fetchCollections (webpack-internal:///(rsc)/./src/lib/server/db.ts:41:25)
at async GET (webpack-internal:///(rsc)/./src/app/api/collections/route.ts:17:22)
at async /usr/src/Databases/chromadb-admin/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:53446
at async e_.execute (/usr/src/Databases/chromadb-admin/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:44747)
at async e_.handle (/usr/src/Databases/chromadb-admin/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:54700)
at async doRender (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/base-server.js:1377:42)
at async cacheEntry.responseCache.get.routeKind (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/base-server.js:1599:28)
at async DevServer.renderToResponseWithComponentsImpl (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/base-server.js:1507:28)
at async DevServer.renderPageComponent (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/base-server.js:1924:24)
at async DevServer.renderToResponseImpl (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/base-server.js:1962:32)
at async DevServer.pipeImpl (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/base-server.js:920:25)
at async NextNodeServer.handleCatchallRenderRequest (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/next-server.js:272:17)
at async DevServer.handleRequestImpl (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/base-server.js:816:17)
at async /usr/src/Databases/chromadb-admin/node_modules/next/dist/server/dev/next-dev-server.js:339:20
at async Span.traceAsyncFn (/usr/src/Databases/chromadb-admin/node_modules/next/dist/trace/trace.js:154:20)
at async DevServer.handleRequest (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/dev/next-dev-server.js:336:24)
at async invokeRender (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/lib/router-server.js:174:21)
at async handleRequest (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/lib/router-server.js:353:24)
at async requestHandlerImpl (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/lib/router-server.js:377:13)
at async Server.requestListener (/usr/src/Databases/chromadb-admin/node_modules/next/dist/server/lib/start-server.js:141:13)
GET /api/collections?connectionString=10.152.183.193&tenant=khteh&database=LLM-RAG-Agent 500 in 4ms
```

![Image](https://github.com/user-attachments/assets/d687100d-dd3a-4191-b4b9-d1078d4fd9fa)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in src/lib/server/db.ts at line 41 and src/app/api/collections/route.ts at line 17, then reproduce the GET request shown with the connectionString, tenant, and database parameters. Trace how the connection string becomes the Chroma tenant URL; done means a valid connection no longer produces the URL parsing error and the collections endpoint responds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
api, backend, databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.