jcabi-github
jcabi-github copied to clipboard
Hi,I use RtGithub to create 422 Unprocessable Entity
version 1.1.2
issues.get is easy to use
code:
Github github = new RtGithub("my token");
Repo repo = github.repos().get( new Coordinates.Simple("my name","my repo"));
Issues issues = repo.issues();
int a = issues.create("title","test").number();
Date: Tue, 21 Jul 2020 08:06:39 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 155
Server: GitHub.com
Status: 422 Unprocessable Entity
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4990
X-RateLimit-Reset: 1595321561
X-OAuth-Scopes: repo, workflow
X-Accepted-OAuth-Scopes:
X-GitHub-Media-Type: github.v3
Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
Access-Control-Allow-Origin: *
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
X-Frame-Options: deny
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Content-Security-Policy: default-src 'none'
Vary: Accept-Encoding, Accept, X-Requested-With
X-GitHub-Request-Id: ACC1:4510:DF17C0:12BB5A9:5F16A20E
{"message":"Invalid request.\n\nFor 'links/0/schema', nil is not an object.","documentation_url":"https://developer.github.com/v3/issues/#create-an-issue"}
Expected: HTTP response with status 201
but: was <422 Unprocessable Entity [https://api.github.com/repos/xfu/AgentExpress/issues]
Date: Tue, 21 Jul 2020 08:06:39 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 155
Server: GitHub.com
Status: 422 Unprocessable Entity