Last active
September 20, 2017 09:05
-
-
Save hiimbex/4f9850a3aecdd4fe38b1b26a15c0eb1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm start | |
> [email protected] start /Users/hiimbex/Desktop/lock-threads | |
> probot run ./index.js | |
18:40:53.086Z DEBUG Probot: Loaded ./index.js | |
18:40:53.089Z TRACE Probot: Listening on http://localhost:3000 | |
Listening on https://hiimbex.localtunnel.me | |
18:41:06.392Z TRACE Probot: webhook received (event=issue_comment, id=a9170ff0-9d68-11e7-99a3-84cb6873af3e, protocol=http, host=hiimbex.localtunnel.me, url=/) | |
payload: { | |
"action": "created", | |
"issue": { | |
"url": "https://api.github.com/repos/hiimbex/testing-things/issues/39", | |
"repository_url": "https://api.github.com/repos/hiimbex/testing-things", | |
"labels_url": "https://api.github.com/repos/hiimbex/testing-things/issues/39/labels{/name}", | |
"comments_url": "https://api.github.com/repos/hiimbex/testing-things/issues/39/comments", | |
"events_url": "https://api.github.com/repos/hiimbex/testing-things/issues/39/events", | |
"html_url": "https://github.com/hiimbex/testing-things/issues/39", | |
"id": 258915995, | |
"number": 39, | |
"title": "ok", | |
"user": { | |
"login": "hiimbex", | |
"id": 13410355, | |
"avatar_url": "https://avatars1.githubusercontent.com/u/13410355?v=4", | |
"gravatar_id": "", | |
"url": "https://api.github.com/users/hiimbex", | |
"html_url": "https://github.com/hiimbex", | |
"followers_url": "https://api.github.com/users/hiimbex/followers", | |
"following_url": "https://api.github.com/users/hiimbex/following{/other_user}", | |
"gists_url": "https://api.github.com/users/hiimbex/gists{/gist_id}", | |
"starred_url": "https://api.github.com/users/hiimbex/starred{/owner}{/repo}", | |
"subscriptions_url": "https://api.github.com/users/hiimbex/subscriptions", | |
"organizations_url": "https://api.github.com/users/hiimbex/orgs", | |
"repos_url": "https://api.github.com/users/hiimbex/repos", | |
"events_url": "https://api.github.com/users/hiimbex/events{/privacy}", | |
"received_events_url": "https://api.github.com/users/hiimbex/received_events", | |
"type": "User", | |
"site_admin": false | |
}, | |
"labels": [], | |
"state": "open", | |
"locked": false, | |
"assignee": null, | |
"assignees": [], | |
"milestone": null, | |
"comments": 2, | |
"created_at": "2017-09-19T18:19:18Z", | |
"updated_at": "2017-09-19T18:30:49Z", | |
"closed_at": null, | |
"author_association": "OWNER", | |
"body": "ok" | |
}, | |
"comment": { | |
"url": "https://api.github.com/repos/hiimbex/testing-things/issues/comments/330630041", | |
"html_url": "https://github.com/hiimbex/testing-things/issues/39#issuecomment-330630041", | |
"issue_url": "https://api.github.com/repos/hiimbex/testing-things/issues/39", | |
"id": 330630041, | |
"user": { | |
"login": "hiimbex", | |
"id": 13410355, | |
"avatar_url": "https://avatars1.githubusercontent.com/u/13410355?v=4", | |
"gravatar_id": "", | |
"url": "https://api.github.com/users/hiimbex", | |
"html_url": "https://github.com/hiimbex", | |
"followers_url": "https://api.github.com/users/hiimbex/followers", | |
"following_url": "https://api.github.com/users/hiimbex/following{/other_user}", | |
"gists_url": "https://api.github.com/users/hiimbex/gists{/gist_id}", | |
"starred_url": "https://api.github.com/users/hiimbex/starred{/owner}{/repo}", | |
"subscriptions_url": "https://api.github.com/users/hiimbex/subscriptions", | |
"organizations_url": "https://api.github.com/users/hiimbex/orgs", | |
"repos_url": "https://api.github.com/users/hiimbex/repos", | |
"events_url": "https://api.github.com/users/hiimbex/events{/privacy}", | |
"received_events_url": "https://api.github.com/users/hiimbex/received_events", | |
"type": "User", | |
"site_admin": false | |
}, | |
"created_at": "2017-09-19T18:30:49Z", | |
"updated_at": "2017-09-19T18:30:49Z", | |
"author_association": "OWNER", | |
"body": "ok" | |
}, | |
"repository": { | |
"id": 95162387, | |
"name": "testing-things", | |
"full_name": "hiimbex/testing-things", | |
"owner": { | |
"login": "hiimbex", | |
"id": 13410355, | |
"avatar_url": "https://avatars1.githubusercontent.com/u/13410355?v=4", | |
"gravatar_id": "", | |
"url": "https://api.github.com/users/hiimbex", | |
"html_url": "https://github.com/hiimbex", | |
"followers_url": "https://api.github.com/users/hiimbex/followers", | |
"following_url": "https://api.github.com/users/hiimbex/following{/other_user}", | |
"gists_url": "https://api.github.com/users/hiimbex/gists{/gist_id}", | |
"starred_url": "https://api.github.com/users/hiimbex/starred{/owner}{/repo}", | |
"subscriptions_url": "https://api.github.com/users/hiimbex/subscriptions", | |
"organizations_url": "https://api.github.com/users/hiimbex/orgs", | |
"repos_url": "https://api.github.com/users/hiimbex/repos", | |
"events_url": "https://api.github.com/users/hiimbex/events{/privacy}", | |
"received_events_url": "https://api.github.com/users/hiimbex/received_events", | |
"type": "User", | |
"site_admin": false | |
}, | |
"private": false, | |
"html_url": "https://github.com/hiimbex/testing-things", | |
"description": "this repo is radical dude ugh", | |
"fork": false, | |
"url": "https://api.github.com/repos/hiimbex/testing-things", | |
"forks_url": "https://api.github.com/repos/hiimbex/testing-things/forks", | |
"keys_url": "https://api.github.com/repos/hiimbex/testing-things/keys{/key_id}", | |
"collaborators_url": "https://api.github.com/repos/hiimbex/testing-things/collaborators{/collaborator}", | |
"teams_url": "https://api.github.com/repos/hiimbex/testing-things/teams", | |
"hooks_url": "https://api.github.com/repos/hiimbex/testing-things/hooks", | |
"issue_events_url": "https://api.github.com/repos/hiimbex/testing-things/issues/events{/number}", | |
"events_url": "https://api.github.com/repos/hiimbex/testing-things/events", | |
"assignees_url": "https://api.github.com/repos/hiimbex/testing-things/assignees{/user}", | |
"branches_url": "https://api.github.com/repos/hiimbex/testing-things/branches{/branch}", | |
"tags_url": "https://api.github.com/repos/hiimbex/testing-things/tags", | |
"blobs_url": "https://api.github.com/repos/hiimbex/testing-things/git/blobs{/sha}", | |
"git_tags_url": "https://api.github.com/repos/hiimbex/testing-things/git/tags{/sha}", | |
"git_refs_url": "https://api.github.com/repos/hiimbex/testing-things/git/refs{/sha}", | |
"trees_url": "https://api.github.com/repos/hiimbex/testing-things/git/trees{/sha}", | |
"statuses_url": "https://api.github.com/repos/hiimbex/testing-things/statuses/{sha}", | |
"languages_url": "https://api.github.com/repos/hiimbex/testing-things/languages", | |
"stargazers_url": "https://api.github.com/repos/hiimbex/testing-things/stargazers", | |
"contributors_url": "https://api.github.com/repos/hiimbex/testing-things/contributors", | |
"subscribers_url": "https://api.github.com/repos/hiimbex/testing-things/subscribers", | |
"subscription_url": "https://api.github.com/repos/hiimbex/testing-things/subscription", | |
"commits_url": "https://api.github.com/repos/hiimbex/testing-things/commits{/sha}", | |
"git_commits_url": "https://api.github.com/repos/hiimbex/testing-things/git/commits{/sha}", | |
"comments_url": "https://api.github.com/repos/hiimbex/testing-things/comments{/number}", | |
"issue_comment_url": "https://api.github.com/repos/hiimbex/testing-things/issues/comments{/number}", | |
"contents_url": "https://api.github.com/repos/hiimbex/testing-things/contents/{+path}", | |
"compare_url": "https://api.github.com/repos/hiimbex/testing-things/compare/{base}...{head}", | |
"merges_url": "https://api.github.com/repos/hiimbex/testing-things/merges", | |
"archive_url": "https://api.github.com/repos/hiimbex/testing-things/{archive_format}{/ref}", | |
"downloads_url": "https://api.github.com/repos/hiimbex/testing-things/downloads", | |
"issues_url": "https://api.github.com/repos/hiimbex/testing-things/issues{/number}", | |
"pulls_url": "https://api.github.com/repos/hiimbex/testing-things/pulls{/number}", | |
"milestones_url": "https://api.github.com/repos/hiimbex/testing-things/milestones{/number}", | |
"notifications_url": "https://api.github.com/repos/hiimbex/testing-things/notifications{?since,all,participating}", | |
"labels_url": "https://api.github.com/repos/hiimbex/testing-things/labels{/name}", | |
"releases_url": "https://api.github.com/repos/hiimbex/testing-things/releases{/id}", | |
"deployments_url": "https://api.github.com/repos/hiimbex/testing-things/deployments", | |
"created_at": "2017-06-22T22:38:49Z", | |
"updated_at": "2017-07-26T00:46:22Z", | |
"pushed_at": "2017-09-06T17:40:41Z", | |
"git_url": "git://github.com/hiimbex/testing-things.git", | |
"ssh_url": "[email protected]:hiimbex/testing-things.git", | |
"clone_url": "https://github.com/hiimbex/testing-things.git", | |
"svn_url": "https://github.com/hiimbex/testing-things", | |
"homepage": null, | |
"size": 47, | |
"stargazers_count": 0, | |
"watchers_count": 0, | |
"language": "JavaScript", | |
"has_issues": true, | |
"has_projects": true, | |
"has_downloads": true, | |
"has_wiki": true, | |
"has_pages": false, | |
"forks_count": 4, | |
"mirror_url": null, | |
"open_issues_count": 1, | |
"forks": 4, | |
"open_issues": 1, | |
"watchers": 0, | |
"default_branch": "master" | |
}, | |
"sender": { | |
"login": "hiimbex", | |
"id": 13410355, | |
"avatar_url": "https://avatars1.githubusercontent.com/u/13410355?v=4", | |
"gravatar_id": "", | |
"url": "https://api.github.com/users/hiimbex", | |
"html_url": "https://github.com/hiimbex", | |
"followers_url": "https://api.github.com/users/hiimbex/followers", | |
"following_url": "https://api.github.com/users/hiimbex/following{/other_user}", | |
"gists_url": "https://api.github.com/users/hiimbex/gists{/gist_id}", | |
"starred_url": "https://api.github.com/users/hiimbex/starred{/owner}{/repo}", | |
"subscriptions_url": "https://api.github.com/users/hiimbex/subscriptions", | |
"organizations_url": "https://api.github.com/users/hiimbex/orgs", | |
"repos_url": "https://api.github.com/users/hiimbex/repos", | |
"events_url": "https://api.github.com/users/hiimbex/events{/privacy}", | |
"received_events_url": "https://api.github.com/users/hiimbex/received_events", | |
"type": "User", | |
"site_admin": false | |
}, | |
"installation": { | |
"id": 41038 | |
} | |
} | |
18:41:06.394Z TRACE Probot: creating token for installation 41038 | |
REQUEST: { host: 'api.github.com', | |
port: 443, | |
path: '/installations/41038/access_tokens', | |
method: 'post', | |
headers: | |
{ host: 'api.github.com', | |
'content-length': 2, | |
'content-type': 'application/json; charset=utf-8', | |
Authorization: 'Bearer xxx', | |
accept: 'application/vnd.github.machine-man-preview+json', | |
'user-agent': 'NodeJS HTTP Client' }, | |
ca: undefined, | |
family: undefined } | |
REQUEST BODY: {} | |
STATUS: 401 | |
HEADERS: {"server":"GitHub.com","date":"Tue, 19 Sep 2017 18:41:11 GMT","content-type":"application/json; charset=utf-8","content-length":"87","connection":"close","status":"401 Unauthorized","x-github-media-type":"github.machine-man-preview; format=json","access-control-expose-headers":"ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval","access-control-allow-origin":"*","content-security-policy":"default-src 'none'","strict-transport-security":"max-age=31536000; includeSubdomains; preload","x-content-type-options":"nosniff","x-frame-options":"deny","x-xss-protection":"1; mode=block","x-runtime-rack":"0.012491","x-github-request-id":"E63E:850B:D655EB2:1AFD9B6E:59C164C4"} | |
[error] { [Error: {"message":"Invalid credentials","documentation_url":"https://developer.github.com/v3"}] | |
[error] message: '{"message":"Invalid credentials","documentation_url":"https://developer.github.com/v3"}', | |
[error] code: 401, | |
[error] status: 'Unauthorized', | |
[error] headers: | |
[error] { server: 'GitHub.com', | |
[error] date: 'Tue, 19 Sep 2017 18:41:11 GMT', | |
[error] 'content-type': 'application/json; charset=utf-8', | |
[error] 'content-length': '87', | |
[error] connection: 'close', | |
[error] status: '401 Unauthorized', | |
[error] 'x-github-media-type': 'github.machine-man-preview; format=json', | |
[error] 'access-control-expose-headers': 'ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval', | |
[error] 'access-control-allow-origin': '*', | |
[error] 'content-security-policy': 'default-src \'none\'', | |
[error] 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', | |
[error] 'x-content-type-options': 'nosniff', | |
[error] 'x-frame-options': 'deny', | |
[error] 'x-xss-protection': '1; mode=block', | |
[error] 'x-runtime-rack': '0.012491', | |
[error] 'x-github-request-id': 'E63E:850B:D655EB2:1AFD9B6E:59C164C4' } } { installation_id: 41038 } null | |
18:41:11.834Z ERROR Probot: {"message":"Invalid credentials","documentation_url":"https://developer.github.com/v3"} | |
err: { | |
"code": 401, | |
"status": "Unauthorized", | |
"message": "{\"message\":\"Invalid credentials\",\"documentation_url\":\"https://developer.github.com/v3\"}" | |
} | |
-- | |
event: { | |
"id": "a9170ff0-9d68-11e7-99a3-84cb6873af3e", | |
"event": "issue_comment", | |
"action": "created", | |
"repository": "hiimbex/testing-things" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment