{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/guysoft/pyvona/pulls/1","id":81304815,"html_url":"https://github.com/guysoft/pyvona/pull/1","diff_url":"https://github.com/guysoft/pyvona/pull/1.diff","patch_url":"https://github.com/guysoft/pyvona/pull/1.patch","issue_url":"https://api.github.com/repos/guysoft/pyvona/issues/1","number":1,"state":"open","locked":false,"title":"Fix Header value must be of type str","user":{"login":"guysoft","id":325670,"avatar_url":"https://avatars.githubusercontent.com/u/325670?v=3","gravatar_id":"","url":"https://api.github.com/users/guysoft","html_url":"https://github.com/guysoft","followers_url":"https://api.github.com/users/guysoft/followers","following_url":"https://api.github.com/users/guysoft/following{/other_user}","gists_url":"https://api.github.com/users/guysoft/gists{/gist_id}","starred_url":"https://api.github.com/users/guysoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guysoft/subscriptions","organizations_url":"https://api.github.com/users/guysoft/orgs","repos_url":"https://api.github.com/users/guysoft/repos","events_url":"https://api.github.com/users/guysoft/events{/privacy}","received_events_url":"https://api.github.com/users/guysoft/received_events","type":"User","site_admin":false},"body":"Fixes error since header content should be string.\r\n\r\nWithout it I get this error:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/tmp/ivona.py\", line 7, in <module>\r\n    v.fetch_voice(\"hello\", '/tmp/output.mp3')\r\n  File \"/usr/local/lib/python3.5/dist-packages/pyvona.py\", line 116, in fetch_voice\r\n    self.fetch_voice_fp(text_to_speak, f)\r\n  File \"/usr/local/lib/python3.5/dist-packages/pyvona.py\", line 123, in fetch_voice_fp\r\n    self._generate_payload(text_to_speak), self._region, self._host)\r\n  File \"/usr/local/lib/python3.5/dist-packages/pyvona.py\", line 255, in _send_amazon_auth_packet_v4\r\n    return self._session.post(endpoint, data=request_parameters, headers=headers)\r\n  File \"/usr/local/lib/python3.5/dist-packages/requests/sessions.py\", line 514, in post\r\n    return self.request('POST', url, data=data, json=json, **kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/requests/sessions.py\", line 457, in request\r\n    prep = self.prepare_request(req)\r\n  File \"/usr/local/lib/python3.5/dist-packages/requests/sessions.py\", line 390, in prepare_request\r\n    hooks=merge_hooks(request.hooks, self.hooks),\r\n  File \"/usr/local/lib/python3.5/dist-packages/requests/models.py\", line 295, in prepare\r\n    self.prepare_headers(headers)\r\n  File \"/usr/local/lib/python3.5/dist-packages/requests/models.py\", line 409, in prepare_headers\r\n    check_header_validity(header)\r\n  File \"/usr/local/lib/python3.5/dist-packages/requests/utils.py\", line 756, in check_header_validity\r\n    \"not %s\" % (value, type(value)))\r\nrequests.exceptions.InvalidHeader: Header value 245 must be of type str or bytes, not <class 'int'>\r\n```","created_at":"2016-08-15T12:23:30Z","updated_at":"2016-08-15T12:23:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/guysoft/pyvona/pulls/1/commits","review_comments_url":"https://api.github.com/repos/guysoft/pyvona/pulls/1/comments","review_comment_url":"https://api.github.com/repos/guysoft/pyvona/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guysoft/pyvona/issues/1/comments","statuses_url":"https://api.github.com/repos/guysoft/pyvona/statuses/8ef7527407d4bbf1fcb6c817b36180583b086dea","head":{"label":"guysoft:hear-error-fix","ref":"hear-error-fix","sha":"8ef7527407d4bbf1fcb6c817b36180583b086dea","user":{"login":"guysoft","id":325670,"avatar_url":"https://avatars.githubusercontent.com/u/325670?v=3","gravatar_id":"","url":"https://api.github.com/users/guysoft","html_url":"https://github.com/guysoft","followers_url":"https://api.github.com/users/guysoft/followers","following_url":"https://api.github.com/users/guysoft/following{/other_user}","gists_url":"https://api.github.com/users/guysoft/gists{/gist_id}","starred_url":"https://api.github.com/users/guysoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guysoft/subscriptions","organizations_url":"https://api.github.com/users/guysoft/orgs","repos_url":"https://api.github.com/users/guysoft/repos","events_url":"https://api.github.com/users/guysoft/events{/privacy}","received_events_url":"https://api.github.com/users/guysoft/received_events","type":"User","site_admin":false},"repo":{"id":65730180,"name":"pyvona","full_name":"guysoft/pyvona","owner":{"login":"guysoft","id":325670,"avatar_url":"https://avatars.githubusercontent.com/u/325670?v=3","gravatar_id":"","url":"https://api.github.com/users/guysoft","html_url":"https://github.com/guysoft","followers_url":"https://api.github.com/users/guysoft/followers","following_url":"https://api.github.com/users/guysoft/following{/other_user}","gists_url":"https://api.github.com/users/guysoft/gists{/gist_id}","starred_url":"https://api.github.com/users/guysoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guysoft/subscriptions","organizations_url":"https://api.github.com/users/guysoft/orgs","repos_url":"https://api.github.com/users/guysoft/repos","events_url":"https://api.github.com/users/guysoft/events{/privacy}","received_events_url":"https://api.github.com/users/guysoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guysoft/pyvona","description":"A python wrapper for Amazon's IVONA API","fork":true,"url":"https://api.github.com/repos/guysoft/pyvona","forks_url":"https://api.github.com/repos/guysoft/pyvona/forks","keys_url":"https://api.github.com/repos/guysoft/pyvona/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guysoft/pyvona/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guysoft/pyvona/teams","hooks_url":"https://api.github.com/repos/guysoft/pyvona/hooks","issue_events_url":"https://api.github.com/repos/guysoft/pyvona/issues/events{/number}","events_url":"https://api.github.com/repos/guysoft/pyvona/events","assignees_url":"https://api.github.com/repos/guysoft/pyvona/assignees{/user}","branches_url":"https://api.github.com/repos/guysoft/pyvona/branches{/branch}","tags_url":"https://api.github.com/repos/guysoft/pyvona/tags","blobs_url":"https://api.github.com/repos/guysoft/pyvona/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guysoft/pyvona/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guysoft/pyvona/git/refs{/sha}","trees_url":"https://api.github.com/repos/guysoft/pyvona/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guysoft/pyvona/statuses/{sha}","languages_url":"https://api.github.com/repos/guysoft/pyvona/languages","stargazers_url":"https://api.github.com/repos/guysoft/pyvona/stargazers","contributors_url":"https://api.github.com/repos/guysoft/pyvona/contributors","subscribers_url":"https://api.github.com/repos/guysoft/pyvona/subscribers","subscription_url":"https://api.github.com/repos/guysoft/pyvona/subscription","commits_url":"https://api.github.com/repos/guysoft/pyvona/commits{/sha}","git_commits_url":"https://api.github.com/repos/guysoft/pyvona/git/commits{/sha}","comments_url":"https://api.github.com/repos/guysoft/pyvona/comments{/number}","issue_comment_url":"https://api.github.com/repos/guysoft/pyvona/issues/comments{/number}","contents_url":"https://api.github.com/repos/guysoft/pyvona/contents/{+path}","compare_url":"https://api.github.com/repos/guysoft/pyvona/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guysoft/pyvona/merges","archive_url":"https://api.github.com/repos/guysoft/pyvona/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guysoft/pyvona/downloads","issues_url":"https://api.github.com/repos/guysoft/pyvona/issues{/number}","pulls_url":"https://api.github.com/repos/guysoft/pyvona/pulls{/number}","milestones_url":"https://api.github.com/repos/guysoft/pyvona/milestones{/number}","notifications_url":"https://api.github.com/repos/guysoft/pyvona/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guysoft/pyvona/labels{/name}","releases_url":"https://api.github.com/repos/guysoft/pyvona/releases{/id}","deployments_url":"https://api.github.com/repos/guysoft/pyvona/deployments","created_at":"2016-08-15T12:21:05Z","updated_at":"2016-08-15T12:21:05Z","pushed_at":"2016-08-15T12:23:30Z","git_url":"git://github.com/guysoft/pyvona.git","ssh_url":"git@github.com:guysoft/pyvona.git","clone_url":"https://github.com/guysoft/pyvona.git","svn_url":"https://github.com/guysoft/pyvona","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"guysoft:master","ref":"master","sha":"ff462230e30f9a809ad773216332168d046f82e2","user":{"login":"guysoft","id":325670,"avatar_url":"https://avatars.githubusercontent.com/u/325670?v=3","gravatar_id":"","url":"https://api.github.com/users/guysoft","html_url":"https://github.com/guysoft","followers_url":"https://api.github.com/users/guysoft/followers","following_url":"https://api.github.com/users/guysoft/following{/other_user}","gists_url":"https://api.github.com/users/guysoft/gists{/gist_id}","starred_url":"https://api.github.com/users/guysoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guysoft/subscriptions","organizations_url":"https://api.github.com/users/guysoft/orgs","repos_url":"https://api.github.com/users/guysoft/repos","events_url":"https://api.github.com/users/guysoft/events{/privacy}","received_events_url":"https://api.github.com/users/guysoft/received_events","type":"User","site_admin":false},"repo":{"id":65730180,"name":"pyvona","full_name":"guysoft/pyvona","owner":{"login":"guysoft","id":325670,"avatar_url":"https://avatars.githubusercontent.com/u/325670?v=3","gravatar_id":"","url":"https://api.github.com/users/guysoft","html_url":"https://github.com/guysoft","followers_url":"https://api.github.com/users/guysoft/followers","following_url":"https://api.github.com/users/guysoft/following{/other_user}","gists_url":"https://api.github.com/users/guysoft/gists{/gist_id}","starred_url":"https://api.github.com/users/guysoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guysoft/subscriptions","organizations_url":"https://api.github.com/users/guysoft/orgs","repos_url":"https://api.github.com/users/guysoft/repos","events_url":"https://api.github.com/users/guysoft/events{/privacy}","received_events_url":"https://api.github.com/users/guysoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guysoft/pyvona","description":"A python wrapper for Amazon's IVONA API","fork":true,"url":"https://api.github.com/repos/guysoft/pyvona","forks_url":"https://api.github.com/repos/guysoft/pyvona/forks","keys_url":"https://api.github.com/repos/guysoft/pyvona/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guysoft/pyvona/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guysoft/pyvona/teams","hooks_url":"https://api.github.com/repos/guysoft/pyvona/hooks","issue_events_url":"https://api.github.com/repos/guysoft/pyvona/issues/events{/number}","events_url":"https://api.github.com/repos/guysoft/pyvona/events","assignees_url":"https://api.github.com/repos/guysoft/pyvona/assignees{/user}","branches_url":"https://api.github.com/repos/guysoft/pyvona/branches{/branch}","tags_url":"https://api.github.com/repos/guysoft/pyvona/tags","blobs_url":"https://api.github.com/repos/guysoft/pyvona/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guysoft/pyvona/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guysoft/pyvona/git/refs{/sha}","trees_url":"https://api.github.com/repos/guysoft/pyvona/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guysoft/pyvona/statuses/{sha}","languages_url":"https://api.github.com/repos/guysoft/pyvona/languages","stargazers_url":"https://api.github.com/repos/guysoft/pyvona/stargazers","contributors_url":"https://api.github.com/repos/guysoft/pyvona/contributors","subscribers_url":"https://api.github.com/repos/guysoft/pyvona/subscribers","subscription_url":"https://api.github.com/repos/guysoft/pyvona/subscription","commits_url":"https://api.github.com/repos/guysoft/pyvona/commits{/sha}","git_commits_url":"https://api.github.com/repos/guysoft/pyvona/git/commits{/sha}","comments_url":"https://api.github.com/repos/guysoft/pyvona/comments{/number}","issue_comment_url":"https://api.github.com/repos/guysoft/pyvona/issues/comments{/number}","contents_url":"https://api.github.com/repos/guysoft/pyvona/contents/{+path}","compare_url":"https://api.github.com/repos/guysoft/pyvona/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guysoft/pyvona/merges","archive_url":"https://api.github.com/repos/guysoft/pyvona/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guysoft/pyvona/downloads","issues_url":"https://api.github.com/repos/guysoft/pyvona/issues{/number}","pulls_url":"https://api.github.com/repos/guysoft/pyvona/pulls{/number}","milestones_url":"https://api.github.com/repos/guysoft/pyvona/milestones{/number}","notifications_url":"https://api.github.com/repos/guysoft/pyvona/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guysoft/pyvona/labels{/name}","releases_url":"https://api.github.com/repos/guysoft/pyvona/releases{/id}","deployments_url":"https://api.github.com/repos/guysoft/pyvona/deployments","created_at":"2016-08-15T12:21:05Z","updated_at":"2016-08-15T12:21:05Z","pushed_at":"2016-08-15T12:23:30Z","git_url":"git://github.com/guysoft/pyvona.git","ssh_url":"git@github.com:guysoft/pyvona.git","clone_url":"https://github.com/guysoft/pyvona.git","svn_url":"https://github.com/guysoft/pyvona","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guysoft/pyvona/pulls/1"},"html":{"href":"https://github.com/guysoft/pyvona/pull/1"},"issue":{"href":"https://api.github.com/repos/guysoft/pyvona/issues/1"},"comments":{"href":"https://api.github.com/repos/guysoft/pyvona/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/guysoft/pyvona/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/guysoft/pyvona/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guysoft/pyvona/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/guysoft/pyvona/statuses/8ef7527407d4bbf1fcb6c817b36180583b086dea"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":23,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"guysoft"}}