{"action":"created","issue":{"url":"https://api.github.com/repos/cvitter/mattermost-jira-bridge/issues/1","repository_url":"https://api.github.com/repos/cvitter/mattermost-jira-bridge","labels_url":"https://api.github.com/repos/cvitter/mattermost-jira-bridge/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/cvitter/mattermost-jira-bridge/issues/1/comments","events_url":"https://api.github.com/repos/cvitter/mattermost-jira-bridge/issues/1/events","html_url":"https://github.com/cvitter/mattermost-jira-bridge/issues/1","id":338702704,"node_id":"MDU6SXNzdWUzMzg3MDI3MDQ=","number":1,"title":"Application can't handle complex encoding in description field","user":{"login":"cvitter","id":1001640,"node_id":"MDQ6VXNlcjEwMDE2NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/1001640?v=4","gravatar_id":"","url":"https://api.github.com/users/cvitter","html_url":"https://github.com/cvitter","followers_url":"https://api.github.com/users/cvitter/followers","following_url":"https://api.github.com/users/cvitter/following{/other_user}","gists_url":"https://api.github.com/users/cvitter/gists{/gist_id}","starred_url":"https://api.github.com/users/cvitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvitter/subscriptions","organizations_url":"https://api.github.com/users/cvitter/orgs","repos_url":"https://api.github.com/users/cvitter/repos","events_url":"https://api.github.com/users/cvitter/events{/privacy}","received_events_url":"https://api.github.com/users/cvitter/received_events","type":"User","site_admin":false},"labels":[{"id":980308219,"node_id":"MDU6TGFiZWw5ODAzMDgyMTk=","url":"https://api.github.com/repos/cvitter/mattermost-jira-bridge/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":980308222,"node_id":"MDU6TGFiZWw5ODAzMDgyMjI=","url":"https://api.github.com/repos/cvitter/mattermost-jira-bridge/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-05T19:44:44Z","updated_at":"2018-07-06T17:55:35Z","closed_at":"2018-07-06T17:55:35Z","author_association":"OWNER","body":"40.113.218.89 - - [05/Jul/2018 19:41:43] \"POST /jira/PRJX?user_id=craig&user_key=craig HTTP/1.1\" 200 -\r\n[2018-07-05 19:42:50,771] ERROR in app: Exception on /jira/PRJX [POST]\r\nTraceback (most recent call last):\r\n  File \"/home/sales-demo/.local/lib/python2.7/site-packages/flask/app.py\", line 1982, in wsgi_app\r\n    response = self.full_dispatch_request()\r\n  File \"/home/sales-demo/.local/lib/python2.7/site-packages/flask/app.py\", line 1614, in full_dispatch_request\r\n    rv = self.handle_user_exception(e)\r\n  File \"/home/sales-demo/.local/lib/python2.7/site-packages/flask/app.py\", line 1517, in handle_user_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/home/sales-demo/.local/lib/python2.7/site-packages/flask/app.py\", line 1612, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/home/sales-demo/.local/lib/python2.7/site-packages/flask/app.py\", line 1598, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"jira.py\", line 241, in hooks\r\n    handle_actions(project_key, request.get_json())\r\n  File \"jira.py\", line 199, in handle_actions\r\n    format_changelog(data[\"changelog\"][\"items\"]),\r\n  File \"jira.py\", line 142, in format_changelog\r\n    str(item[\"toString\"]) + \"_\\n\"\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xa0' in position 56: ordinal not in range(128)"},"comment":{"url":"https://api.github.com/repos/cvitter/mattermost-jira-bridge/issues/comments/403105080","html_url":"https://github.com/cvitter/mattermost-jira-bridge/issues/1#issuecomment-403105080","issue_url":"https://api.github.com/repos/cvitter/mattermost-jira-bridge/issues/1","id":403105080,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzEwNTA4MA==","user":{"login":"cvitter","id":1001640,"node_id":"MDQ6VXNlcjEwMDE2NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/1001640?v=4","gravatar_id":"","url":"https://api.github.com/users/cvitter","html_url":"https://github.com/cvitter","followers_url":"https://api.github.com/users/cvitter/followers","following_url":"https://api.github.com/users/cvitter/following{/other_user}","gists_url":"https://api.github.com/users/cvitter/gists{/gist_id}","starred_url":"https://api.github.com/users/cvitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvitter/subscriptions","organizations_url":"https://api.github.com/users/cvitter/orgs","repos_url":"https://api.github.com/users/cvitter/repos","events_url":"https://api.github.com/users/cvitter/events{/privacy}","received_events_url":"https://api.github.com/users/cvitter/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T17:55:35Z","updated_at":"2018-07-06T17:55:35Z","author_association":"OWNER","body":"Bug squashed for now via .encode('ascii','ignore').strip() and commit https://github.com/cvitter/mattermost-jira-bridge/commit/01c02291524e4f901d53a5d5161742d037706f15"}}
{"actor":{"display_login":"cvitter"}}