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

terraform import output - does not work due to bucketID being empty. #34

Open
woohgit opened this issue Nov 12, 2021 · 0 comments
Open

Comments

@woohgit
Copy link

woohgit commented Nov 12, 2021

Error:

❯ terraform import webhookrelay_output.defectdojo_production 2f3c0670-9d3a-4c0e-8c98-b8da47122b77
webhookrelay_output.defectdojo_production: Importing from ID "2f3c0670-9d3a-4c0e-8c98-b8da47122b77"...
webhookrelay_output.defectdojo_production: Import prepared!
  Prepared webhookrelay_output for import
webhookrelay_output.defectdojo_production: Refreshing state... [id=2f3c0670-9d3a-4c0e-8c98-b8da47122b77]
╷
│ Error: error reading bucket details: &{<nil> 0  false  []  [] false <nil> 0} (*models.Bucket) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface

It's caused because the bucketID is not properly set and it sends the refresh request to /v1/buckets/ => PathPattern: "/v1/buckets/{bucketID}",

Sending the request to https://my.webhookrelay.com/v1/buckets/ returns a NON JSON, normal HTML page with 200 response code.

< HTTP/2 200 
< cache-control: no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0
< content-security-policy: default-src 'self' cdn.webhookrelay.com js.stripe.com; connect-src 'self' wss://client.relay.crisp.chat wss://my.webhookrelay.com https://client.crisp.chat; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.webhookrelay.com https://js.stripe.com/ https://client.crisp.chat https://sa.webhookrelay.com; img-src * data:; style-src 'self' 'unsafe-inline' https://cdn.webhookrelay.com https://js.stripe.com https://cdn.jsdelivr.net https://fonts.googleapis.com https://fonts.gstatic.com https://client.crisp.chat; font-src 'self' https://cdn.webhookrelay.com https://js.stripe.com https://fonts.gstatic.com https://themes.googleusercontent.com https://cdn.jsdelivr.net https://fonts.googleapis.com  https://client.crisp.chat; object-src 'none'
< content-type: text/html
< date: Fri, 12 Nov 2021 23:37:24 GMT
< etag: W/"61635a56-1b2c"
< last-modified: Sun, 10 Oct 2021 21:25:42 GMT
< server: nginx
< strict-transport-security: max-age=31536000; includeSubdomains; preload
< x-content-type-options: nosniff
< x-frame-options: SAMEORIGIN
< x-xss-protection: 1; mode=block

@woohgit woohgit changed the title terraform import outputs - does not work due to bucketID being empty. terraform import output - does not work due to bucketID being empty. Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant