Hello, I encountered an issue while using the chromadb npm package. Upon investigating the problem, I found that the issue seems to be with the “@hey-api/client-fetch” package, which is not working as expected. It works fine on the client side, but not on the backend. Do you have any suggestions or insights regarding this issue?
import { createClient, createConfig } from '@hey-api/client-fetch'
import { fetch } from 'meteor/fetch'
const configOptions = {
baseUrl: 'https://chroma.recepozen.com',
fetch: fetch,
}
const apiClient = createClient(createConfig(configOptions))
apiClient
.get({ url: '/api/v2/version' })
.then((response) => console.log(response))
.then((result) => console.log(result))
.catch((error) => Logger.error({ err: error }, 'api error'))
[12-06-2025 10:51:01.241] ERROR: api error
err: {
"type": "TypeError",
"message": "Only absolute URLs are supported",
"stack":
TypeError: Only absolute URLs are supported
at getNodeRequestOptions (/Users/recepozen/.meteor/packages/fetch/.0.1.6.1jl6fak2dbx++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/node-fetch/lib/index.js:1327:9)
at /Users/recepozen/.meteor/packages/fetch/.0.1.6.1jl6fak2dbx++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/node-fetch/lib/index.js:1454:19
at new Promise (<anonymous>)
at fetch (/Users/recepozen/.meteor/packages/fetch/.0.1.6.1jl6fak2dbx++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/node-fetch/lib/index.js:1451:9)
at Package.fetch.fetch (packages/montiapm:agent/lib/hijack/http.js:73:27)
at o (/Users/recepozen/bordo/monochat/node_modules/@hey-api/client-fetch/src/client.ts:66:16)
at Object.get (/Users/recepozen/bordo/monochat/node_modules/@hey-api/client-fetch/src/client.ts:167:49)
at imports/managers/ai-manager/server/vector-stores/providers/chroma.ts:322:6
at Function.time (/Users/recepozen/bordo/monochat/.meteor/local/build/programs/server/tools/tool-env/profile.ts:646:30)
at /tools/static-assets/server/boot.js:453:19
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at /tools/static-assets/server/boot.js:503:5
at startServerProcess (/tools/static-assets/server/boot.js:501:3)
}