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

Agent.network(): Unknown operation 'network' in system message request #15

Open
rvbiljouw opened this issue Nov 23, 2022 · 0 comments
Open

Comments

@rvbiljouw
Copy link

rvbiljouw commented Nov 23, 2022

It appears that the Agent.network() function defined here doesn't work.

Upon calling it an error is thrown:
InvalidArgument: Unknown operation 'network' in system message request

It occurs with this test script

import {Corellium} from "@corellium/corellium-api";

async function main() {
    let corellium = new Corellium({
        endpoint: "https://app.corellium.com",
        apiToken: process.env["CORELLIUM_API_KEY"]
    });

    await corellium.login();

    let project = await corellium.projectNamed("Default Project");
    let instance = await project.getInstance(process.env["CORELLIUM_DEVICE_ID"]);
    const agent = await instance.newAgent();
    await agent.ready();

    let network = await agent.network();
    console.log(network);

    agent.disconnect();
}

main().catch((err) => {
    console.error(err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant