Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-109] appcd-plugin: Calling <plugin-name>/latest does not return the expected info

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionFixed
Resolution Date2017-10-28T05:01:01.000+0000
Affected Version/sAppc Daemon 1.0.0
Fix Version/sAppc Daemon 1.0.0
Componentsappcd-plugin
Labelsn/a
ReporterEwan Harris
AssigneeChris Barber
Created2017-10-26T12:59:14.000+0000
Updated2017-10-28T05:01:01.000+0000

Description

Description

When 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
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

JSON Source