{"action":"opened","issue":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5129","repository_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5129/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5129/comments","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5129/events","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/5129","id":174878339,"number":5129,"title":"telegram_handler : TypeError: expected string or buffer","user":{"login":"yeawellwhatever","id":20983425,"avatar_url":"https://avatars.githubusercontent.com/u/20983425?v=3","gravatar_id":"","url":"https://api.github.com/users/yeawellwhatever","html_url":"https://github.com/yeawellwhatever","followers_url":"https://api.github.com/users/yeawellwhatever/followers","following_url":"https://api.github.com/users/yeawellwhatever/following{/other_user}","gists_url":"https://api.github.com/users/yeawellwhatever/gists{/gist_id}","starred_url":"https://api.github.com/users/yeawellwhatever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeawellwhatever/subscriptions","organizations_url":"https://api.github.com/users/yeawellwhatever/orgs","repos_url":"https://api.github.com/users/yeawellwhatever/repos","events_url":"https://api.github.com/users/yeawellwhatever/events{/privacy}","received_events_url":"https://api.github.com/users/yeawellwhatever/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-03T04:27:07Z","updated_at":"2016-09-03T04:27:07Z","closed_at":null,"body":"<!--\r\n\r\n===============ISSUE SECTION===============\r\n\r\nBefore you create an Issue, please check the following:\r\n\r\n1. Have you validated that your config.json is valid JSON? Use http://jsonlint.com/ to check.\r\n2. Have you [searched our issue tracker](https://github.com/PokemonGoF/PokemonGo-Bot/issues?q=is%3Aissue+sort%3Aupdated-desc) to see if the issue already exists? If so, comment on that issue instead rather than creating a new issue.\r\n3. Are you running on the `master` branch? We work on the `dev` branch and then add that functionality to `master` when it is stable. Your issue may be fixed on `dev` and there is no need for this issue, just wait and it will eventually be merged to `master`.\r\n4. All Issue sections MUST be completed to help us determine the actual problem and find its cause\r\n-->\r\n### Expected Behavior\r\n<!-- Tell us what you expect to happen -->\r\nBot to run and telegram to respond to /info request.\r\n\r\n### Actual Behavior\r\n<!-- Tell us what is happening -->\r\nThe telegram handler crashes\r\n\r\n### Your FULL config.json (remove your username, password, gmapkey and any other private info)\r\n<!-- Provide your FULL config file, feel free to use services such as pastebin.com to reduce clutter -->\r\n\r\n  \"type\": \"TelegramTask\",\r\n        \"config\": {\r\n          \"enabled\": true,\r\n          \"master\": null,\r\n          \"// old syntax, still supported: alert_catch\": [\"all\"],\r\n          \"// new syntax:\": {},\r\n          \"alert_catch\": {\r\n            \"all\": {\"operator\": \"and\", \"cp\": 1300, \"iv\": 0.95},\r\n            \"Snorlax\": {\"operator\": \"or\", \"cp\": 900, \"iv\": 0.9}\r\n\r\n### Output when issue occurred\r\n<!-- Provide a reasonable sample from your output log (not just the error message), feel free to use services such as pastebin.com to reduce clutter -->\r\n\r\n> Traceback (most recent call last):\r\n>   File \"/home/felis/PokemonGo-Bot/local/lib/python2.7/site-packages/eventlet/hubs/poll.py\", line 115, in wait\r\n>     listener.cb(fileno)\r\n>   File \"/home/felis/PokemonGo-Bot/local/lib/python2.7/site-packages/eventlet/green/thread.py\", line 41, in __thread_body\r\n>     func(*args, **kwargs)\r\n>   File \"/home/felis/PokemonGo-Bot/pokemongo_bot/event_handlers/telegram_handler.py\", line 82, in run\r\n>     if not re.match(r'^[0-9]+$', self.master):\r\n>   File \"/home/felis/PokemonGo-Bot/lib/python2.7/re.py\", line 141, in match\r\n>     return _compile(pattern, flags).match(string)\r\n> TypeError: expected string or buffer\r\n> Removing descriptor: 16\r\n\r\n### Steps to Reproduce\r\n<!-- Tell us the steps you have taken to reproduce the issue -->\r\nUnsure how it started. Now the error happens every startup since the bot is receiving a previous /info request.\r\nmaster: null is on purpose. Multiple people are watching the same bot instance, so we don't need push notification.\r\n\r\n### Other Information\r\nOS: Ubuntu 16.04.1\r\n<!-- Tell us what Operating system you're using --> \r\nBranch: dev\r\n<!-- dev or master --> \r\nGit Commit: c270999a79d8e17f43e846249738b7b1f91936b8\r\n<!-- run 'git log -n 1 --pretty=format:\"%H\"' --> \r\nPython Version: Python 2.7.12\r\n<!-- run 'python -V' and paste it here) --> \r\nAny other relevant files/configs (eg: path files) \r\n<!-- Anything else which may be of relevance -->\r\n\r\n<!-- ===============END OF ISSUE SECTION=============== -->\r\n<!-- Note: Delete these lines and everything BELOW if creating an Issue -->\r\n"}}
{"actor":{"display_login":"yeawellwhatever"}}