This error indicates that your WP installation couldn’t perform a network request to remote API. Either because it’s prevented from doing so in general (by firewall for example) or core couldn’t correctly determine and/or use available HTTP transport.
Core Control plugin is a good starting point to log and troubleshoot such network errors.