in reply to Works on W10, but not on Debian
The get method returns an object that has an error method. Looking at that should give some hint.
I would assume you have some certificate problem as you access an https-url.