Did you have http_proxy set in your Graylog configuration?
Other option would be to raise the http_read_timeout - maybe the connection to the API isn’t the fastest…