Error: Failed to query available provider packages - please HELP

PS C:\terraform> terraform init

Initializing the backend…

Initializing provider plugins…

  • Finding hashicorp/azurerm versions matching “3.18.0”…

    │ Error: Failed to query available provider packages

    │ Could not retrieve the list of available versions for provider hashicorp/azurerm: could not
    │ connect to registry.terraform.io: Failed to request discovery document: Get
    │ “https://registry.terraform.io/.well-known/terraform.json”: read tcp
    │ 10.134.44.6:59375->151.101.126.49:443: wsarecv: An existing connection was forcibly closed by
    │ the remote host.

Did you able to solve it and if yes please paste the solution here I am also struggling with same issue.

Thanks,
Muhammad

@apparentlymart - I’m Also struggling because of this issue.
Your support and guidance required

Initializing the backend…

Initializing provider plugins…

  • Finding hashicorp/azurerm versions matching “3.105.0”…

    │ Error: Failed to query available provider packages

    │ Could not retrieve the list of available versions for provider hashicorp/azurerm: could not query provider registry for
    Terraform Registry the request failed after 2 attempts, please try again later: Get
    │ “https://registry.terraform.io/v1/providers/hashicorp/azurerm/versions”: read tcp
    │ [2401:4900:1c5f:1f43:5555:c61b:4dc4:44c]:51838->[2600:9000:2658:8400:16:1aa3:1440:93a1]:443: wsarecv: An existing
    │ connection was forcibly closed by the remote host.