Skip to content

ECONNREFUSED Prisma error when checking subscription, CLI always reports "You don't have an active subscription" #254

Description

@mister-tortoise
Image

Hi team,

I'm experiencing an issue when using the latest version of the Supercode CLI.

After starting the CLI, it fails while checking my subscription and prints the following error:

[subscription-check] DB error: PrismaClientKnownRequestError

code: 'ECONNREFUSED'
meta: { modelName: 'Subscription' }
clientVersion: '7.8.0'

You don't have an active subscription. Run /upgrade to subscribe to Spark Premium ($1/mo) and start using the CLI.
Environment
OS: macOS
Node.js: v22.17.1
npm: 10.9.2
Supercode CLI: latest (installed via npm install -g supercode-cli@latest)
What I expected

The CLI should either:

successfully validate my subscription, or
display a clear authentication/subscription error if there is an issue with my account.
What happened

Instead, the CLI throws a Prisma ECONNREFUSED error during subscription.findFirst() and then reports that I don't have an active subscription.

Questions
Is this a known issue?
Does the CLI require Node.js 24? I noticed an EBADENGINE warning during installation because one dependency requires Node >= 24.
Is this a client-side issue, or is the subscription service/database currently unavailable?
Is there anything I can do to troubleshoot or work around this problem?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions