{"action":"opened","issue":{"url":"https://api.github.com/repos/alxgmpr/PyNode/issues/1","repository_url":"https://api.github.com/repos/alxgmpr/PyNode","labels_url":"https://api.github.com/repos/alxgmpr/PyNode/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/alxgmpr/PyNode/issues/1/comments","events_url":"https://api.github.com/repos/alxgmpr/PyNode/issues/1/events","html_url":"https://github.com/alxgmpr/PyNode/issues/1","id":309645259,"number":1,"title":"Invalid Header Value ","user":{"login":"audrey-dogman","id":16807455,"avatar_url":"https://avatars1.githubusercontent.com/u/16807455?v=4","gravatar_id":"","url":"https://api.github.com/users/audrey-dogman","html_url":"https://github.com/audrey-dogman","followers_url":"https://api.github.com/users/audrey-dogman/followers","following_url":"https://api.github.com/users/audrey-dogman/following{/other_user}","gists_url":"https://api.github.com/users/audrey-dogman/gists{/gist_id}","starred_url":"https://api.github.com/users/audrey-dogman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audrey-dogman/subscriptions","organizations_url":"https://api.github.com/users/audrey-dogman/orgs","repos_url":"https://api.github.com/users/audrey-dogman/repos","events_url":"https://api.github.com/users/audrey-dogman/events{/privacy}","received_events_url":"https://api.github.com/users/audrey-dogman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-29T07:18:25Z","updated_at":"2018-03-29T07:18:25Z","closed_at":null,"author_association":"NONE","body":"I am using Ubuntu 16.04. When launching, it gets to the end of the config stage and says that the Header Value is invalid. I suspect that it's adding a new line at the end of the key, but I have checked a million times and there is no new line at the end of the apikey.txt file.\r\n\r\nHere's the full traceback:\r\n> Exception in thread Thread-1:\r\n> Traceback (most recent call last):\r\n>   File \"/usr/lib/python2.7/threading.py\", line 801, in __bootstrap_inner\r\n>     self.run()\r\n>   File \"main.py\", line 426, in run\r\n>     self.generate_linode()\r\n>   File \"main.py\", line 143, in generate_linode\r\n>     region = client.get_regions()[3]\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/linode/linode_client.py\", line 518, in get_regions\r\n>     return self._get_and_filter(Region, *filters)\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/linode/linode_client.py\", line 658, in _get_and_filter\r\n>     return self._get_objects(obj_type.api_list(), obj_type, filters=parsed_filters)\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/linode/linode_client.py\", line 489, in _get_objects\r\n>     response_json = self.get(endpoint, model=model, filters=filters)\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/linode/linode_client.py\", line 505, in get\r\n>     return self._api_call(*args, method=requests.get, **kwargs)\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/linode/linode_client.py\", line 462, in _api_call\r\n>     response = method(url, headers=headers, data=body)\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/requests/api.py\", line 72, in get\r\n>     return request('get', url, params=params, **kwargs)\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/requests/api.py\", line 58, in request\r\n>     return session.request(method=method, url=url, **kwargs)\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/requests/sessions.py\", line 508, in request\r\n>     resp = self.send(prep, **send_kwargs)\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/requests/sessions.py\", line 618, in send\r\n>     r = adapter.send(request, **kwargs)\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/requests/adapters.py\", line 440, in send\r\n>     timeout=timeout\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/urllib3/connectionpool.py\", line 601, in urlopen\r\n>     chunked=chunked)\r\n>   File \"/home/audrey/.local/lib/python2.7/site-packages/urllib3/connectionpool.py\", line 357, in _make_request\r\n>     conn.request(method, url, **httplib_request_kw)\r\n>   File \"/usr/lib/python2.7/httplib.py\", line 1057, in request\r\n>     self._send_request(method, url, body, headers)\r\n>   File \"/usr/lib/python2.7/httplib.py\", line 1096, in _send_request\r\n>     self.putheader(hdr, value)\r\n>   File \"/usr/lib/python2.7/httplib.py\", line 1035, in putheader\r\n>     raise ValueError('Invalid header value %r' % (one_value,))\r\n> ValueError: Invalid header value 'Bearer 296d3[snip, API key]5bcfe7\\n'\r\n> "}}
{"actor":{"display_login":"audrey-dogman"}}