{ "id": "170139", "key": "DAEMON-109", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12519", "key": "DAEMON", "name": "Appcelerator Daemon" }, "fixVersions": [ { "id": "18407", "description": "", "name": "Appc Daemon 1.0.0", "archived": false, "released": true, "releaseDate": "2017-12-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-10-28T05:01:01.000+0000", "created": "2017-10-26T12:59:14.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "18407", "description": "", "name": "Appc Daemon 1.0.0", "archived": false, "released": true, "releaseDate": "2017-12-05" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-10-28T05:01:01.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15614", "name": "appcd-plugin" } ], "description": "h5.Description\r\n\r\nWhen calling {{appcd 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\r\n\r\n{code}\r\nconst ws = new WebSocket('ws://127.0.0.1:1732', {\r\n\t\theaders: {\r\n\t\t\t'User-Agent': __filename\r\n\t\t}\r\n\t})\r\n\t.on('message', (msg, flags) => {\r\n\t\tconsole.log(msgpack.decode(msg));\r\n\t\tconsole.log(flags);\r\n\t// console.log(util.inspect(flags.binary ? msgpack.decode(msg) : JSON.parse(msg), false, null, true));\r\n\t// process.exit(0);\r\n\t})\r\n\t.on('close', () => console.log('CLOSED'))\r\n\t.on('open', () => ws.send(JSON.stringify({ version: '1.0', path: '/jdk/latest/', id: Date.now(), type: 'subscribe' })));\r\n{code}", "attachment": [], "flagged": false, "summary": "appcd-plugin: Calling /latest does not return the expected info", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 964, "state": "closed", "name": "2017 Sprint 22 Tooling", "startDate": "2017-10-22T21:42:00.037Z", "endDate": "2017-11-05T22:42:00.000Z", "completeDate": "2017-11-06T16:36:21.766Z", "originBoardId": 219 } ], "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }