-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
langgraph-checkpoint-postgres (psycopg.OperationalError: sending query and params failed: SSL error: bad length) encountered across multiple version #3716
Comments
I have the exact same issue. Some times, and I can't figure out exactly when to properly reproduce it, the following is logged:
And then there is a failure:
|
any chance you might be running out of disk space? saw this https://stackoverflow.com/questions/63028407/psycopg2-databaseerror-ssl-error-bad-length, not 100% sure if this is relevant |
At least on my side I don't think that's it. This only happens sometimes, not on all requests... The log messages below always precede the psycopg.OperationalError. Those two messages appear and then, when after that a request comes and is processed it blows up like this in the middle of processing when it's storing the checkpoint.
If at least we could handle this issue, then at least we could mitigate it. Like this some requests fail because it blows up in the middle with no way to deal with it. |
@antonioalegria any chance you have really large messages in react agent? potentially tool messages with large content? |
Yes, there is that chance, definitely. |
I'm also exploring this idea.. great chat btw |
Do you need any more info? |
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
Faced the below issue with langgraph-checkpoint-postgres:
psycopg.OperationalError: sending query and params failed: SSL error: bad length
SSL SYSCALL error: EOF detected
NOTE:
I have tried with multiple langgraph-checkpoint-postgres i.e 2.0.11, 2.0.9, 2.0.13, 2.0.15
System Info
langchain = "0.3.11"
langchain-community = "0.3.11"
langchain-experimental = "0.3.3"
langchain-openai = "0.2.12"
langchain-postgres = "0.0.12"
langgraph = "0.2.58"
psycopg = { extras = ["binary"], version = "3.2.3" }
psycopg-pool = "3.2.3"
sqlalchemy = { version = "2.0.36", extras = ["asyncio"] }
sqlmodel = "0.0.22"
asyncpg = "0.30.0"
langgraph-checkpoint-postgres = "2.0.15"
The text was updated successfully, but these errors were encountered: