Events API broken - no data returned, broken/incomplete data, or 404 error for some users
Broken/incomplete data
Only two events for my user, dated 2018-04-xx. Note target_*
or commit_from
fields. They make no sense.
nowaker@nwkr-desktop ~/projekty/dreamhost % curl --header "PRIVATE-TOKEN $GITLAB_API_PRIVATE_TOKEN" https://git.dreamhost.com/api/v4/users/nowaker/events 2>/dev/null | jq
[
{
"project_id": 132,
"action_name": "pushed new",
"target_id": null,
"target_iid": null,
"target_type": null,
"author_id": 23,
"target_title": null,
"created_at": "2018-04-25T22:55:19.961Z",
"author": {
"id": 23,
"name": "Damian Nowak",
"username": "nowaker",
"state": "active",
"avatar_url": "https://secure.gravatar.com/avatar/4abe4ab371660c6e0560e36d2ebbc37e?s=80&d=identicon",
"web_url": "https://git.dreamhost.com/nowaker"
},
"push_data": {
"commit_count": 1,
"action": "created",
"ref_type": "branch",
"commit_from": null,
"commit_to": "1e60f82c1c6d8fac153578d4b09d97a924349f9b",
"ref": "master",
"commit_title": "REDACTED"
},
"author_username": "nowaker"
},
{
"project_id": 132,
"action_name": "created",
"target_id": null,
"target_iid": null,
"target_type": null,
"author_id": 23,
"target_title": null,
"created_at": "2018-04-25T22:54:58.216Z",
"author": {
"id": 23,
"name": "Damian Nowak",
"username": "nowaker",
"state": "active",
"avatar_url": "https://secure.gravatar.com/avatar/4abe4ab371660c6e0560e36d2ebbc37e?s=80&d=identicon",
"web_url": "https://git.dreamhost.com/nowaker"
},
"author_username": "nowaker"
}
]
No data
nowaker@nwkr-desktop ~/projekty/dreamhost % curl --header "PRIVATE-TOKEN $GITLAB_API_PRIVATE_TOKEN" https://git.dreamhost.com/api/v4/users/jordan/events 2>/dev/null | jq
[]
404
nowaker@nwkr-desktop ~/projekty/dreamhost % curl --header "PRIVATE-TOKEN $GITLAB_API_PRIVATE_TOKEN" https://git.dreamhost.com/api/v4/users/dan.kuciel/events 2>/dev/null | jq
{
"error": "404 Not Found"
}
GitLab
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 14.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.4.4p296 Gem Version: 2.7.6 Bundler Version:1.16.2 Rake Version: 12.3.1 Redis Version: 3.2.11 Git Version: 2.18.1 Sidekiq Version:5.1.3 Go Version: unknownGitLab information Version: 11.3.4-ee Revision: 14d3a1d Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.8 URL: https://git.dreamhost.com HTTP Clone URL: https://git.dreamhost.com/some-group/some-project.git SSH Clone URL: git@git.dreamhost.com:some-group/some-project.git Elasticsearch: yes Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: google_oauth2
GitLab Shell Version: 8.3.3 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Nothing relevant except:Git user has default SSH configuration? ... no
which has nothing to do with Events API.
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
~bug