Error map

idle-in-transaction timeout FATAL: terminating connection due to idle-in-transaction timeout

PostgreSQL · layer 5, Data

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

idle-in-transaction timeout — FATAL: terminating connection due to idle-in-transaction timeout (PostgreSQL)idle-in-tra…upstream timed out — Nginx: upstream timed out (110: Connection timed out) while reading response header from upstream (Nginx / Apache)upstream timed outETIMEDOUT — API Request Timed Out (ETIMEDOUT / ReadTimeout / timeout of 30000ms exceeded) (API)ETIMEDOUT522 — Cloudflare Error 522: Connection Timed Out (Cloudflare)52225P02 — ERROR: current transaction is aborted, commands ignored until end of transaction block (PostgreSQL)25P0257014 — ERROR: canceling statement due to statement timeout (PostgreSQL)57014NSURLErrorDomain Code=-1001 — Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." (iOS)NSURLErrorDomain Co…HttpClient.Timeout — TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing (.NET)HttpClient.Timeout524 — Cloudflare Error 524: A Timeout Occurred (Cloudflare)524DEADLINE_EXCEEDED — gRPC Error: 4 DEADLINE_EXCEEDED: Deadline exceeded (API)DEADLINE_EXCEEDED40001 — ERROR: could not serialize access due to concurrent update (PostgreSQL)40001Task timed out — AWS Lambda: Task timed out after X seconds (AWS)Task timed outEndpoint request timed out — API Gateway: {"message": "Endpoint request timed out"} (504 after 29 seconds) (AWS)Endpoint request ti…2006 — MySQL ERROR 2006 (HY000): MySQL server has gone away (MySQL)2006408 — HTTP 408 Request Timeout (HTTP)408502 — HTTP 502 Bad Gateway (HTTP)502ECONNREFUSED — Error: connect ECONNREFUSED 127.0.0.1:5432 (Node.js)ECONNREFUSED504 — HTTP 504 Gateway Timeout (HTTP)504CERTIFICATE_VERIFY_FAILED — SSL: CERTIFICATE_VERIFY_FAILED / unable to get local issuer certificate (API)CERTIFICATE_VERIFY_…520 — Cloudflare Error 520: Web Server Returned an Unknown Error (Cloudflare)520521 — Cloudflare Error 521: Web Server Is Down (Cloudflare)521ConnectException — java.net.ConnectException: Connection refused (Java)ConnectExceptionDeadlock — Deadlock found when trying to get lock; try restarting transaction (SQL)DeadlockLock wait timeout — Lock wait timeout exceeded; try restarting transaction (MySQL 1205) (SQL)Lock wait timeout1213 — MySQL ERROR 1213 (40001): Deadlock found when trying to get lock; try restarting transaction (MySQL)1213304 — HTTP 304 Not Modified (HTTP)304out of shared memory — ERROR: out of shared memory — HINT: You might need to increase max_locks_per_transaction. (PostgreSQL)out of shared memoryprepared statement exists — ERROR: prepared statement "s1" already exists (PgBouncer transaction mode) (PostgreSQL)prepared statement …499 — HTTP 499 Client Closed Request (Nginx) (HTTP)499Maximum execution time — PHP Fatal error: Maximum execution time of 30 seconds exceeded (PHP)Maximum execution t…2013 — MySQL ERROR 2013 (HY000): Lost connection to MySQL server during query (MySQL)2013TimeoutException — java.util.concurrent.TimeoutException (Java)TimeoutExceptioncURL error 28 — cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received (PHP)cURL error 28Execution Timeout Expired — SQL Server: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. (SQL)Execution Timeout E…N+1 queries — Performance: N+1 query problem (one query per row in a loop) (SQL)N+1 queriespool timeout — Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. All pooled connections were in use and max pool size was reached. (SQL)pool timeoutSending build context — Docker build slow: "Sending build context to Docker daemon 2.5GB" / transferring context takes forever (Docker)Sending build conte…14 UNAVAILABLE — gRPC Error: 14 UNAVAILABLE: No connection established / failed to connect to all addresses (API)14 UNAVAILABLE12 UNIMPLEMENTED — gRPC Error: 12 UNIMPLEMENTED: unknown service x / Method not found (API)12 UNIMPLEMENTEDReceived message larger than max — gRPC Error: 8 RESOURCE_EXHAUSTED: Received message larger than max (x vs. 4194304) (API)Received message la…409 — HTTP 409 Conflict (HTTP)409ConcurrentModificationException — java.util.ConcurrentModificationException (Java)ConcurrentModificat…412 — HTTP 412 Precondition Failed (HTTP)412ThrottlingException — AWS: ThrottlingException / Rate exceeded (AWS)ThrottlingExceptionRuntime exited with error: signal: killed — Lambda: Runtime exited with error: signal: killed (Runtime.ExitError) (AWS)Runtime exited with…RequestEntityTooLargeException — Lambda: Request must be smaller than 6291456 bytes for the InvokeFunction operation (RequestEntityTooLargeException) (AWS)RequestEntityTooLar…Malformed Lambda proxy response — API Gateway {"message": "Internal server error"} 502 — Malformed Lambda proxy response (AWS)Malformed Lambda pr…not authorized to access this resource — API Gateway 403: User is not authorized to access this resource with an explicit deny (AWS)not authorized to a…AWS.SimpleQueueService.NonExistentQueue — SQS: The specified queue does not exist (AWS.SimpleQueueService.NonExistentQueue / QueueDoesNotExist) (AWS)AWS.SimpleQueueServ…

Directly related (12)

upstream timed outNginx / Apache

Nginx: upstream timed out (110: Connection timed out) while reading response header from upstream

Nginx waited longer than proxy_read_timeout (60 s default) for the backend (app server, PHP-FPM) to respond, then returned 504.

ETIMEDOUTAPI

API Request Timed Out (ETIMEDOUT / ReadTimeout / timeout of 30000ms exceeded)

The client gave up waiting — either for the connection to open or for the response to arrive.

522Cloudflare

Cloudflare Error 522: Connection Timed Out

Cloudflare’s TCP connection to your origin timed out — the origin didn’t answer at all.

25P02PostgreSQL

ERROR: current transaction is aborted, commands ignored until end of transaction block

An earlier statement in the same transaction failed; PostgreSQL rejects everything until you ROLLBACK.

57014PostgreSQL

ERROR: canceling statement due to statement timeout

A query ran longer than statement_timeout and PostgreSQL cancelled it.

NSURLErrorDomain Code=-1001iOS

Error Domain=NSURLErrorDomain Code=-1001 "The request timed out."

The server didn’t respond within URLSession’s timeout (60 s default) — slow server, unreachable host on this network, or a stalle…

HttpClient.Timeout.NET

TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing

The HTTP call took longer than HttpClient.Timeout (100 s default), so .NET cancelled it.

524Cloudflare

Cloudflare Error 524: A Timeout Occurred

Cloudflare connected to the origin, but the origin didn’t send an HTTP response within 100 seconds.

DEADLINE_EXCEEDEDAPI

gRPC Error: 4 DEADLINE_EXCEEDED: Deadline exceeded

The call didn’t complete before the client’s deadline — slow server, network issues, or a deadline that’s too short.

40001PostgreSQL

ERROR: could not serialize access due to concurrent update

A REPEATABLE READ/SERIALIZABLE transaction conflicted with a concurrent one and must be retried.

Task timed outAWS

AWS Lambda: Task timed out after X seconds

The function ran longer than its configured timeout (default 3 seconds) and Lambda stopped it.

Endpoint request timed outAWS

API Gateway: {"message": "Endpoint request timed out"} (504 after 29 seconds)

The backend (usually Lambda) didn’t respond within API Gateway’s integration timeout (29 seconds by default for REST APIs).

Two steps away (36)

2006MySQL

MySQL ERROR 2006 (HY000): MySQL server has gone away

The connection to MySQL was closed — usually by a timeout or a packet larger than `max_allowed_packet`.

408HTTP

HTTP 408 Request Timeout

The server closed the connection because the client took too long to send the complete request.

502HTTP

HTTP 502 Bad Gateway

A proxy or gateway (Nginx, load balancer, CDN) got an invalid response — or no response — from the upstream server behind it.

ECONNREFUSEDNode.js

Error: connect ECONNREFUSED 127.0.0.1:5432

Nothing is listening at that host:port — the target service is down or you’re connecting to the wrong address.

504HTTP

HTTP 504 Gateway Timeout

A proxy or gateway waited too long for the upstream server to respond and gave up.

CERTIFICATE_VERIFY_FAILEDAPI

SSL: CERTIFICATE_VERIFY_FAILED / unable to get local issuer certificate

The client couldn’t verify the server’s TLS certificate chain, so it refused the HTTPS connection.

520Cloudflare

Cloudflare Error 520: Web Server Returned an Unknown Error

Cloudflare connected to your origin, but the origin returned an empty, unknown or invalid response.

521Cloudflare

Cloudflare Error 521: Web Server Is Down

Cloudflare couldn’t connect to your origin — the connection was refused.

ConnectExceptionJava

java.net.ConnectException: Connection refused

Nothing is listening at the host:port the Java client connected to.

DeadlockSQL

Deadlock found when trying to get lock; try restarting transaction

Two transactions waited on each other’s locks; the database killed one so the other could continue.

Lock wait timeoutSQL

Lock wait timeout exceeded; try restarting transaction (MySQL 1205)

A query waited too long for a row lock held by another transaction and gave up.

1213MySQL

MySQL ERROR 1213 (40001): Deadlock found when trying to get lock; try restarting transaction

MySQL detected a deadlock between two transactions and rolled one back.

304HTTP

HTTP 304 Not Modified

The cached copy is still valid, so the server sends no body and the client reuses its cache.

out of shared memoryPostgreSQL

ERROR: out of shared memory — HINT: You might need to increase max_locks_per_transaction.

A transaction took more locks than the lock table can hold — usually touching many tables/partitions at once.

prepared statement existsPostgreSQL

ERROR: prepared statement "s1" already exists (PgBouncer transaction mode)

Named prepared statements collided — typically because PgBouncer in transaction pooling mode hands connections between clients.

499HTTP

HTTP 499 Client Closed Request (Nginx)

Nginx-specific code logged when the client disconnected before the server finished responding.

Maximum execution timePHP

PHP Fatal error: Maximum execution time of 30 seconds exceeded

The script ran longer than `max_execution_time` and PHP stopped it.

2013MySQL

MySQL ERROR 2013 (HY000): Lost connection to MySQL server during query

The connection dropped mid-query — server crash/restart, timeouts, or a proxy cutting long queries.

TimeoutExceptionJava

java.util.concurrent.TimeoutException

A Future.get(timeout) or async operation didn’t complete in the allowed time.

cURL error 28PHP

cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received

A PHP cURL (or Guzzle) request timed out before the remote server answered.

Execution Timeout ExpiredSQL

SQL Server: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

The command ran longer than the client’s CommandTimeout (default 30 seconds).

N+1 queriesSQL

Performance: N+1 query problem (one query per row in a loop)

Code runs one query to load a list, then one more query per item — hundreds of queries per page.

pool timeoutSQL

Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. All pooled connections were in use and max pool size was reached.

The application’s connection pool was exhausted — all connections busy or leaked.

Sending build contextDocker

Docker build slow: "Sending build context to Docker daemon 2.5GB" / transferring context takes forever

docker build is uploading your whole project folder — node_modules, .git, data files — before building, because there’s no (or a…

14 UNAVAILABLEAPI

gRPC Error: 14 UNAVAILABLE: No connection established / failed to connect to all addresses

The gRPC client couldn’t reach the server — wrong address/port, TLS vs plaintext mismatch, server down, or a proxy that doesn’t s…

12 UNIMPLEMENTEDAPI

gRPC Error: 12 UNIMPLEMENTED: unknown service x / Method not found

The server doesn’t have the service or method the client called — proto mismatch, wrong package name, or calling the wrong server.

Received message larger than maxAPI

gRPC Error: 8 RESOURCE_EXHAUSTED: Received message larger than max (x vs. 4194304)

A gRPC message exceeded the receiver’s maximum size (4 MB default).

409HTTP

HTTP 409 Conflict

The request conflicts with the current state of the resource — e.g. a duplicate or an edit based on an outdated version.

ConcurrentModificationExceptionJava

java.util.ConcurrentModificationException

A collection was modified while being iterated (even in a single thread).

412HTTP

HTTP 412 Precondition Failed

A conditional request header (If-Match, If-Unmodified-Since) didn’t match the current state of the resource.

ThrottlingExceptionAWS

AWS: ThrottlingException / Rate exceeded

You exceeded the request rate for an AWS API; retry with exponential backoff.

Runtime exited with error: signal: killedAWS

Lambda: Runtime exited with error: signal: killed (Runtime.ExitError)

The function process was killed — almost always because it ran out of its configured memory.

RequestEntityTooLargeExceptionAWS

Lambda: Request must be smaller than 6291456 bytes for the InvokeFunction operation (RequestEntityTooLargeException)

The event payload (or response) is over Lambda’s 6 MB synchronous limit (256 KB for async invocations).

Malformed Lambda proxy responseAWS

API Gateway {"message": "Internal server error"} 502 — Malformed Lambda proxy response

The Lambda behind an API Gateway proxy integration returned something that isn’t the required {statusCode, headers, body} shape,…

not authorized to access this resourceAWS

API Gateway 403: User is not authorized to access this resource with an explicit deny

An API Gateway authorizer (Lambda/Cognito) or resource policy denied the request.

AWS.SimpleQueueService.NonExistentQueueAWS

SQS: The specified queue does not exist (AWS.SimpleQueueService.NonExistentQueue / QueueDoesNotExist)

The queue URL/name doesn’t exist in that region/account, or it was deleted (recently deleted names are blocked for 60 seconds).