Failed to Query

Hi I’m getting this below error while I’m running any script.what would be the issue?

Error: Failed to query available provider packages
Could not retrieve the list of available versions for provider hashicorp/local: could not connect to Failed to request
discovery document: Get"": http: server gave HTTP response to HTTPS client