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

Kubernetes Artifact Generation Fails when Client Initializes with Secure Socket Config #798

Open
DimuthuMadushan opened this issue Jul 16, 2024 · 0 comments
Labels

Comments

@DimuthuMadushan
Copy link

DimuthuMadushan commented Jul 16, 2024

Description:
Kubernetes and Docker artifact generation failed when the client initializes with secure socket configs. This affects to Ballerina component build in Choreo as it uses k8s build option internally.

import ballerina/http;

final http:Client extClient = check new ("http://localhost:8080", secureSocket = {
    cert: "../resources/certs/ftmt.crt"
});

service on new http:Listener(9090) {
    resource function get user(string id) returns string|error {
        http:Response res = check extClient->get("/user/" + id);
        return check res.getTextPayload();
    }
}

Error:

error: compilation failed: The compiler extension in package 'ballerina:cloud:2.11.3' failed to complete. class io.ballerina.compiler.syntax.tree.FieldAccessExpressionNode cannot be cast to class io.ballerina.compiler.syntax.tree.MappingConstructorExpressionNode (io.ballerina.compiler.syntax.tree.FieldAccessExpressionNode and io.ballerina.compiler.syntax.tree.MappingConstructorExpressionNode are in unnamed module of loader 'app')

Affected version:
2201.8.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant