Skip to content

Instantly share code, notes, and snippets.

@chrisob
Created February 7, 2020 18:56
Show Gist options
  • Save chrisob/52250906dc38c6f300673033a60c26a1 to your computer and use it in GitHub Desktop.
Save chrisob/52250906dc38c6f300673033a60c26a1 to your computer and use it in GitHub Desktop.
GCP TF 400 error
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: ---[ REQUEST ]---------------------------------------
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: POST /v1beta1/projects/REDACTED/locations/europe-west3/clusters/my-cluster:setResourceLabels?alt=json&prettyPrint=false HTTP/1.1
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Host: container.googleapis.com
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: User-Agent: google-api-go-client/0.5 HashiCorp Terraform/0.12.20 (+https://www.terraform.io) Terraform Plugin SDK/1.4.0 terraform-provider-google/3.7.0
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Content-Length: 33
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Content-Type: application/json
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: X-Goog-Api-Client: gl-go/1.13.0 gdcl/20191026
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Accept-Encoding: gzip
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5:
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: {
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: "resourceLabels": {
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: "blah": "hi"
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: }
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: }
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5:
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: -----------------------------------------------------
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: 2020/02/07 19:50:38 [DEBUG] Google API Response Details:
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: ---[ RESPONSE ]--------------------------------------
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: HTTP/2.0 400 Bad Request
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Alt-Svc: quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Cache-Control: private
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Content-Type: application/json; charset=UTF-8
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Date: Fri, 07 Feb 2020 18:50:38 GMT
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Server: ESF
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Vary: Origin
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Vary: X-Origin
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Vary: Referer
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: X-Content-Type-Options: nosniff
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: X-Frame-Options: SAMEORIGIN
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: X-Xss-Protection: 0
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5:
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: {
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: "error": {
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: "code": 400,
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: "message": "Labels could not be set due to fingerprint mismatch; try again with the proper fingerprint: incorrect fingerprint supplied was \"\", the expected one is \"a9dc16a7\".",
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: "errors": [
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: {
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: "message": "Labels could not be set due to fingerprint mismatch; try again with the proper fingerprint: incorrect fingerprint supplied was \"\", the expected one is \"a9dc16a7\".",
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: "domain": "global",
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: "reason": "failedPrecondition"
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: }
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: ],
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: "status": "FAILED_PRECONDITION"
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: }
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: }
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5:
2020-02-07T19:50:38.519+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: -----------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment