Advertisement
maks-io

octokit bug

Aug 30th, 2019
1,085
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DEBUG:
  2.  { HttpError: Validation Failed
  3.     at response.text.then.message (/mnt/data/coding/node-gitlab-2-github/downstreamRepo/node_modules/@octokit/request/lib/request.js:55:27)
  4.     at process._tickCallback (internal/process/next_tick.js:68:7)
  5.   name: 'HttpError',
  6.   status: 422,
  7.   headers:
  8.    { 'access-control-allow-origin': '*',
  9.      'access-control-expose-headers':
  10.       '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',
  11.      connection: 'close',
  12.      'content-length': '194',
  13.      'content-security-policy': 'default-src \'none\'',
  14.      'content-type': 'application/json; charset=utf-8',
  15.      date: 'Fri, 30 Aug 2019 07:52:33 GMT',
  16.      'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
  17.      server: 'GitHub.com',
  18.      status: '422 Unprocessable Entity',
  19.      'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
  20.      'x-accepted-oauth-scopes': '',
  21.      'x-content-type-options': 'nosniff',
  22.      'x-frame-options': 'deny',
  23.      'x-github-media-type': 'github.v3; format=json',
  24.      'x-github-request-id': '8A1E:3BE2E:3E25ED5:4B9F9F1:5D68D5C1',
  25.      'x-oauth-scopes':
  26.       'admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, read:packages, repo, user, write:discussion, write:packages',
  27.      'x-ratelimit-limit': '5000',
  28.      'x-ratelimit-remaining': '4635',
  29.      'x-ratelimit-reset': '1567154390',
  30.      'x-xss-protection': '1; mode=block' },
  31.   request:
  32.    { method: 'POST',
  33.      url: 'https://api.github.com/repos/maks-io/CENSORED_DATA/issues',
  34.      headers:
  35.       { accept: 'application/vnd.github.v3+json',
  36.         'user-agent':
  37.          'node-gitlab-2-github octokit.js/16.1.0 Node.js/10.16.0 (Linux 5.2; x64)',
  38.         authorization: 'token 7d612f71cb9d9cbde63a8573da22c91e4b702b74',
  39.         'content-type': 'application/json; charset=utf-8' },
  40.      body:
  41.       '{"title":"CENSORED_DATA","body":"In GitLab by @maks-io on Aug 31, 2017, 16:48\\n\\n","assignees":["CENSORED_DATA"],"milestone":1,"labels":["feature","in progress"]}',
  42.      request: { timeout: 5000, validate: [Object] } },
  43.   errors:
  44.    [ { value: 'CENSORED_DATA',
  45.        resource: 'Issue',
  46.        field: 'assignees',
  47.        code: 'invalid' } ],
  48.   documentation_url: 'https://developer.github.com/v3/issues/#create-an-issue' }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement