Comments (19)
Hey,
thanks for your report!
Please run
python -c "import requests; requests.get('https://lut.im/')"
and send me the whole output.
from screencloud-lutim.
Here you are ^^:
C:\Python27>python -c "import requests; requests.get('https://lut.im/')"
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\requests\api.py", line 55, in get
return request('get', url, *_kwargs)
File "C:\Python27\lib\requests\api.py", line 44, in request
return session.request(method=method, url=url, *_kwargs)
File "C:\Python27\lib\requests\sessions.py", line 357, in request
resp = self.send(prep, *_send_kwargs)
File "C:\Python27\lib\requests\sessions.py", line 460, in send
r = adapter.send(request, *_kwargs)
File "C:\Python27\lib\requests\adapters.py", line 362, in send
raise SSLError(e)
requests.exceptions.SSLError: hostname 'lut.im' doesn't match either of 'tontonroger.org', 'www.tontonroger.org'
from screencloud-lutim.
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 screencloud-lutim.
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
from screencloud-lutim.
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.
from screencloud-lutim.
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.
from screencloud-lutim.
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.
from screencloud-lutim.
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 ?)
from screencloud-lutim.
You can try to visit https://lut.im and download the cert
Firefox
- Click the lock-symbol
More information
View certificate
Details
->Export
- Double-click the cert-file. It should be added to your windows-cert-manager.
Chrome
- Click the lock-symbol
Connection
Certificate-Information
Details
->Export
- Double-click the cert-file. It should be added to your windows-cert-manager.
Yes, good idea. Will add that option soon.
from screencloud-lutim.
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).
from screencloud-lutim.
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.
from screencloud-lutim.
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.
from screencloud-lutim.
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.
from screencloud-lutim.
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.
from screencloud-lutim.
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.
from screencloud-lutim.
Works fine on windows with opening the file in rb-mode, lets try on linux.
from screencloud-lutim.
Please let me know, if your problem is solved with the latest commit.
from screencloud-lutim.
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
from screencloud-lutim.
Thanks for your help!
from screencloud-lutim.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screencloud-lutim.