Skip to content

HTTP service running inside a container gives connection timeout error #7584

@TharmiganK

Description

@TharmiganK

Description

$Subject

This is happening for the new HTTP patch version: 2.15.5 which only has the netty vulnerability fix.

Steps to Reproduce

Run the following service inside a docker container:

import ballerina/http;

final http:Client postmanClient = check new ("https://postman-echo.com");

service / on new http:Listener(9090) {
    resource function get greeting(string? name) returns string|error {
        if name is () {
            return error("name should not be empty!");
        }
        return postmanClient->/post.post(string `Hello, ${name}`);
    }
}

Error:

time=2025-02-13T14:46:46.931Z level=ERROR module=ballerina/http message="unhandled error returned from the service" error={"causes":[{"message":"Connection timeout: postman-echo.com/100.24.216.48:443","detail":{},"stackTrace":[]}],"message":"Something wrong with the connection","detail":{},"stackTrace":[]} path="/greeting?name=Tharmi" method="GET"

Version

Ballerina SwanLake Update 10

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions