Skip to content

Troubleshooting

Run:

Terminal window
uv run komodo login

Complete the browser OAuth flow. If you use multiple Komodo environments, set KOMODO_ENVIRONMENT to integration or production consistently for both CLI and SDK (see Authentication).

Wrong or missing account (UnsetAccountError)

Section titled “Wrong or missing account (UnsetAccountError)”

You may see: An account_id was not passed and could not be read from the SDK client session.

  1. Run
    Terminal window
    uv run komodo account set
    and pick an account.
  2. Or pass account_id= into get_snowflake_connection(...) (and JWT or M2M credentials as needed).

See Accounts.

If you use KOMODO_CREDENTIALS_PATH, the CLI and SDK must agree on the same path. See Credentials file configuration.

M2M: ValueError about JWT vs client secret

Section titled “M2M: ValueError about JWT vs client secret”

You cannot pass both jwt and client_id/client_secret. Use one auth mode only. See Authentication types.


Connection works but queries fail (database / role / syntax)

Section titled “Connection works but queries fail (database / role / syntax)”
  • Run USE DATABASE, USE SCHEMA, and USE ROLE as required for your account. Examples use DATA and roles your admin assigned.
  • Prefer starting with INFORMATION_SCHEMA queries from the Quickstart and Executing Queries guides.

Use Async Queries with execute_query_async for submit-and-poll flows. Remember blocking I/O behavior described there.

If pandas warns about non-SQLAlchemy connectables, the connection is still valid. See Pandas Integration.


  • cwd in MCP config must be the project directory where uv can run komodo (directory with pyproject.toml that depends on komodo).
  • Use the same command / args as in MCP Server (uv run komodo mcp run).

MCP subprocesses do not inherit your shell. Set KOMODO_ENVIRONMENT in the MCP env block if you need integration.

Re-run

Terminal window
uv run komodo account set
and confirm the account matches what you expect. In Komodo internal environments, extra MCP tools may be available when internal extensions are installed.


The SDK requires Python 3.10+. See Installation.