{"action":"created","issue":{"url":"https://api.github.com/repos/analytics-ufcg/rcongresso/issues/79","repository_url":"https://api.github.com/repos/analytics-ufcg/rcongresso","labels_url":"https://api.github.com/repos/analytics-ufcg/rcongresso/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/analytics-ufcg/rcongresso/issues/79/comments","events_url":"https://api.github.com/repos/analytics-ufcg/rcongresso/issues/79/events","html_url":"https://github.com/analytics-ufcg/rcongresso/issues/79","id":331600774,"node_id":"MDU6SXNzdWUzMzE2MDA3NzQ=","number":79,"title":"Tratar IDs repetidas ao invés de dar erro 404?","user":{"login":"andresmrm","id":937689,"node_id":"MDQ6VXNlcjkzNzY4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/937689?v=4","gravatar_id":"","url":"https://api.github.com/users/andresmrm","html_url":"https://github.com/andresmrm","followers_url":"https://api.github.com/users/andresmrm/followers","following_url":"https://api.github.com/users/andresmrm/following{/other_user}","gists_url":"https://api.github.com/users/andresmrm/gists{/gist_id}","starred_url":"https://api.github.com/users/andresmrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresmrm/subscriptions","organizations_url":"https://api.github.com/users/andresmrm/orgs","repos_url":"https://api.github.com/users/andresmrm/repos","events_url":"https://api.github.com/users/andresmrm/events{/privacy}","received_events_url":"https://api.github.com/users/andresmrm/received_events","type":"User","site_admin":false},"labels":[{"id":666823683,"node_id":"MDU6TGFiZWw2NjY4MjM2ODM=","url":"https://api.github.com/repos/analytics-ufcg/rcongresso/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-12T14:00:04Z","updated_at":"2018-06-13T17:29:59Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Atualmente, aparentemente, se der um `fetch_tramitacao` com um vetor de IDs em que algum valor é repetido dá erro 404.\r\n\r\nParece ser fácil de resolver o problema, apenas passando por um `unique`.\r\n\r\nMinha questão é se esse unique deveria ser feito pela RCongresso, ou se a mensagem de erro deveria ser mais descritiva.\r\n\r\nÉ provável que o mesmo problema afete outras funções da lib.\r\n\r\n### Passos para reproduzir o erro:\r\n> fetch_tramitacao(c(\"2175303\", \"2175303\"))\r\n> Error: Falha na requisicao a API dos Dados Abertos. Erro 404 ao tentar acessar: > https://dadosabertos.camara.leg.br/api/v2/proposicoes/2175303/tramitacoes/api/v2/proposicoes/2175303/tramitacoes \r\n\r\n### Versão do Sistema Operacional e do R:\r\nArch Linux - R version 3.5.0"},"comment":{"url":"https://api.github.com/repos/analytics-ufcg/rcongresso/issues/comments/397020799","html_url":"https://github.com/analytics-ufcg/rcongresso/issues/79#issuecomment-397020799","issue_url":"https://api.github.com/repos/analytics-ufcg/rcongresso/issues/79","id":397020799,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzAyMDc5OQ==","user":{"login":"andresmrm","id":937689,"node_id":"MDQ6VXNlcjkzNzY4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/937689?v=4","gravatar_id":"","url":"https://api.github.com/users/andresmrm","html_url":"https://github.com/andresmrm","followers_url":"https://api.github.com/users/andresmrm/followers","following_url":"https://api.github.com/users/andresmrm/following{/other_user}","gists_url":"https://api.github.com/users/andresmrm/gists{/gist_id}","starred_url":"https://api.github.com/users/andresmrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresmrm/subscriptions","organizations_url":"https://api.github.com/users/andresmrm/orgs","repos_url":"https://api.github.com/users/andresmrm/repos","events_url":"https://api.github.com/users/andresmrm/events{/privacy}","received_events_url":"https://api.github.com/users/andresmrm/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T17:29:59Z","updated_at":"2018-06-13T17:29:59Z","author_association":"CONTRIBUTOR","body":"Obrigado!\nSe quiser posso fazer um PR arrumando isso.\n"}}
{"actor":{"display_login":"andresmrm"}}