Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent Maximum Recursion Depth Reached Error #1275

Open
jaineshp opened this issue Feb 23, 2025 · 1 comment
Open

Intermittent Maximum Recursion Depth Reached Error #1275

jaineshp opened this issue Feb 23, 2025 · 1 comment
Labels
need-more-info waiting on more info from requester

Comments

@jaineshp
Copy link

Behavior

  1. Noticing Maximum Recursion Depth Reached Error intermittently for calls longer than ~1.5 mins
  2. After 1-1.5 mins: Bot stops speaking, and after I disconnect the call I get the following trace (attached below)

Seeing this error recently, had made following changes:

  1. Moved to Version 57
  2. Added Sentry SDK
  3. Enabled Metrics (enable_metrics=True, enable_usage_metrics=True, report_only_initial_ttfb=False)
  4. Added STT Mute Filter Strategy

Setup:
Using a simple pipeline for Outbound Calling (Deepgram + OpenAI + 11Labs)

pipeline = Pipeline([
        transport.input(),  # Websocket input from client
        user_idle,  # Idle user check-in
        stt_mute_processor,  # Add mute processor before STT
        stt,  # Speech-To-Text
        transcript.user(),  # User transcripts
        context_aggregator.user(),
        llm,  # LLM
        tts,  # Text-To-Speech
        transport.output(),  # Transport bot output
        transcript.assistant(),  # Assistant transcripts
        context_aggregator.assistant(),  # Assistant spoken responses
    ])

message.txt

@markbackman
Copy link
Contributor

Would you mind sharing repro steps for how you hit this issue?

@chadbailey59 chadbailey59 added the need-more-info waiting on more info from requester label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-more-info waiting on more info from requester
Projects
None yet
Development

No branches or pull requests

3 participants