Error: Post https:///api: http: no Host in request URL

Error: Post https:///api: http: no Host in request URL

on line 0:
(source code not available)

post upgrading terraform version to 12.10 getting above error.