I have been struggling with this error. I did reset my computer but same thing. Please I need help.
$ terraform init
Initializing the backend…
Initializing provider plugins…
- Finding latest version of hashicorp/random…
- Finding latest version of hashicorp/aws…
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/random:
│ could not connect to registry.terraform.io: failed to request discovery document: Get
│ “https://registry.terraform.io/.well-known/terraform.json”: read tcp
│ [2600:8806:2a06:d700:8d66:8a59:4691:9c81]:57186->[2600:9000:2508:c000:16:1aa3:1440:93a1]:443:
│ wsarecv: An existing connection was forcibly closed by the remote host.