GithubHelp home page GithubHelp logo

Comments (19)

Thor77 avatar Thor77 commented on June 8, 2024

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.

kadogo avatar kadogo commented on June 8, 2024

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.

Thor77 avatar Thor77 commented on June 8, 2024

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.

kadogo avatar kadogo commented on June 8, 2024

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.

Thor77 avatar Thor77 commented on June 8, 2024

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.

kadogo avatar kadogo commented on June 8, 2024

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.

Thor77 avatar Thor77 commented on June 8, 2024

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.

kadogo avatar kadogo commented on June 8, 2024

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.

Thor77 avatar Thor77 commented on June 8, 2024

You can try to visit https://lut.im and download the cert

Firefox

  1. Click the lock-symbol
  2. More information
  3. View certificate
  4. Details -> Export
  5. Double-click the cert-file. It should be added to your windows-cert-manager.

Chrome

  1. Click the lock-symbol
  2. Connection
  3. Certificate-Information
  4. Details -> Export
  5. 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.

kadogo avatar kadogo commented on June 8, 2024

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.

Thor77 avatar Thor77 commented on June 8, 2024

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.

kadogo avatar kadogo commented on June 8, 2024

It's not the place but it if you can help me ^^
It seem that in Debian Jessie I have others issues with pyopenssl.

https://imgur.com/UORmIE4

If you have an idea.

from screencloud-lutim.

kadogo avatar kadogo commented on June 8, 2024

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.

Thor77 avatar Thor77 commented on June 8, 2024

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.

kadogo avatar kadogo commented on June 8, 2024

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.

Thor77 avatar Thor77 commented on June 8, 2024

Works fine on windows with opening the file in rb-mode, lets try on linux.

from screencloud-lutim.

Thor77 avatar Thor77 commented on June 8, 2024

Please let me know, if your problem is solved with the latest commit.

from screencloud-lutim.

kadogo avatar kadogo commented on June 8, 2024

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.

Thor77 avatar Thor77 commented on June 8, 2024

Thanks for your help!

from screencloud-lutim.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.