Zypper patch - Repository is invalid

zypper list-patches or zypper patch result in errors repository is invalid.
please help us to solve the issue

SUSEConnect - -status-text shows modules registered and statusACTIVE

zypper patch

Refreshing service ‘Basesystem_Module_15_SP6_x86_64’.

Refreshing service ‘Desktop_Applications_Module_15_SP6_x86_64’.

Refreshing service ‘Python_3_Module_15_SP6_x86_64’.

Refreshing service ‘SAP_Applications_Module_15_SP6_x86_64’.

Refreshing service ‘SUSE_Linux_Enterprise_High_Availability_Extension_15_SP6_x86_64’.

Refreshing service ‘SUSE_Linux_Enterprise_Server_for_SAP_Applications_15_SP6_x86_64’.

Refreshing service ‘Server_Applications_Module_15_SP6_x86_64’.

Building repository ‘SLE-Module-Basesystem15-SP6-Pool’ cache …[done]

Retrieving repository ‘SLE-Module-Basesystem15-SP6-Updates’ metadata .[error]

Repository ‘SLE-Module-Basesystem15-SP6-Updates’ is invalid.

[Basesystem_Module_15_SP6_x86_64:SLE-Module-Basesystem15-SP6-Updates|https://updates.suse.com/SUSE/Updates/SLE-Module-Basesystem/15-SP6/x86_64/update?842fODCw2G2hooku911IS_f6Xd_VmYerZGf8_CsyXPZjyiBFaERAKlgqhRXtX0F32JWvVorry5HQjgw08ozja-mgNqhu5rfWqB8Yh3DZ22bIpIBRIP_pyouIhT9Gb-RygHp0Qbk4HHUMPwka9a8UWX8-6FWkXTcBgtyhFUbXyU4R\] Valid metadata not found at specified URL

History:

- [|] Error trying to read from ‘https://updates.suse.com/SUSE/Updates/SLE-Module-Basesystem/15-SP6/x86_64/update?842fODCw2G2hooku911IS_f6Xd_VmYerZGf8_CsyXPZjyiBFaERAKlgqhRXtX0F32JWvVorry5HQjgw08ozja-mgNqhu5rfWqB8Yh3DZ22bIpIBRIP_pyouIhT9Gb-RygHp0Qbk4HHUMPwka9a8UWX8-6FWkXTcBgtyhFUbXyU4R

Please check if the URIs defined for this repository are pointing to a valid repository.

Warning: Skipping repository ‘SLE-Module-Basesystem15-SP6-Updates’ because of the above error.

Building repository ‘SLE-Module-Desktop-Applications15-SP6-Pool’ cache .[done]

Repository ‘SLE-Module-Desktop-Applications15-SP6-Updates’ is invalid.

Building repository ‘SLE-Module-Python3-15-SP6-Pool’ cache .[done]

Retrieving repository ‘SLE-Module-Python3-15-SP6-Updates’ metadata …[error]

Repository ‘SLE-Module-Python3-15-SP6-Updates’ is invalid.

[

Repository ‘SLE-Module-SAP-Applications15-SP6-Updates’ is invalid.

….

Building repository ‘SLE-Product-HA15-SP6-Pool’ cache [done]

Repository ‘SLE-Product-HA15-SP6-Updates’ is invalid.

Building repository ‘SLE-Product-SLES_SAP15-SP6-Pool’ cache ..[done]

Repository ‘SLE-Product-SLES_SAP15-SP6-Updates’ is invalid.

Building repository ‘SLE-Module-Server-Applications15-SP6-Pool’ cache ..[done]

..

Repository ‘SLE-Module-Server-Applications15-SP6-Updates’ is invalid.

Some of the repositories have not been refreshed because of an error.

Loading repository data…

The issues is solved.
We had static entries for
scc.suse.com oder updates.suse.com in /etc/hosts.
These IP-Adresses are not static, we deleted these entries.

see: https://www.suse.com/support/kb/doc/?id=000021034
Accessing SUSE Customer Center and SUSE registry behind a firewall and/or through a proxy
“Our new host names will not provide a single static IP address any more”.