corellium / corellium/corellium-api
Agent.network(): Unknown operation 'network' in system message request
- Dominant language
- JavaScript
- Stars
- 80
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
It appears that the Agent.network() function defined [here](https://github.com/corellium/corellium-api/blob/master/src/agent.js#L909) doesn't work.
Upon calling it an error is thrown:
`InvalidArgument: Unknown operation 'network' in system message request`
It occurs with this test script
```javascript
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);
});
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at src/agent.js around line 909 and reproduce the failure with the test script in the issue. Determine why Agent.network() produces the unknown-operation error, then verify that the call completes and returns network information without throwing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100