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

[Bug]: invalid remote method call: expected a client object, but found 'ballerina/http:2.12.0:Client' #43403

Open
Shadow-Devil opened this issue Sep 19, 2024 · 3 comments
Labels
Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug userCategory/Compilation

Comments

@Shadow-Devil
Copy link
Contributor

Shadow-Devil commented Sep 19, 2024

Description

Following code throws an error: invalid remote method call: expected a client object, but found 'ballerina/http:2.12.0:Client'(BCE2421)
Even though this code works fine:

import ballerina/http;

http:Client callClient = check new ("localhost:8080");

function main() {
    json resp = check callClient->get("");
}

Steps to Reproduce

import ballerina/http;

var callClient = check new http:Client("localhost:8080");

function main() {
    json resp = check callClient->get("");
}

Affected Version(s)

2201.10.0

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Sep 19, 2024
@MaryamZi MaryamZi added Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. and removed needTriage The issue has to be inspected and labeled manually labels Sep 20, 2024
@MaryamZi
Copy link
Member

Previously reported in #29432.

@Shadow-Devil
Copy link
Contributor Author

sorry, I somehow overlooked the original issue

@MaryamZi
Copy link
Member

sorry, I somehow overlooked the original issue

That's okay. It was closed too, because it was deferred at the time. We can keep this issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug userCategory/Compilation
Projects
None yet
Development

No branches or pull requests

3 participants