简体   繁体   中英

Current transaction is aborted, commands ignored until end of transaction

sql: 'select * from "jobs" where "type" =? and (meta->>\'Id\')::UUID =? limit?' } 200415/014921.244, [log,error,sqs-consumer] message: select * from "jobs" where "type" = $1 and (meta->>'Id')::UUID = $2 limit $3 - current transaction is aborted, commands ignored until end of transaction block, stack: error: current transaction is aborted, commands ignored until end of transaction block at Connection.parseE (/home/ubuntu/server/node_modules/pg/lib/connection.js:604:11)

If a statement in a transaction causes an error, the transaction is aborted. All following statements in the same transaction will cause the error you observe. The transaction is doomed and can only be rolled back.

You should handle errors caused by SQL statements and roll back the transaction when they happen.

The issue is fixed, I had to clear out all the jobs, and the application is up and running in Stage now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM