Digging into this error, it looks like this is a DNS issue where api.hubapi.com cannot be resolved to an IP address in your environment and I note that people resolved this by adding the hostname in Ubuntu /etc/hosts file. Referencing these discussion here: