Skip to content

Invalid string length #241

Description

@yuyangchee98
Loaded pricing for 1140 models                                                                                                                                     ccusage 8:42:20 PM
node:internal/fs/promises:590
      result += decoder.write(readBuffer);
                        ^

RangeError: Invalid string length

Activity

  1. yuyangchee98 commented on Jul 3, 2025

    @yuyangchee98
    Author

    Ran with: NODE_OPTIONS="--max-old-space-size=81192" ccusage

  2. ryoppippi commented on Jul 4, 2025

    @ryoppippi
    Member

    should fix it. could you give us PR?

  3. ryoppippi commented on Jul 5, 2025

    @ryoppippi
    Member

    @yuyangchee98 so it happens because we have longer logs than before.
    if so , we need to consider using iterators for parsing logs.

  4. haltingstate commented on Oct 23, 2025

    @haltingstate

    I have error too. Its just crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions