Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

raise_octokit_error.rb - Invalid request (Octokit::UnprocessableEntity) #15

Open
rubienr opened this issue Jun 28, 2015 · 0 comments
Open

Comments

@rubienr
Copy link

rubienr commented Jun 28, 2015

tried an import with a valid csv [1] from repository [2] but got the exception below. i can remember having issued sth. similar to an other tool where i found out that the exported issues contained unsupported charcters and the script evaluated the string to null. as far as i remember, the bugfix there was almost:

if ( issueString == NULL ) {
issueString = "";
}

exception:

/var/lib/gems/2.1.0/gems/octokit-1.24.0/lib/faraday/response/raise_octokit_error.rb:22:in `on_complete': POST https://api.github.com/repos/anOrgxxx/anRepoyyy/issues: 422: Invalid request. (Octokit::UnprocessableEntity)

nil is not a string/object.
nil is not a string/object.
nil is not a string/object.
No subschema in "anyOf" matched.
    from /var/lib/gems/2.1.0/gems/faraday-0.8.7/lib/faraday/response.rb:9:in `block in call'
    from /var/lib/gems/2.1.0/gems/faraday-0.8.7/lib/faraday/response.rb:63:in `on_complete'
    from /var/lib/gems/2.1.0/gems/faraday-0.8.7/lib/faraday/response.rb:8:in `call'
    from /var/lib/gems/2.1.0/gems/faraday_middleware-0.9.0/lib/faraday_middleware/request/encode_json.rb:23:in `call'
    from /var/lib/gems/2.1.0/gems/faraday-0.8.7/lib/faraday/connection.rb:247:in `run_request'
    from /var/lib/gems/2.1.0/gems/faraday-0.8.7/lib/faraday/connection.rb:112:in `post'
    from /var/lib/gems/2.1.0/gems/octokit-1.24.0/lib/octokit/request.rb:64:in `request'
    from /var/lib/gems/2.1.0/gems/octokit-1.24.0/lib/octokit/request.rb:29:in `post'
    from /var/lib/gems/2.1.0/gems/octokit-1.24.0/lib/octokit/client/issues.rb:100:in `create_issue'
    from ./csv_issues_to_github.rb:65:in `block in <main>'
    from /usr/lib/ruby/2.1.0/csv.rb:847:in `each'
    from /usr/lib/ruby/2.1.0/csv.rb:847:in `each'
    from ./csv_issues_to_github.rb:64:in `<main>'

hope that helps.

[1] http://csvlint.io/validation/559075c063737649ca010000
[2] https://github.com/WebSmsTool/source

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant