Skip to content

[BUG]: OpenRouter API configured but router validation fails in npx mode #272

@idevilofhell

Description

@idevilofhell

Describe the bug

I have configured OpenRouter API (OpenAI-compatible endpoint) during setup, but the workflow fails during execution with a custom endpoint validation error.

Even though the API key and base URL are correctly set, Shannon fails to validate the router endpoint.

This issue occurs specifically when running in npx mode with the router enabled.

Steps to reproduce

Run Shannon using npx:
npx @keygraph/shannon start -u http://127.0.0.1:3000 -r "" --router

  1. Wait for containers (temporal + router) to start

  2. Open workflow UI

  3. Observe failure at runPreflightValidation stage

Expected behaviour

Shannon should successfully validate the OpenRouter endpoint and proceed with the workflow execution.

Actual behaviour

Workflow fails with the following error:

Custom endpoint (http://shannon-router:3456) validation failed unexpectedly.
Check your credentials in .env

Failure occurs during runPreflightValidation.

Pre-submission checklist (required)

  • I have searched the existing open issues and confirmed this bug has not already been reported.
  • I am running the latest released version of shannon.

If applicable

  • I have included relevant error messages, stack traces, or failure details.
  • I have checked the workspaces folder for logs and pasted the relevant errors.
  • I have inspected the failed Temporal workflow run and included the failure reason.
  • I have included clear steps to reproduce the issue.
  • I have redacted any sensitive information (tokens, URLs, repo names).

Debugging details

No response

Screenshots

Image Image

CLI mode

npx (@keygraph/shannon)

Provider

Router - OpenRouter

Full command with all flags used (with redactions)

npx @keygraph/shannon start -u http://127.0.0.1:3000 -r "E:\Company Dedicated\juice-shop" --router

OS (with version)

windows 10

Node.js version ('node -v')

Node.js: v20.x

Docker version ('docker -v')

Docker version 29.3.1, build c2be9cc

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions