{"action":"opened","issue":{"url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/issues/29","repository_url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java","labels_url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/issues/29/comments","events_url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/issues/29/events","html_url":"https://github.com/Afrozaar/wp-api-v2-client-java/issues/29","id":210477583,"number":29,"title":"Be able to parse rest exceptions from multisites.","user":{"login":"johanmynhardt","id":727301,"avatar_url":"https://avatars.githubusercontent.com/u/727301?v=3","gravatar_id":"","url":"https://api.github.com/users/johanmynhardt","html_url":"https://github.com/johanmynhardt","followers_url":"https://api.github.com/users/johanmynhardt/followers","following_url":"https://api.github.com/users/johanmynhardt/following{/other_user}","gists_url":"https://api.github.com/users/johanmynhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/johanmynhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanmynhardt/subscriptions","organizations_url":"https://api.github.com/users/johanmynhardt/orgs","repos_url":"https://api.github.com/users/johanmynhardt/repos","events_url":"https://api.github.com/users/johanmynhardt/events{/privacy}","received_events_url":"https://api.github.com/users/johanmynhardt/received_events","type":"User","site_admin":false},"labels":[{"id":307163379,"url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"johanmynhardt","id":727301,"avatar_url":"https://avatars.githubusercontent.com/u/727301?v=3","gravatar_id":"","url":"https://api.github.com/users/johanmynhardt","html_url":"https://github.com/johanmynhardt","followers_url":"https://api.github.com/users/johanmynhardt/followers","following_url":"https://api.github.com/users/johanmynhardt/following{/other_user}","gists_url":"https://api.github.com/users/johanmynhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/johanmynhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanmynhardt/subscriptions","organizations_url":"https://api.github.com/users/johanmynhardt/orgs","repos_url":"https://api.github.com/users/johanmynhardt/repos","events_url":"https://api.github.com/users/johanmynhardt/events{/privacy}","received_events_url":"https://api.github.com/users/johanmynhardt/received_events","type":"User","site_admin":false},"assignees":[{"login":"johanmynhardt","id":727301,"avatar_url":"https://avatars.githubusercontent.com/u/727301?v=3","gravatar_id":"","url":"https://api.github.com/users/johanmynhardt","html_url":"https://github.com/johanmynhardt","followers_url":"https://api.github.com/users/johanmynhardt/followers","following_url":"https://api.github.com/users/johanmynhardt/following{/other_user}","gists_url":"https://api.github.com/users/johanmynhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/johanmynhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanmynhardt/subscriptions","organizations_url":"https://api.github.com/users/johanmynhardt/orgs","repos_url":"https://api.github.com/users/johanmynhardt/repos","events_url":"https://api.github.com/users/johanmynhardt/events{/privacy}","received_events_url":"https://api.github.com/users/johanmynhardt/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/milestones/2","html_url":"https://github.com/Afrozaar/wp-api-v2-client-java/milestone/2","labels_url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/milestones/2/labels","id":2276618,"number":2,"title":"Wordpress 4.7","description":null,"creator":{"login":"johanmynhardt","id":727301,"avatar_url":"https://avatars.githubusercontent.com/u/727301?v=3","gravatar_id":"","url":"https://api.github.com/users/johanmynhardt","html_url":"https://github.com/johanmynhardt","followers_url":"https://api.github.com/users/johanmynhardt/followers","following_url":"https://api.github.com/users/johanmynhardt/following{/other_user}","gists_url":"https://api.github.com/users/johanmynhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/johanmynhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanmynhardt/subscriptions","organizations_url":"https://api.github.com/users/johanmynhardt/orgs","repos_url":"https://api.github.com/users/johanmynhardt/repos","events_url":"https://api.github.com/users/johanmynhardt/events{/privacy}","received_events_url":"https://api.github.com/users/johanmynhardt/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2017-01-25T08:39:20Z","updated_at":"2017-02-27T13:02:52Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-02-27T13:02:52Z","updated_at":"2017-02-27T13:02:52Z","closed_at":null,"body":"@MaSeKind discovered that there is a difference between 4.7.2 and versions before it:\r\n\r\nOLD:\r\n```\r\n{\r\n \"code\": \"user_email\",\r\n \"message\": \"Sorry, that email address is already used!\",\r\n \"data\": null\r\n}\r\n```\r\n\r\nNEW:\r\n```\r\n{\r\n \"code\": \"rest_invalid_param\",\r\n \"message\": \"Invalid user parameter(s).\",\r\n \"data\": {\r\n   \"status\": 400\r\n },\r\n \"additional_errors\": [\r\n   {\r\n     \"code\": \"user_name\",\r\n     \"message\": \"Sorry, that username already exists!\",\r\n     \"data\": null\r\n   },\r\n   {\r\n     \"code\": \"user_email\",\r\n     \"message\": \"Sorry, that email address is already used!\",\r\n     \"data\": null\r\n   }\r\n ]\r\n}\r\n```\r\n\r\nHowever, I could only pin it down to multisite-related changes from https://core.trac.wordpress.org/changeset/39219"}}
{"actor":{"display_login":"johanmynhardt"}}