For me, this issue occurred because I migrated my working environment, and the new environment requires internet access via a Squid proxy. It is likely that the Squid proxy does not support HTTP2, which caused the codebase indexing process to fail in using the proxy to connect to the cloud, resulting in a handshake failure.
The solution is to search for “HTTP2” in the settings and enable the “Disable HTTP2” option. This resolved my issue, and everything is now working properly.