Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"grpc: error while marshaling: string field contains invalid UTF-8.." in 4.51.0 windows_amd64 #13630

Closed
Ziemowit-LH opened this issue Feb 2, 2023 · 4 comments
Assignees
Labels

Comments

@Ziemowit-LH
Copy link

Ziemowit-LH commented Feb 2, 2023

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

Terraform v1.3.6
on windows_amd64

  • provider registry.terraform.io/hashicorp/google v4.51.0

Same with Terraform v1.2.9

Affected Resource(s)

Provider itself.

Terraform Configuration Files

terraform {
  required_providers {
    google = {
      version = "= 4.51"
    }
  }
}

provider "google" {}

Debug Output

https://gist.github.com/Ziemowit-LH/afb8cee9c8984397121f9c2a51c57242

Panic Output

Expected Behavior

Plan successful.

Actual Behavior

╷
│ Error: Failed to load plugin schemas
│
│ Error while loading schemas for plugin components: Failed to obtain provider schema: Could not load the schema for provider registry.terraform.io/hashicorp/google: failed to retrieve schema from provider "registry.terraform.io/hashicorp/google": Plugin error: The plugin        
│ returned an unexpected error from plugin.(*GRPCProvider).GetProviderSchema: rpc error: code = Internal desc = grpc: error while marshaling: string field contains invalid UTF-8..
╵

Steps to Reproduce

  1. terraform init
  2. terraform plan

Important Factoids

google provider 4.50 does not have this behaviour.
Does not happen for Terraform v1.3.6 on linux_amd64

References

azurerm provider experience(d) same error:

@Ziemowit-LH Ziemowit-LH added the bug label Feb 2, 2023
@edwardmedia edwardmedia self-assigned this Feb 2, 2023
@edwardmedia
Copy link
Contributor

edwardmedia commented Feb 2, 2023

looks like a terraform code issue.

@Ziemowit-LH do you have a specific config that I can use to repro the issue?

@gisard
Copy link

gisard commented Feb 6, 2023

try to transfer it by []byte

@Ziemowit-LH
Copy link
Author

looks like a terraform code issue.

@Ziemowit-LH do you have a specific config that I can use to repro the issue?

Hello,
This is very weird.
I tried to replicate this today and it's not happening, while 4 days ago I it was happening consistently both in VS Code terminal and in Windows Terminal (Powershell).
The debug trace is the same up to the error too...

I have to close this issue then. Must have been something weird on my machine.

@github-actions
Copy link

github-actions bot commented Mar 9, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants