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

Octokit::UnprocessablEntity error on add_new_labels(...) in configuration.rb #10

Merged
merged 2 commits into from Oct 1, 2013

Conversation

frankshearar
Copy link
Owner

Hi

I'm getting the following on trying to sync some repositories when it gets to add_label.

Ruby: 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin11.4.2]
Octokit: 1.24.0

Error:

$ octoherder -i ssss.yml -u xxxx -p xxxxx
Label: "0 - Backlog"
#<Hashie::Mash documentation_url="http://developer.github.com/v3" errors=[#<Hashie::Mash code="invalid" field="color" resource="Label">] message="Validation Failed">
/Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octokit-1.24.0/lib/faraday/response/raise_octokit_error.rb:22:in `on_complete': POST https://api.github.com/repos/WebsandHQ/websand-import/labels: 422: Validation Failed:  (Octokit::UnprocessableEntity)
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/faraday-0.8.7/lib/faraday/response.rb:9:in `block in call'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/faraday-0.8.7/lib/faraday/response.rb:63:in `on_complete'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/faraday-0.8.7/lib/faraday/response.rb:8:in `call'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/faraday_middleware-0.9.0/lib/faraday_middleware/request/encode_json.rb:23:in `call'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/faraday-0.8.7/lib/faraday/connection.rb:247:in `run_request'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/faraday-0.8.7/lib/faraday/connection.rb:112:in `post'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octokit-1.24.0/lib/octokit/request.rb:64:in `request'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octokit-1.24.0/lib/octokit/request.rb:29:in `post'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octokit-1.24.0/lib/octokit/client/labels.rb:40:in `add_label'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octoherder-0.1.dev/lib/octoherder/configuration.rb:91:in `block in add_new_labels'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octoherder-0.1.dev/lib/octoherder/configuration.rb:89:in `each'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octoherder-0.1.dev/lib/octoherder/configuration.rb:89:in `add_new_labels'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octoherder-0.1.dev/lib/octoherder/configuration.rb:68:in `block in update_labels'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octoherder-0.1.dev/lib/octoherder/configuration.rb:67:in `each'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octoherder-0.1.dev/lib/octoherder/configuration.rb:67:in `update_labels'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octoherder-0.1.dev/lib/octoherder/cli.rb:61:in `run'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octoherder-0.1.dev/lib/octoherder/cli.rb:46:in `run'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/gems/octoherder-0.1.dev/bin/octoherder:10:in `<top (required)>'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/bin/octoherder:23:in `load'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/bin/octoherder:23:in `<main>'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/bin/ruby_executable_hooks:15:in `eval'
    from /Users/alex/.rvm/gems/ruby-2.0.0-p195/bin/ruby_executable_hooks:15:in `<main>'

I'm not sure whether it's a Gihub API <-> Octokit version issue, or something else. Looking forward to getting this tool going!

Thanks!

@frankshearar
Copy link
Owner

Thanks for the backtrace. I'm pretty sure I've seen this before. You're running off master, right?

@frankshearar
Copy link
Owner

I think it's a change in Octokit's API. I'll try get this fixed ASAP.

@frankshearar
Copy link
Owner

Would you mind trying out the update-octokit-api branch? If it works for you too, I'll merge it in.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) when pulling f15816a on update-octokit-api into f42cc6d on master.

@ajkavanagh
Copy link
Author

Yeah, the update-octokit-api branch works perfectly. Thanks very much! Really simplified getting the labels right across repos for HuBoard. :)

frankshearar added a commit that referenced this pull request Oct 1, 2013
Octokit::UnprocessablEntity error on add_new_labels(...) in configuration.rb
@frankshearar frankshearar merged commit f01b603 into master Oct 1, 2013
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

Successfully merging this pull request may close these issues.

None yet

3 participants