From 33a4c02e31b619a82914d08d7f1b0b4c95638e8e Mon Sep 17 00:00:00 2001 From: saurabh Date: Sun, 22 Feb 2026 03:51:54 +0530 Subject: [PATCH] fix(http): make timeout errors easier to understand When an HTTP request times out, the error shown to the user is the raw Go error 'context deadline exceeded', which is not helpful. This change catches the deadline exceeded error and returns a human-readable message like 'request timed out after 10s' instead. Fixes #3198 Signed-off-by: saurabh --- pkg/components/http/http.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/components/http/http.go b/pkg/components/http/http.go index 6522d59b8d..6d2e64fd11 100644 --- a/pkg/components/http/http.go +++ b/pkg/components/http/http.go @@ -625,6 +625,10 @@ func (e *HTTP) executeRequest(httpCtx core.HTTPContext, spec Spec, timeout time. resp, err := httpCtx.Do(req) if err != nil { + if reqCtx.Err() == context.DeadlineExceeded { + return nil, fmt.Errorf("request timed out after %s", timeout) + } + return nil, err }