{"action":"created","issue":{"url":"https://api.github.com/repos/appcelerator/amp/issues/572","repository_url":"https://api.github.com/repos/appcelerator/amp","labels_url":"https://api.github.com/repos/appcelerator/amp/issues/572/labels{/name}","comments_url":"https://api.github.com/repos/appcelerator/amp/issues/572/comments","events_url":"https://api.github.com/repos/appcelerator/amp/issues/572/events","html_url":"https://github.com/appcelerator/amp/issues/572","id":195347188,"number":572,"title":"API Error Codes","user":{"login":"generalhenry","id":460200,"avatar_url":"https://avatars.githubusercontent.com/u/460200?v=3","gravatar_id":"","url":"https://api.github.com/users/generalhenry","html_url":"https://github.com/generalhenry","followers_url":"https://api.github.com/users/generalhenry/followers","following_url":"https://api.github.com/users/generalhenry/following{/other_user}","gists_url":"https://api.github.com/users/generalhenry/gists{/gist_id}","starred_url":"https://api.github.com/users/generalhenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/generalhenry/subscriptions","organizations_url":"https://api.github.com/users/generalhenry/orgs","repos_url":"https://api.github.com/users/generalhenry/repos","events_url":"https://api.github.com/users/generalhenry/events{/privacy}","received_events_url":"https://api.github.com/users/generalhenry/received_events","type":"User","site_admin":false},"labels":[{"id":421733481,"url":"https://api.github.com/repos/appcelerator/amp/labels/area/api","name":"area/api","color":"fbca04","default":false},{"id":393820171,"url":"https://api.github.com/repos/appcelerator/amp/labels/kind/enhancement","name":"kind/enhancement","color":"f5c5a4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-13T19:36:14Z","updated_at":"2016-12-13T23:30:21Z","closed_at":null,"body":"Most API error currently return the default [grpc error code](https://godoc.org/google.golang.org/grpc/codes) 2 (unknown)\r\n\r\nThese can be fixed by returning [grpc errors](https://godoc.org/google.golang.org/grpc#Errorf)\r\n\r\nExample: https://github.com/appcelerator/amp/blob/master/api/rpc/stack/stack.go#L85\r\nshould use `grpc.Errorf(codes.AlreadyExists, \"Stack %s already exists\", in.Stack.Name)`"},"comment":{"url":"https://api.github.com/repos/appcelerator/amp/issues/comments/266895623","html_url":"https://github.com/appcelerator/amp/issues/572#issuecomment-266895623","issue_url":"https://api.github.com/repos/appcelerator/amp/issues/572","id":266895623,"user":{"login":"subfuzion","id":159738,"avatar_url":"https://avatars.githubusercontent.com/u/159738?v=3","gravatar_id":"","url":"https://api.github.com/users/subfuzion","html_url":"https://github.com/subfuzion","followers_url":"https://api.github.com/users/subfuzion/followers","following_url":"https://api.github.com/users/subfuzion/following{/other_user}","gists_url":"https://api.github.com/users/subfuzion/gists{/gist_id}","starred_url":"https://api.github.com/users/subfuzion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subfuzion/subscriptions","organizations_url":"https://api.github.com/users/subfuzion/orgs","repos_url":"https://api.github.com/users/subfuzion/repos","events_url":"https://api.github.com/users/subfuzion/events{/privacy}","received_events_url":"https://api.github.com/users/subfuzion/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T23:30:21Z","updated_at":"2016-12-13T23:30:21Z","body":"Great tip."}}
{"actor":{"display_login":"subfuzion"}}