HelioHost Posted April 12, 2017 Posted April 12, 2017 Hello,I wrote a Python 2 script, getting information from an API. Therefore I wrote those lines of code:try: data = requests.get("https://api.luftdaten.info/v1/sensor")except Exception as e: send(str(e))Unfortunately I get the following Error: hostname 'api.luftdaten.info' doesn't match 'adserve.gim-verlag.de'(The function send(text) sends to error via a chat messenger to me.) I did import the requests module.When I run the script locally everything works fine. Do you know, why it doesn't work?GreetingsLucas Hild
HelioHost Posted April 14, 2017 Author Posted April 14, 2017 Thank you for your support. Happily, I already found the solution. Thanks! On Fr, Apr 14, 2017 at 7:21 , Heliohost Support <support@heliohost.org> wrote: What is your username and main domain? You may view the status of your ticket by visiting: http://www.helionet.org/index/index.php?showtopic'851 Thank you,Heliohost supporthttp://www.heliohost.org/http://www.helionet.org/
Recommended Posts