-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
What component(s) are affected?
- Opik Python SDK
- Opik Typescript SDK
- Opik Agent Optimizer SDK
- Opik UI
- Opik Server
- Documentation
Opik version
- Opik version: 1.8.66. It doesn't occur with 1.8.65
Describe the problem
Error: OPIK_API_KEY is not set
is thrown even just importing opik
import "opik";
I believe it should be thrown on initializing Opik client new Opik
with invalid args.
Reproduction steps and code snippets
Clone https://github.com/mtsmfm/opik-key-error, npm install
and node index.mjs
Error logs or stack trace
Error: OPIK_API_KEY is not set
at Sm (file:///home/mtsmfm/ghq/github.com/mtsmfm/opik-key-error/node_modules/opik/dist/chunk-ULWCXRRD.js:1:2109)
at Vc (file:///home/mtsmfm/ghq/github.com/mtsmfm/opik-key-error/node_modules/opik/dist/chunk-ULWCXRRD.js:1:1965)
at new Re (file:///home/mtsmfm/ghq/github.com/mtsmfm/opik-key-error/node_modules/opik/dist/chunk-ULWCXRRD.js:4:13450)
at file:///home/mtsmfm/ghq/github.com/mtsmfm/opik-key-error/node_modules/opik/dist/chunk-ULWCXRRD.js:4:16577
at ModuleJob.run (node:internal/modules/esm/module_job:371:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:683:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
Node.js v24.7.0
Healthcheck results
No response