Skip to content

Instantly share code, notes, and snippets.

@benjaminlukeclark
Last active January 20, 2021 15:34
Show Gist options
  • Save benjaminlukeclark/19086015bf792617a283da317d51db3b to your computer and use it in GitHub Desktop.
Save benjaminlukeclark/19086015bf792617a283da317d51db3b to your computer and use it in GitHub Desktop.
PagerDuty-PUT-bug-logs
```log
021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: -----------------------------------------------------
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: 2021/01/20 11:33:25 [DEBUG] PagerDuty - Preparing PUT request to /users/xxxx with body: {"user":{"color":"brown","description":"User account, managed by Terrraform","email":"xxxx","job_title":"xxxx","name":"xxxx","role":"owner","time_zone":"Europe/London"}}
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: 2021/01/20 11:33:25 [DEBUG] PagerDuty API Request Details:
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: ---[ REQUEST ]---------------------------------------
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: PUT /users/xxxx HTTP/1.1
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Host: api.pagerduty.com
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: User-Agent: heimweh/go-pagerduty(terraform)
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Content-Length: 214
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Accept: application/vnd.pagerduty+json;version=2
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Authorization: Token token=xxxx
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Content-Type: application/json
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Accept-Encoding: gzip
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0:
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: {
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "user": {
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "color": "brown",
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "description": "User account, managed by Terrraform",
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "email": "xxxx",
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "job_title": "xxxx",
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "name": "xxxx",
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "role": "owner",
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "time_zone": "Europe/London"
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: }
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: }
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0:
2021-01-20T11:33:25.238Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: -----------------------------------------------------
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: 2021/01/20 11:33:25 [DEBUG] PagerDuty API Response Details:
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: ---[ RESPONSE ]--------------------------------------
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: HTTP/2.0 403 Forbidden
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Content-Length: 71
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Cache-Control: max-age=0, private, must-revalidate
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Content-Type: application/json
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Cross-Origin-Window-Policy: deny
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Date: Wed, 20 Jan 2021 11:33:25 GMT
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: Server: nginx
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: X-Content-Type-Options: nosniff
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: X-Download-Options: noopen
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: X-Frame-Options: SAMEORIGIN
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: X-Permitted-Cross-Domain-Policies: none
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: X-Request-Id: xxxx
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: X-Xss-Protection: 1; mode=block
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0:
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: {
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "error": {
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "code": 403,
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "errors": [],
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: "message": "Insufficient permissions"
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: }
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: }
2021-01-20T11:33:25.450Z [DEBUG] plugin.terraform-provider-pagerduty_v1.8.0: -----------------------------------------------------
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment