Closed mfin closed 5 years ago
I've been digging deeper and I've come to the conclusion that sleekxmpp==1.3.3
breaks Hipchat support, their certificate reports dates in two digit format. So, I've installed sleekxmpp==1.3.2
and I've come to this.
14:02:36 ERROR sleekxmpp.basexmpp <TagSet object at 0x7fca147e4ba8 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x7fca1478ab38 tagSet <TagSet object at 0x7fca38f3a320 tags 0:0:4> encoding iso-8859-1>
Traceback (most recent call last):
File "/home/matjaz/Play/hipchat-bot/env/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1490, in _process
if not self.__read_xml():
File "/home/matjaz/Play/hipchat-bot/env/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1562, in __read_xml
self.__spawn_event(xml)
File "/home/matjaz/Play/hipchat-bot/env/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1630, in __spawn_event
handler.prerun(stanza_copy)
File "/home/matjaz/Play/hipchat-bot/env/lib/python3.6/site-packages/sleekxmpp/xmlstream/handler/callback.py", line 64, in prerun
self.run(payload, True)
File "/home/matjaz/Play/hipchat-bot/env/lib/python3.6/site-packages/sleekxmpp/xmlstream/handler/callback.py", line 76, in run
self._pointer(payload)
File "/home/matjaz/Play/hipchat-bot/env/lib/python3.6/site-packages/sleekxmpp/features/feature_starttls/starttls.py", line 64, in _handle_starttls_proceed
if self.xmpp.start_tls():
File "/home/matjaz/Play/hipchat-bot/env/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 887, in start_tls
cert.verify(self._expected_server_name, self._der_cert)
File "/home/matjaz/Play/hipchat-bot/env/lib/python3.6/site-packages/sleekxmpp/xmlstream/cert.py", line 142, in verify
cert_names = extract_names(raw_cert)
File "/home/matjaz/Play/hipchat-bot/env/lib/python3.6/site-packages/sleekxmpp/xmlstream/cert.py", line 73, in extract_names
asn1Spec=OctetString())[0]
File "/home/matjaz/Play/hipchat-bot/env/lib/python3.6/site-packages/pyasn1/codec/ber/decoder.py", line 1318, in __call__
'%s not in asn1Spec: %r' % (tagSet, asn1Spec)
pyasn1.error.PyAsn1Error: <TagSet object at 0x7fca147e4ba8 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x7fca1478ab38 tagSet <TagSet object at 0x7fca38f3a320 tags 0:0:4> encoding iso-8859-1>
That looks like https://github.com/etingof/pyasn1/issues/112. Unfortunately these are bugs in the underlying libraries we use and so not something we can directly fix.
I can confirm that downgrading sleekxmpp==1.3.2
, pyasn1==0.3.7
and pyasn1-modules==0.1.5
makes everything work again.
Hipchat is going away here very soon.
A solution seems present, however, the hipchat service is being shutdown in about 5 weeks.
Atlassian is providing instructions (https://www.atlassian.com/partnerships/slack/migration) how migrate to Slack.
We do have a functional Slack backend to support those organizations migrating.
In order to let us help you better, please fill out the following fields as best you can:
I am...
I am running...
Issue description
I have trouble connecting to HipChat. Below is my configuration file and an error I get.
Steps to reproduce
Additional info