Closed Zomis closed 5 years ago
When some repositories are starred, Duga says "null us"
From the logs:
[2018-03-07 23:27:20.470] INFO net.zomis.duga.GithubHookController - null us [2018-03-07 23:27:20.470] INFO net.zomis.duga.GithubHookController - Github Event: watch [2018-03-07 23:27:20.470] INFO net.zomis.duga.GithubHookController - Room: null [2018-03-07 23:27:20.470] INFO net.zomis.duga.GithubHookController - Request: org.apache.catalina.connector.RequestFacade@2a27b8e [2018-03-07 23:27:20.470] INFO net.zomis.duga.GithubHookController - JSON Request: [:] [2018-03-07 23:27:20.470] INFO net.zomis.duga.GithubHookController - JSON Data: [payload:{"action":"started","repository":{"id":83214915,"name":"pokemon-cards","full_name":"skiwi2/pokemon-cards","owner":{"login":"skiwi2","id":2961606,"avatar_url":"https://avatars2.githubusercontent.com/u/2961606?v=4","gravatar_id":"","url":"https://api.github.com/users/skiwi2","html_url":"https://github.com/skiwi2","followers_url":"https://api.github.com/users/skiwi2/followers","following_url":"https://api.github.com/users/skiwi2/following{/other_user}","gists_url":"https://api.github.com/users/skiwi2/gists{/gist_id}","starred_url":"https://api.github.com/users/skiwi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skiwi2/subscriptions","organizations_url":"https://api.github.com/users/skiwi2/orgs","repos_url":"https://api.github.com/users/skiwi2/repos","events_url":"https://api.github.com/users/skiwi2/events{/privacy}","received_events_url":"https://api.github.com/users/skiwi2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skiwi2/pokemon-cards","description":"A Pokemon Cards project.","fork":false,"url":"https://api.github.com/repos/skiwi2/pokemon-cards","forks_url":"https://api.github.com/repos/skiwi2/pokemon-cards/forks","keys_url":"https://api.github.com/repos/skiwi2/pokemon-cards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skiwi2/pokemon-cards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skiwi2/pokemon-cards/teams","hooks_url":"https://api.github.com/repos/skiwi2/pokemon-cards/hooks","issue_events_url":"https://api.github.com/repos/skiwi2/pokemon-cards/issues/events{/number}","events_url":"https://api.github.com/repos/skiwi2/pokemon-cards/events","assignees_url":"https://api.github.com/repos/skiwi2/pokemon-cards/assignees{/user}","branches_url":"https://api.github.com/repos/skiwi2/pokemon-cards/branches{/branch}","tags_url":"https://api.github.com/repos/skiwi2/pokemon-cards/tags","blobs_url":"https://api.github.com/repos/skiwi2/pokemon-cards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skiwi2/pokemon-cards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skiwi2/pokemon-cards/git/refs{/sha}","trees_url":"https://api.github.com/repos/skiwi2/pokemon-cards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skiwi2/pokemon-cards/statuses/{sha}","languages_url":"https://api.github.com/repos/skiwi2/pokemon-cards/languages","stargazers_url":"https://api.github.com/repos/skiwi2/pokemon-cards/stargazers","contributors_url":"https://api.github.com/repos/skiwi2/pokemon-cards/contributors","subscribers_url":"https://api.github.com/repos/skiwi2/pokemon-cards/subscribers","subscription_url":"https://api.github.com/repos/skiwi2/pokemon-cards/subscription","commits_url":"https://api.github.com/repos/skiwi2/pokemon-cards/commits{/sha}","git_commits_url":"https://api.github.com/repos/skiwi2/pokemon-cards/git/commits{/sha}","comments_url":"https://api.github.com/repos/skiwi2/pokemon-cards/comments{/number}","issue_comment_url":"https://api.github.com/repos/skiwi2/pokemon-cards/issues/comments{/number}","contents_url":"https://api.github.com/repos/skiwi2/pokemon-cards/contents/{+path}","compare_url":"https://api.github.com/repos/skiwi2/pokemon-cards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skiwi2/pokemon-cards/merges","archive_url":"https://api.github.com/repos/skiwi2/pokemon-cards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skiwi2/pokemon-cards/downloads","issues_url":"https://api.github.com/repos/skiwi2/pokemon-cards/issues{/number}","pulls_url":"https://api.github.com/repos/skiwi2/pokemon-cards/pulls{/number}","milestones_url":"https://api.github.com/repos/skiwi2/pokemon-cards/milestones{/number}","notifications_url":"https://api.github.com/repos/skiwi2/pokemon-cards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skiwi2/pokemon-cards/labels{/name}","releases_url":"https://api.github.com/repos/skiwi2/pokemon-cards/releases{/id}","deployments_url":"https://api.github.com/repos/skiwi2/pokemon-cards/deployments","created_at":"2017-02-26T14:30:06Z","updated_at":"2018-03-07T22:27:19Z","pushed_at":"2017-02-26T14:31:02Z","git_url":"git://github.com/skiwi2/pokemon-cards.git","ssh_url":"git@github.com:skiwi2/pokemon-cards.git","clone_url":"https://github.com/skiwi2/pokemon-cards.git","svn_url":"https://github.com/skiwi2/pokemon-cards","homepage":null,"size":1,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"},"sender":{"login":"Zomis","id":1405379,"avatar_url":"https://avatars1.githubusercontent.com/u/1405379?v=4","gravatar_id":"","url":"https://api.github.com/users/Zomis","html_url":"https://github.com/Zomis","followers_url":"https://api.github.com/users/Zomis/followers","following_url":"https://api.github.com/users/Zomis/following{/other_user}","gists_url":"https://api.github.com/users/Zomis/gists{/gist_id}","starred_url":"https://api.github.com/users/Zomis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zomis/subscriptions","organizations_url":"https://api.github.com/users/Zomis/orgs","repos_url":"https://api.github.com/users/Zomis/repos","events_url":"https://api.github.com/users/Zomis/events{/privacy}","received_events_url":"https://api.github.com/users/Zomis/received_events","type":"User","site_admin":false}}, controller:githubHook, action:hook]
This was because the repository skiwi2/pokemon-cards was setup with www-encoded instead of application/json for @DugaBot's webhook. Not @DugaBot's fault.
When some repositories are starred, Duga says "null us"
From the logs: