Open xX-Nexus-Xx opened 3 years ago
gaierror : [Errno -2] Name does not resolve
Looks to me you have a error in your hostname, or your dns server cant resolve your hostname for your mqtt server. Try the ip address for your mqtt server.
I always provide the IP address in these cases. I just had added the port 1880 at the end of the ip-address ;)
all good now .. works great!
thanks for the quick response and help
I have the same issue. Adding the port for the MQTT Listener after its IP address (...XX:PORT) did not fix it for me. I'm not sure what else to try. Ginlong-scraper runs on Docker on the same system my MQTT server runs (a Synology NAS). Does anyone else have this issue?
I'm getting error -2 ... looks like when trying to post MQTT
I have no passsword/user-id defined in my MQTT server
how can I fix the -2 errror
`2021-04-02 14:59:47,178 DEBUG Annual_Energy_Used: 0.0
2021-04-02 14:59:47,179 DEBUG Battery_Charge_Percent: 0.0
2021-04-02 14:59:47,179 INFO InfluxDB output is enabled, posting outputs now...
2021-04-02 14:59:47,199 DEBUG Starting new HTTP connection (1): 192.168.2.202:8086
2021-04-02 14:59:47,207 DEBUG http://192.168.2.202:8086 "POST /write?db=demo&precision=ms HTTP/1.1" 204 0
2021-04-02 14:59:47,207 INFO MQTT output is enabled, posting results now...
2021-04-02 14:59:47,237 ERROR gaierror : [Errno -2] Name does not resolve
2021-04-02 14:59:47,237 INFO Next run is scheduled at 02/04/2021 15:04:00`