Skip to content

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

Description

@rvbiljouw

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);
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions