Closed kadogo closed 9 years ago
Hey,
thanks for your report!
Please run
python -c "import requests; requests.get('https://lut.im/')"
and send me the whole output.
Here you are ^^:
C:\Python27>python -c "import requests; requests.get('https://lut.im/')"
Traceback (most recent call last):
File "
Uhm, thats weird. For me everything works fine and the ssl-certificate also looks fine for me. Did you try to access the site with your browser? Did you get a certificate-warning?
From my browser no certificate warning. Is it possible that come that I use python 2.7 on Windows ?
Can you maybe add a possibility to use HTTPS and verify the certificate ?
Thank for your fast answers
requests
provides an option for verifying certs.
Please try
python -c "import requests; requests.get('https://lut.im/', verify=True)"
to see if this will solve the problem.
With python -c "import requests; requests.get('https://lut.im/', verify=True)" I have the same errors but if I use verify=False
python -c "import requests; requests.get('https://lut.im/', verify=False)" It is ok.
Yeah, thats the expected behaviour. But it's not really secure to not verify the cert... Feel free to just edit this line locally for you, but i won't include that into master.
Not possible to do like an option that we can untick if we will ?
Edit: If I modify the line your say so: r = requests.post(url, verify=False, data={'delete-day': delay, 'format': 'json', 'first-view': int(self.delete_on_firstview)}, files={'file': open(tmpFilename)}).json()
I have the next error. https://imgur.com/txa5ipH
Edit2: Sorry it appear once time only. But the link given by screenscloud not work Exemple: https://lut.im/uEgasR1h/SjaHjYVj (Is the problem be me ?)
You can try to visit https://lut.im and download the cert
More information
View certificate
Details
-> Export
Connection
Certificate-Information
Details
-> Export
Yes, good idea. Will add that option soon.
Sorry I edit my message before (if you can read ^^).
I just tried to export the certificate and install it on my system but I have the SSL Error (OS problem maybe).
I have to figure out how to suppress this InsecureRequestWarning
in a good way.
Never tested the plugin on a windows-system... seems like i should do that.
It's not the place but it if you can help me ^^ It seem that in Debian Jessie I have others issues with pyopenssl.
If you have an idea.
It can maybe help on Windows problem. I test in IDLE a this.
https://zerobin.net/?95d3e682f9f38b45#F5SKpWdJVsBihh1vr0crcMD1PIwqG31e//7lJEyk238=
When I append "46Bh2EPk/LwXzollJ" to my URL I see my image and delete after I'm seeing.
Hope it can help.
Just added a ssl-verify-option. It should solve your first problem.
I think the problem on windows is the tmp-path to the image (main.py - L75), because it uses /
as seperator between temp-folder and file-name, but windows needs \\
as seperator.
Thanks for ssl-verify option ^^
I was fault. The add of 'rb' is enough. I forgot to restart screencloud...
(I think add 'rb' on Linux work too, if you can test it and close the bug if it is good). Thanks.
Works fine on windows with opening the file in rb-mode, lets try on linux.
Please let me know, if your problem is solved with the latest commit.
Perfect for me (on Windows). rb-mode is for read binary, I see the tips here.
https://stackoverflow.com/questions/2159794/why-python-on-windows-cant-read-an-image-in-binary-mode
Thanks for your help!
Hi, I installed your screencloud plugin for lutim but I have a little problem. When I will upload an image, I have this error:
I use the plugin out of the box (with the URL https://lut.im/)
Upload failed! Failed to call LutimUploader.upload() Traceback (most recent call last): File "", line 81, in upload
TypeError: cannot concatenate 'str' and 'SSLError' objects
(And somtimes I have this error too)
Failed to call LutimUploader.showSettingsUI()
Thanks for your help.