Skip to content

Instantly share code, notes, and snippets.

@charleskorn
Last active April 12, 2020 09:51
Show Gist options
  • Save charleskorn/28b6424b4251a720a938611221d26ee0 to your computer and use it in GitHub Desktop.
Save charleskorn/28b6424b4251a720a938611221d26ee0 to your computer and use it in GitHub Desktop.
google_cloud_run_service doesn't show details when definition is invalid (https://github.com/terraform-providers/terraform-provider-google/issues/6099)
2020-04-12T09:43:21.872Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: -----------------------------------------------------
2020-04-12T09:43:24.134Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: 2020/04/12 09:43:24 [DEBUG] Google API Response Details:
2020-04-12T09:43:24.134Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: ---[ RESPONSE ]--------------------------------------
2020-04-12T09:43:24.134Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: HTTP/1.1 400 Bad Request
2020-04-12T09:43:24.134Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: Connection: close
2020-04-12T09:43:24.134Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: Transfer-Encoding: chunked
2020-04-12T09:43:24.134Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: Alt-Svc: <REDACTED>
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: Cache-Control: private
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: Content-Type: application/json; charset=UTF-8
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: Date: Sun, 12 Apr 2020 09:43:23 GMT
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: Server: ESF
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: Vary: Origin
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: Vary: X-Origin
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: Vary: Referer
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: X-Content-Type-Options: nosniff
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: X-Frame-Options: SAMEORIGIN
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: X-Xss-Protection: 0
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5:
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: 1c3
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: {
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: "error": {
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: "code": 400,
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: "message": "The request has errors",
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: "status": "INVALID_ARGUMENT",
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: "details": [
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: {
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: "@type": "type.googleapis.com/google.rpc.BadRequest",
2020-04-12T09:43:24.135Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: "fieldViolations": [
2020-04-12T09:43:24.136Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: {
2020-04-12T09:43:24.136Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: "field": "metadata.name",
2020-04-12T09:43:24.136Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: "description": "The revision name must be prefixed by the name of the enclosing Service or Configuration with a trailing -"
2020-04-12T09:43:24.136Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: }
2020-04-12T09:43:24.136Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: ]
2020-04-12T09:43:24.136Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: }
2020-04-12T09:43:24.136Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: ]
2020-04-12T09:43:24.136Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: }
2020-04-12T09:43:24.136Z [DEBUG] plugin.terraform-provider-google_v3.15.0_x5: }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment