[DAEMON-109] appcd-plugin: Calling <plugin-name>/latest does not return the expected info
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2017-10-28T05:01:01.000+0000 |
Affected Version/s | Appc Daemon 1.0.0 |
Fix Version/s | Appc Daemon 1.0.0 |
Components | appcd-plugin |
Labels | n/a |
Reporter | Ewan Harris |
Assignee | Chris Barber |
Created | 2017-10-26T12:59:14.000+0000 |
Updated | 2017-10-28T05:01:01.000+0000 |
Description
Description
When callingappcd exec /jdk/latest
it returns 404 [object Object]
it should print the plugin info to the console. It looks like the call is going through the error handler of the request made in the exec command
const ws = new WebSocket('ws://127.0.0.1:1732', {
headers: {
'User-Agent': __filename
}
})
.on('message', (msg, flags) => {
console.log(msgpack.decode(msg));
console.log(flags);
// console.log(util.inspect(flags.binary ? msgpack.decode(msg) : JSON.parse(msg), false, null, true));
// process.exit(0);
})
.on('close', () => console.log('CLOSED'))
.on('open', () => ws.send(JSON.stringify({ version: '1.0', path: '/jdk/latest/', id: Date.now(), type: 'subscribe' })));
Comments
No comments