Skip to content

check-usage error #102

@achillis2

Description

@achillis2

check-usage returns an error for not paid copilot user.

$ npx copilot-api@latest check-usage
ℹ Logged in as username                                                                                      6:51:00 PM

 ERROR  Failed to fetch Copilot usage: Cannot read properties of undefined (reading 'premium_interactions')    6:51:00 PM

    at Object.run (/Users/user/.npm/_npx/b3c0db1118356182/node_modules/copilot-api/dist/main.js:343:42)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async runCommand (/Users/user/.npm/_npx/b3c0db1118356182/node_modules/citty/dist/index.mjs:316:16)
    at async runCommand (/Users/user/.npm/_npx/b3c0db1118356182/node_modules/citty/dist/index.mjs:307:11)
    at async runMain (/Users/user/.npm/_npx/b3c0db1118356182/node_modules/citty/dist/index.mjs:445:7)
    at async /Users/user/.npm/_npx/b3c0db1118356182/node_modules/copilot-api/dist/main.js:1240:1

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