Skip to content

RPC error: RangeError: Maximum call stack size exceeded #430

@kchro3

Description

@kchro3

I continue to see this type of error:

✘ [ERROR] RPC error: RangeError: Maximum call stack size exceeded

      at Bl.<anonymous>
  (file:///.../node_modules/agents/src/index.ts:276:25)
      at null.<anonymous>
  (file:///.../node_modules/agents/src/index.ts:277:21)
      at Bl.<anonymous>
  (file:///.../node_modules/agents/src/index.ts:276:25)
      at null.<anonymous>
  (file:///.../node_modules/agents/src/index.ts:277:21)
      at Bl.<anonymous>
  (file:///.../node_modules/agents/src/index.ts:276:25)
      at null.<anonymous>
  (file:///.../node_modules/agents/src/index.ts:277:21)
      at Bl.<anonymous>
  (file:///.../node_modules/agents/src/index.ts:276:25)
      at null.<anonymous>
  (file:///.../node_modules/agents/src/index.ts:277:21)
      at Bl.<anonymous>
  (file:///.../node_modules/agents/src/index.ts:276:25)
      at null.<anonymous>
  (file:///.../node_modules/agents/src/index.ts:277:21)

It happens intermittently and not in an easily reproducible way. It has been reported a few times in the Discord channel. Would like to request that the withAgentContext is not autowrapped. This makes it even harder to trace what is causing the failures, and I think it should be opt-in via decorator if I want to call getCurrentAgent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions