{"action":"opened","issue":{"url":"https://api.github.com/repos/kizniche/Mycodo/issues/218","repository_url":"https://api.github.com/repos/kizniche/Mycodo","labels_url":"https://api.github.com/repos/kizniche/Mycodo/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/kizniche/Mycodo/issues/218/comments","events_url":"https://api.github.com/repos/kizniche/Mycodo/issues/218/events","html_url":"https://github.com/kizniche/Mycodo/issues/218","id":216063654,"number":218,"title":"Geocoder exception","user":{"login":"kizniche","id":838427,"avatar_url":"https://avatars0.githubusercontent.com/u/838427?v=3","gravatar_id":"","url":"https://api.github.com/users/kizniche","html_url":"https://github.com/kizniche","followers_url":"https://api.github.com/users/kizniche/followers","following_url":"https://api.github.com/users/kizniche/following{/other_user}","gists_url":"https://api.github.com/users/kizniche/gists{/gist_id}","starred_url":"https://api.github.com/users/kizniche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kizniche/subscriptions","organizations_url":"https://api.github.com/users/kizniche/orgs","repos_url":"https://api.github.com/users/kizniche/repos","events_url":"https://api.github.com/users/kizniche/events{/privacy}","received_events_url":"https://api.github.com/users/kizniche/received_events","type":"User","site_admin":false},"labels":[{"id":174185310,"url":"https://api.github.com/repos/kizniche/Mycodo/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-22T13:33:08Z","updated_at":"2017-03-22T13:33:08Z","closed_at":null,"body":"This has been confirmed to affect at least one system, running on a Pi ZeroW. It was able to successfully execute this function at least once.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/var/www/mycodo/mycodo/utils/statistics.py\", line 279, in send_anonymous_stats\r\n    add_update_csv(STATS_CSV, 'country', geocoder.ip('me').country)\r\n  File \"/usr/local/lib/python2.7/dist-packages/geocoder/api.py\", line 418, in ip\r\n    return get(location, provider='ipinfo', **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/geocoder/api.py\", line 144, in get\r\n    return options[provider][method](location, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/geocoder/ipinfo.py\", line 23, in __init__\r\n    self._initialize(**kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/geocoder/base.py\", line 135, in _initialize\r\n    self._json()\r\n  File \"/usr/local/lib/python2.7/dist-packages/geocoder/base.py\", line 142, in _json\r\n    value = getattr(self, key)\r\n  File \"/usr/local/lib/python2.7/dist-packages/geocoder/ipinfo.py\", line 45, in address\r\n    return '{0}, {1}, {2}'.format(self.city, self.state, self.country)\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xe1' in position 1: ordinal not in range(128)\r\n```"}}
{"actor":{"display_login":"kizniche"}}