{"action":"created","issue":{"url":"https://api.github.com/repos/jansenfelipe/cnpj-gratis/issues/28","repository_url":"https://api.github.com/repos/jansenfelipe/cnpj-gratis","labels_url":"https://api.github.com/repos/jansenfelipe/cnpj-gratis/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/jansenfelipe/cnpj-gratis/issues/28/comments","events_url":"https://api.github.com/repos/jansenfelipe/cnpj-gratis/issues/28/events","html_url":"https://github.com/jansenfelipe/cnpj-gratis/issues/28","id":174165637,"number":28,"title":"Undefined index: cep","user":{"login":"lemoslincoln","id":1391743,"avatar_url":"https://avatars.githubusercontent.com/u/1391743?v=3","gravatar_id":"","url":"https://api.github.com/users/lemoslincoln","html_url":"https://github.com/lemoslincoln","followers_url":"https://api.github.com/users/lemoslincoln/followers","following_url":"https://api.github.com/users/lemoslincoln/following{/other_user}","gists_url":"https://api.github.com/users/lemoslincoln/gists{/gist_id}","starred_url":"https://api.github.com/users/lemoslincoln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemoslincoln/subscriptions","organizations_url":"https://api.github.com/users/lemoslincoln/orgs","repos_url":"https://api.github.com/users/lemoslincoln/repos","events_url":"https://api.github.com/users/lemoslincoln/events{/privacy}","received_events_url":"https://api.github.com/users/lemoslincoln/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T01:46:11Z","updated_at":"2016-08-31T11:23:14Z","closed_at":null,"body":"Estou recebendo a seguinte mensagem de erro..\r\n\r\nUndefined index: cep in <b>[path_arquivo]</b> on line <b>17</b><br />\r\n{\"cep\":\"\",\"code\":0}\r\n\r\nA linha 17 é a linha do código abaixo.\r\n$return['cep'] = Utils::mask($return['cep'], Mask::CEP);\r\n\r\n```\r\nfunction aj_get_data_from_cnpj() {\r\n\t\t\ttry {\r\n\t\t    if (!isset($_POST['cnpj']) || !isset($_POST['captcha']) || !isset($_POST['cookie']))\r\n\t\t        throw new Exception('Informe todos os campos', 99);\r\n\t\t    $return = CnpjGratis::consulta($_POST['cnpj'], $_POST['captcha'], $_POST['cookie']);\r\n\t\t    $return['cep'] = Utils::mask($return['cep'], Mask::CEP);\r\n\t\t    $return['code'] = 0;\r\n\t\t} catch (Exception $e) {\r\n\t\t    $return = array('code' => $e->getCode(), 'message' => $e->getMessage());\r\n\t\t}\r\n\t\twp_send_json($return);\r\n\t}\r\n```\r\n\r\nAlguma idéia do que pode ser?"},"comment":{"url":"https://api.github.com/repos/jansenfelipe/cnpj-gratis/issues/comments/243735015","html_url":"https://github.com/jansenfelipe/cnpj-gratis/issues/28#issuecomment-243735015","issue_url":"https://api.github.com/repos/jansenfelipe/cnpj-gratis/issues/28","id":243735015,"user":{"login":"mprandot","id":14298396,"avatar_url":"https://avatars.githubusercontent.com/u/14298396?v=3","gravatar_id":"","url":"https://api.github.com/users/mprandot","html_url":"https://github.com/mprandot","followers_url":"https://api.github.com/users/mprandot/followers","following_url":"https://api.github.com/users/mprandot/following{/other_user}","gists_url":"https://api.github.com/users/mprandot/gists{/gist_id}","starred_url":"https://api.github.com/users/mprandot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprandot/subscriptions","organizations_url":"https://api.github.com/users/mprandot/orgs","repos_url":"https://api.github.com/users/mprandot/repos","events_url":"https://api.github.com/users/mprandot/events{/privacy}","received_events_url":"https://api.github.com/users/mprandot/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T11:23:13Z","updated_at":"2016-08-31T11:23:13Z","body":"@lemoslincoln provavelmente não está retornando o CEP na sua consulta, por isso o erro undefined index..."}}
{"actor":{"display_login":"mprandot"}}