Yum repo doesn't work

Added a repository according to the instructions Install Elasticsearch with RPM | Elasticsearch Guide [7.13] | Elastic

When yum trying download https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz I got error.

When I trying open in browser https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz, I see:

XML Parsing Error: not well-formed
Location: https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz
Line Number 1, Column 1:

^

can you share the error you got when calling yum instead of the one you got when using the browser? Which distribution are you using?

Centos 8
My error:

sudo yum check-update
Repository extras is listed more than once in the configuration
Elastic repository for 7.x packages                                                                                                                                       372 kB/s | 1.0 MB     00:02
Errors during downloading metadata for repository 'elastic-7.x':
  - Curl error (18): Transferred a partial file for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [transfer closed with 27624991 bytes remaining to read]
  - Curl error (18): Transferred a partial file for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [transfer closed with 25293263 bytes remaining to read]
  - Curl error (35): SSL connect error for https://artifacts.elastic.co/packages/7.x/yum/repodata/primary.xml.gz [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to artifacts.elastic.co:443 ]
  - Curl error (52): Server returned nothing (no headers, no data) for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [Empty reply from server]
Error: Failed to download metadata for repo 'elastic-7.x': Yum repo downloading error: Downloading error(s): repodata/filelists.xml.gz - Cannot download, all mirrors were already tried without success

After this error I added sslverify=false in /etc/yum.conf. And got this error:

sudo yum check-update
Repository extras is listed more than once in the configuration
Elastic repository for 7.x packages                                                                                                                                       327 kB/s | 671 kB     00:02
Errors during downloading metadata for repository 'elastic-7.x':
  - Curl error (18): Transferred a partial file for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [transfer closed with 27757003 bytes remaining to read]
  - Curl error (52): Server returned nothing (no headers, no data) for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [Empty reply from server]
  - Curl error (18): Transferred a partial file for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [transfer closed with 28030619 bytes remaining to read]
  - Curl error (18): Transferred a partial file for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [transfer closed with 28355944 bytes remaining to read]
Error: Failed to download metadata for repo 'elastic-7.x': Yum repo downloading error: Downloading error(s): repodata/filelists.xml.gz - Cannot download, all mirrors were already tried without success