You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npx [email protected]
WARN Fetching latest model pricing from LiteLLM... ccusage 9:51:42 AM
ℹ Loaded pricing for 1667 models ccusage 9:51:42 AM
node:internal/fs/promises:585
result += decoder.write(readBuffer);
^
RangeError: Invalid string length
at readFileHandle (node:internal/fs/promises:585:25)
at async loadDailyUsageData (file:///home/jsell/.npm/_npx/86ddde3d5ecc57c4/node_modules/ccusage/dist/data-loader-BGg_9orY.js:3557:19)
at async Object.run (file:///home/jsell/.npm/_npx/86ddde3d5ecc57c4/node_modules/ccusage/dist/index.js:4506:21)
at async executeCommand (file:///home/jsell/.npm/_npx/86ddde3d5ecc57c4/node_modules/ccusage/dist/index.js:881:2)
at async cli (file:///home/jsell/.npm/_npx/86ddde3d5ecc57c4/node_modules/ccusage/dist/index.js:794:2)
at async run (file:///home/jsell/.npm/_npx/86ddde3d5ecc57c4/node_modules/ccusage/dist/index.js:6391:2)
at async file:///home/jsell/.npm/_npx/86ddde3d5ecc57c4/node_modules/ccusage/dist/index.js:6399:1
Node.js v22.16.0
Same issue on v17.1.3. I have a session file that is 585MB causing this error.
Would love to see this fixed as large projects like this are most critical to keep tabs on costs.
Activity
PaulRBerg commentedon Sep 11, 2025
Also getting this error in Warp and iTerm2
Env:
jsell-rh commentedon Oct 18, 2025
Same issue on v17.1.3. I have a session file that is 585MB causing this error.
Would love to see this fixed as large projects like this are most critical to keep tabs on costs.