"AttributeError: 'NoneType' object has no attribute 'peer_certificate'" on track switch
Closed this issue · 1 comments
I get this after a song has ended. I can manually skip to the next song but if a song ends I have to restart the client.
Here is the full trace. This is on cygwin 64-bit:
(8tracks:summer 14')>
Song has ended!
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in run_code
exec code in run_globals
File "/home/***/orochi/orochi/client.py", line 734, in
main()
File "/home/**__/orochi/orochi/client.py", line 731, in main
client.cmdloop()
File "/home/_/orochi/orochi/client.py", line 168, in cmdloop
super(Client, self).cmdloop()
File "/usr/lib/python2.7/cmd.py", line 142, in cmdloop
stop = self.onecmd(line)
File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
return func(arg)
File "/home//orochi/orochi/client.py", line 363, in do_play
i.cmdloop()
File "/home/**/orochi/orochi/client.py", line 492, in cmdloop
super(PlayCommand, self).cmdloop()
File "/usr/lib/python2.7/cmd.py", line 130, in cmdloop
line = raw_input(self.prompt)
File "/home/**/orochi/orochi/client.py", line 511, in _song_end_handler
self.status = self.api.next_track(self.mix_id)
File "orochi/api.py", line 261, in next_track
return self._playback_control(mix_id, 'next')
File "orochi/api.py", line 231, in _playback_control
'mix_id': mix_id,
File "orochi/api.py", line 58, in _get
r = self.s.get(self.base_url + resource, params=params, *_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 347, in get
return self.request('GET', url, *_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 335, in request
resp = self.send(prep, *_send_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 438, in send
r = adapter.send(request, *_kwargs)
File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 292, in send
timeout=timeout
File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 428, in urlopen
body=body, headers=headers)
File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 280, in _make_request
conn.request(method, url, *_httplib_request_kw)
File "/usr/lib/python2.7/httplib.py", line 973, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1007, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 791, in send
self.connect()
File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 114, in connect
match_hostname(self.sock.getpeercert(),
File "/usr/lib/python2.7/ssl.py", line 181, in getpeercert
return self._sslobj.peer_certificate(binary_form)
AttributeError: 'NoneType' object has no attribute 'peer_certificate'
This is probably either an issue with cygwin, or with requests.
I'd open an issue here https://github.com/kennethreitz/requests/issues and try to see if they can help you. If you do, please mention me in the ticket message, so I get notified about any answers.
I'll close this for now, if you disagree, please comment :)