Closed marxistvegan closed 7 years ago
Googling for TypeError: __str__ returned non-string (type Error)
gave a few links related to the requests
library which external_cloud.py
also uses, e.g. https://github.com/requests/requests/issues/2524. They seem to be related to handling SSL errors.
I checked your URL, and the certificate expired in February. I would expect fixing this to solve the problem.
I agree, however, that the error message is horrible, at best. I will try to find out why it doesn't show anything better.
The weirdness of the error message seems to be version dependent.
On Ubuntu 16.04 (Python 2.7.12, requests 2.16.5), the message is: WARNING: An error occured during the request: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
; on Ubuntu 17.04 (Python 2.7.13, requests 2.10.0), WARNING: An error occured during the request: ("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",)
.
Maybe updating your requests library would create a more helpful error message?
Here is an experimental fix (aka hack): Can you try fdf9d86259d76f3d71d897e8d71a5775c626cfb5?
Thanks! Good catch! Now a different error that i think i can resolve but this is resolved from updating the cert :)
"Fixed" by fdf9d86259d76f3d71d897e8d71a5775c626cfb5 (making the error message clearer for older request/urllib/ssl errors)
Hey folks, So I followed the instructions I thought to a 'T'
The nextcloud instance can talk the 'bosh' 'internal_plain' works to login
When I try to use this I am not able to login, on the client says not authorized, so I tried to run
./external_cloud.py -c /etc/external_cloud.conf -l /var/log/prosody/ -I <nextcloud user> <nextcloud domain>
Not sure where to start