title: Concourse get bitbucket resource error unmarshaling JSON: while decoding JSON
body: <p>I'm trying to create a pipeline with concourse, but I'm facing an unexpected json error.
  Could someone please help me out to figure where the problem is and how to solve it?
  Below, you'll find related files and information's.</p>
  
  <p>Many thanks for your time.</p>
  
  <p><strong>Command</strong> </p>
  
  <p>sudo fly -t tutorial set-pipeline -c pipeline.yml -p simple-task -l my-vars.yml my-key.yml --verbose</p>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>2020/06/08 23:31:28 GET /api/v1/info HTTP/1.1
  Host: 127.0.0.1:8080
  User-Agent: Go-http-client/1.1
  Accept-Encoding: gzip
  
  
  2020/06/08 23:31:28 HTTP/1.1 200 OK
  Content-Length: 82
  Content-Type: application/json
  Date: Mon, 08 Jun 2020 21:31:28 GMT
  Vary: Accept-Encoding
  X-Concourse-Version: 6.2.0
  X-Content-Type-Options: nosniff
  X-Download-Options: noopen
  X-Frame-Options: deny
  X-Xss-Protection: 1; mode=block
  
  {"version":"6.2.0","worker_version":"2.2","external_url":"http://localhost:8080"}
  
  2020/06/08 23:31:28 GET /api/v1/teams/main/pipelines/simple-task/config HTTP/1.1
  Host: 127.0.0.1:8080
  User-Agent: Go-http-client/1.1
  Accept-Encoding: gzip
  
  
  2020/06/08 23:31:28 HTTP/1.1 404 Not Found
  Date: Mon, 08 Jun 2020 21:31:28 GMT
  Vary: Accept-Encoding
  X-Concourse-Version: 6.2.0
  X-Content-Type-Options: nosniff
  X-Download-Options: noopen
  X-Frame-Options: deny
  X-Xss-Protection: 1; mode=block
  Content-Length: 0
  </code></pre>
  
  <p><strong>pipeline.yml</strong></p>
  
  <pre><code>---
  resources:
      name: source-code
      type: git
      source: ((pipelines_source))
  jobs:
    - name: job
      public: true
      plan:
        - get: source-code
          trigger: true
        - task: simple-task
          config:
            platform: linux
            image_resource:
              type: registry-image
              source: { repository: aretelabs/nomad-resource }
            run:
              path: echo
              args: ["Ready"]
  </code></pre>
  
  <p><strong>my-vars.yml</strong></p>
  
  <pre><code>---
  pipelines_source:
        branch: master
        uri: git@bitbucket.org:username/repo.git 
        private_key: ((private_key))
  </code></pre>
  
  <p><strong>my-key.yml</strong></p>
  
  <pre><code>private_key: -----BEGIN OPENSSH PRIVATE KEY-----
  ... blablabla ...
  -----END OPENSSH PRIVATE KEY-----
  </code></pre>