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

Circuit Breaker error #1

Open
retdude opened this issue Feb 26, 2025 · 2 comments
Open

Circuit Breaker error #1

retdude opened this issue Feb 26, 2025 · 2 comments

Comments

@retdude
Copy link

retdude commented Feb 26, 2025

When I run the eliza code with this adapter I get the following error:

 ["✓ Successfully connected to PostgreSQL database"] 

 ["◎ Chat started. Type 'exit' to quit."] 

You: [2025-02-26 19:03:49] ERROR: Error in getCachedEmbeddings:
    tableName: "messages"
    fieldName: "content"
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:49] WARN: Database operation failed (attempt 1/3):
    nextRetryIn: "1.6s"
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:49] ERROR: Error in getCachedEmbeddings:
    tableName: "messages"
    fieldName: "content"
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:49] WARN: Database operation failed (attempt 1/3):
    nextRetryIn: "1.4s"
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:50] ERROR: Error in getCachedEmbeddings:
    tableName: "messages"
    fieldName: "content"
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:50] WARN: Database operation failed (attempt 2/3):
    nextRetryIn: "2.9s"
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:50] ERROR: Error in getCachedEmbeddings:
    tableName: "messages"
    fieldName: "content"
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:50] WARN: Database operation failed (attempt 2/3):
    nextRetryIn: "2.5s"
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:53] ERROR: Error in getCachedEmbeddings:
    tableName: "messages"
    fieldName: "content"
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:53] ERROR (error): Error generating new tweet:
    length: 129
    severity: "ERROR"
    code: "22023"
    file: "levenshtein.c"
    line: "131"
    routine: "varstr_levenshtein"
[2025-02-26 19:03:53] ERROR: Max retry attempts reached:
    totalAttempts: 3
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:53] ERROR: Circuit breaker error in getCachedEmbeddings:
    state: "CLOSED"
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:53] ERROR: Error in getCachedEmbeddings:
    tableName: "messages"
    fieldName: "content"
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:53] ERROR (error): Error generating new tweet:
    length: 129
    severity: "ERROR"
    code: "22023"
    file: "levenshtein.c"
    line: "131"
    routine: "varstr_levenshtein"
[2025-02-26 19:03:53] ERROR: Max retry attempts reached:
    totalAttempts: 3
    error: "levenshtein argument exceeds maximum length of 255 characters"
[2025-02-26 19:03:53] ERROR: Circuit breaker error in getCachedEmbeddings:
    state: "CLOSED"
    error: "levenshtein argument exceeds maximum length of 255 characters"

It seems the moment it connects to my database it crashes. I don't know how to fix, or even test this. does anybody have any ideas?

@Provoo
Copy link

Provoo commented Mar 3, 2025

@retdude I don't have the full response, but we also experiment this issue in supabase-adapter, could you check this commit, to see if the same change fix this problem.

@soyrubio
Copy link

soyrubio commented Mar 7, 2025

Also encountered this issue 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants