gcs-resource icon indicating copy to clipboard operation
gcs-resource copied to clipboard

400 error

Open katholen opened this issue 7 years ago • 2 comments

I am receiving the following error message when trying to use the put step:

1.86 MiB / 1.86 MiB [===================================] 100.00% 4.17 MiB/s 0s
error running command: googleapi: Error 400: Required, required

Here is my configuration:

- name: m2-bucket
  type: google-cloud-storage
  source:
    regex: m2_tar/m2/m2.tar.gz
    bucket: {{bucket_name}}
    json_key: {{bucket_private_key}}
- name: google-cloud-storage
  type: docker-image
  source:
    repository: frodenas/gcs-resource
    - put: m2-bucket
      params:
        file: ./m2_tar/m2/m2.tar.gz

Any ideas on what could be wrong? Thank you in advance!

katholen avatar Sep 28 '18 04:09 katholen

I also tried the demo found here and the same error was generated.

We are running on concourse version: v4.2.1

katholen avatar Sep 28 '18 04:09 katholen

This happens most likely because the bucket does not exist. Have you checked if the bucker is there and that the {{bucket_name}} interpolation is working?

frodenas avatar Oct 04 '18 00:10 frodenas