Weird openaikey reference error I've never seen before (and can't find online)

Description

Using WCS, SST, and Hono, this example works: Building AI Search APIs with Hono.js | Weaviate

But when I try to connect to my pre-existing collections and do a simple vector search< i get the error “{“error”: “Metadata key ‘x-openai-api-key’ doesn’t end with ‘-bin’, thus it must have string value”}”

Server Setup Information

  • Weaviate Server Version: 1.28.x
  • Deployment Method: WCS
  • Multi Node? Number of Running Nodes: 1
  • Client Language and Version: weaviate-client: 3.3.4
  • Multitenancy?: no

Any additional Information

Something to do with dotenv library I believe. Now failing to find api key in .env.

Switched from this “const openaiKey = process.env.OPENAI_API_KEY as string;” to "const openaiKey = process.env.OPENAI_API_KEY || “”;

Sigh, deprecated api key…

@weisisheng thank you for letting us know the reason! I am glad to hear you got it resolved.