Open Elinvention opened 6 years ago
Had the same today on one server (in a pool of dozen of other servers, all using sleek 1.3.3, still dont know why this server is different). The reason is the not_before year date from here: https://github.com/fritzy/SleekXMPP/blob/7075a3b7fa857fc8f9db60da9d01fa1a11806659/sleekxmpp/xmlstream/cert.py#L109 was in two digit instead of 4, so strptime with %Y is not working.
Writed a work around in cert.py like this one:
try:
not_before = datetime.strptime(not_before, '%Y%m%d%H%M%SZ')
except ValueError:
not_before = datetime.strptime(not_before, '%y%m%d%H%M%SZ')
same for not_after
This is still an issue in 1.3.3
Hi there @fritzy - I'm a contributor to https://github.com/homeassistant/homeassistant
I experience this issue, and it has also come up from many users of Home Assistant, which uses this library by way of https://github.com/wpietri/sucks
Any chance of a new release going out that fixes this issue? We could alternatively pin our dependency to 1.3.2, but I'd rather not do that if a release is forthcoming.
Hello, I confirm this bug with the jwchat.org webservers. Any news?
I confirm it also on a pi
It is now solved in the develop branche no? The 1.3.2 was good and the 1.3.3 was broken.
FWIW worth I'm still having this issue on Hassio. The sucks library (https://github.com/wpietri/sucks) relies on this dependency which throws a day out of range error, thus breaking everyone who uses the sucks library in Hassio (which runs on a docker container on a raspberry pi).
So even though this problem might seem fixed for those on desktop computers, it still exists for other environments.
Hi there @fritzy - I'm a contributor to https://github.com/homeassistant/homeassistant
I experience this issue, and it has also come up from many users of Home Assistant, which uses this library by way of https://github.com/wpietri/sucks
Any chance of a new release going out that fixes this issue? We could alternatively pin our dependency to 1.3.2, but I'd rather not do that if a release is forthcoming.
@OverloadUT - doesn't hassio use slixmpp and sucks uses sleekxmpp. So wouldn't we have to revert sucks (https://github.com/wpietri/sucks) to use an older version of sleekxmpp and then re-pull sucks into into the hassio? Would that solve the issue? If so, I could always fork sucks if @wpietri doesn't want to revert sleekxmpp
@Elinvention @ThomasChiroux @jowrjowr @OverloadUT @tobiasBora @nicandris @meyerdenney can you publish logs with actual branche?
I can't connect anymore... Version 1.3.3-1 from Debian.