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]: Getting a runtime error while invoking the client methods for a generated client #42988

Open
ayeshLK opened this issue Jun 26, 2024 · 1 comment · May be fixed by #42999
Open

[Bug]: Getting a runtime error while invoking the client methods for a generated client #42988

ayeshLK opened this issue Jun 26, 2024 · 1 comment · May be fixed by #42999
Assignees
Labels
Priority/Blocker Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug
Milestone

Comments

@ayeshLK
Copy link
Member

ayeshLK commented Jun 26, 2024

Description

We have generated a client for Slack API using the Ballerina OpenAPI tool and when trying to invoke methods in the connector we are getting a runtime error.

Steps to Reproduce

  1. Publish the Slack client [1] to local ballerina central.

  2. Write a small test case using the Slack client.

    import ballerinax/slack;
    
    configurable string token = ?;
    public function main() returns error? {
        slack:Client slack = check new({ auth: {token} });
        var response = check slack->/users\.getPresence();
    }
  3. Following error is thrown.

    error: No such method: $gen$Client&0046$get$users&0046getPresence
        at nivedhtith.test_function.0:main(main.bal:14)

[1] - https://github.com/adibmbrk/module-ballerinax-slack

Affected Version(s)

Ballerina SL 2201.9.0

OS, DB, other environment details and versions

No response

Related area

-> Runtime

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added the Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime label Jun 26, 2024
@HindujaB
Copy link
Contributor

HindujaB commented Jun 26, 2024

Seems like a bug from #41885 changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority/Blocker Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug
Projects
Status: PR Sent
Development

Successfully merging a pull request may close this issue.

4 participants