Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

jq error #13

Open
Open

Description

@kobylyanskiy

Using the example config I'm getting the following error:

jq: error (at <stdin>:4): Cannot iterate over null (null)

I also don't want to write my own resource. Could you please verify that error or tell me if I'm doing something wrong.

Activity

  1. dpb587 commented on Nov 7, 2018

    @dpb587
    Owner

    What operation is this occurring during: check, get, put? Are you sure your API token user has permissions for the repository you’re trying to edit?

  2. kobylyanskiy commented on Nov 7, 2018

    @kobylyanskiy
    Author

    Hi, @dpb587.
    Thank you for the answer. I'm trying to put status to my repo. API token is 100% right cause previously I was able to push status to that repo with a simple Go program. Basically I'm trying to do this:

    plan:
        - get: builder
          params: {submodules: none}
          trigger: true
        - put: "repo-status"
          params:
            state: "pending"
            commit: "builder"  
  3. dpb587 commented on Dec 2, 2018

    @dpb587
    Owner

    I don't think I have seen this error before and, unfortunately, it's not easy to debug right now. Quickly reviewing some of the code, I think this could, theoretically, occur if builder is working off a different branch than repo-status was. You might want to make sure repo-status is configured with the branch option if you're using something other than master for builder.

  4. aleveille commented on Jun 13, 2019

    @aleveille
  5. mohsen0 commented on Aug 15, 2019

    @mohsen0

    I am getting this in check

    resource_types:
    - name: github-status
      type: "docker-image"
      source:
        repository: "dpb587/github-status-resource"
        tag: v2.1.0
    - name: github_status
      type: github-status
      source:
        branch: master
        repository: git@github.com:<repo name>.git
        access_token: ((github-access-token))
    jobs:
    - name: Build Master
      plan:
      - do:
       ...
      on_failure:
        put: github_status
        params: { state: failure, commit: git_master }
    resource script '/opt/resource/check []' failed: exit status 5
    
    stderr:
    jq: error (at <stdin>:4): Cannot iterate over null (null)
    
  6. luispabon commented on Sep 27, 2019

    @luispabon

    I was also getting this error upon moving a git repo from organisation to organisation and I had forgotten to apply the changes on the resource's config.

  7. f0o commented on Nov 17, 2020

    @f0o

    Having the same issue. The status gets set correctly but it still throws that error.

    out of curiosity, is this repo even maintained?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions