{"action":"closed","issue":{"url":"https://api.github.com/repos/VOLTTRON/volttron/issues/480","repository_url":"https://api.github.com/repos/VOLTTRON/volttron","labels_url":"https://api.github.com/repos/VOLTTRON/volttron/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/VOLTTRON/volttron/issues/480/comments","events_url":"https://api.github.com/repos/VOLTTRON/volttron/issues/480/events","html_url":"https://github.com/VOLTTRON/volttron/issues/480","id":151758661,"number":480,"title":"Improve error info returned when registering platform fails","user":{"login":"jchap-pnnl","id":15679599,"avatar_url":"https://avatars.githubusercontent.com/u/15679599?v=3","gravatar_id":"","url":"https://api.github.com/users/jchap-pnnl","html_url":"https://github.com/jchap-pnnl","followers_url":"https://api.github.com/users/jchap-pnnl/followers","following_url":"https://api.github.com/users/jchap-pnnl/following{/other_user}","gists_url":"https://api.github.com/users/jchap-pnnl/gists{/gist_id}","starred_url":"https://api.github.com/users/jchap-pnnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchap-pnnl/subscriptions","organizations_url":"https://api.github.com/users/jchap-pnnl/orgs","repos_url":"https://api.github.com/users/jchap-pnnl/repos","events_url":"https://api.github.com/users/jchap-pnnl/events{/privacy}","received_events_url":"https://api.github.com/users/jchap-pnnl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/VOLTTRON/volttron/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/VOLTTRON/volttron/milestones/11","html_url":"https://github.com/VOLTTRON/volttron/milestones/VOLTTRON%203.5.1","labels_url":"https://api.github.com/repos/VOLTTRON/volttron/milestones/11/labels","id":1622679,"number":11,"title":"VOLTTRON 3.5.1","description":"","creator":{"login":"craig8","id":3979063,"avatar_url":"https://avatars.githubusercontent.com/u/3979063?v=3","gravatar_id":"","url":"https://api.github.com/users/craig8","html_url":"https://github.com/craig8","followers_url":"https://api.github.com/users/craig8/followers","following_url":"https://api.github.com/users/craig8/following{/other_user}","gists_url":"https://api.github.com/users/craig8/gists{/gist_id}","starred_url":"https://api.github.com/users/craig8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craig8/subscriptions","organizations_url":"https://api.github.com/users/craig8/orgs","repos_url":"https://api.github.com/users/craig8/repos","events_url":"https://api.github.com/users/craig8/events{/privacy}","received_events_url":"https://api.github.com/users/craig8/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":2,"state":"open","created_at":"2016-03-04T16:59:39Z","updated_at":"2016-05-10T08:18:55Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-04-28T22:34:29Z","updated_at":"2016-05-10T08:18:55Z","closed_at":"2016-05-10T08:18:55Z","body":"The response is a stringified mess:\r\n\r\n\"{\\\"jsonrpc\\\":\\\"2.0\\\",\\\"id\\\":\\\"NA\\\",\\\"error\\\":{\\\"message\\\":\\\"Invalid rpc data {\\\\\\\"jsonrpc\\\\\\\":\\\\\\\"2.0\\\\\\\",\\\\\\\"method\\\\\\\":\\\\\\\"register_instance\\\\\\\",\\\\\\\"authorization\\\\\\\":\\\\\\\"c56012ca-cb77-429d-8d7c-b613e99f1e73\\\\\\\",\\\\\\\"params\\\\\\\":{\\\\\\\"discovery_address\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"display_name\\\\\\\":\\\\\\\"\\\\\\\"},\\\\\\\"id\\\\\\\":\\\\\\\"72581-4\\\\\\\"}\\\",\\\"code\\\":-32600}}\"\r\n\r\nIdeally the response would be an object that allows:\r\n\r\nif (response.error) {\r\n     throw new RpcError(response.error);\r\n}"}}