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

handle InvalidRequestError when saving #46

Merged
merged 1 commit into from
Feb 18, 2022

Conversation

tdquan
Copy link
Collaborator

@tdquan tdquan commented Feb 18, 2022

For cases like this

Task tasks.providers.modify_providers_with_reset_calls_count[e8fddb0f-5b58-454c-9a0e-cfca0f856fd7] raised unexpected: 
InvalidRequestError('This Session\'s transaction has been rolled back due to a previous exception during flush. To begin a new 
transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush;
 consider using a session.no_autoflush block if this flush is occurring prematurely)\n(psycopg2.errors.StringDataRightTruncation) 
value too long for type character varying(64)

For cases like this
```bash
Task tasks.providers.modify_providers_with_reset_calls_count[e8fddb0f-5b58-454c-9a0e-cfca0f856fd7] raised unexpected: InvalidRequestError('This Session\'s transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)\n(psycopg2.errors.StringDataRightTruncation) value too long for type character varying(64)```
@tdquan tdquan requested a review from Ledoux February 18, 2022 16:13
Copy link
Collaborator

@Ledoux Ledoux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok super !

@tdquan tdquan merged commit 56c86d6 into master Feb 18, 2022
@tdquan tdquan deleted the add-invalid-request-error-handler branch February 18, 2022 16:33
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

Successfully merging this pull request may close these issues.

None yet

2 participants