Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull Request Worker Error #404

Closed
sgoggins opened this issue Oct 7, 2019 · 2 comments
Closed

Pull Request Worker Error #404

sgoggins opened this issue Oct 7, 2019 · 2 comments
Assignees
Labels
bug Documents unexpected/wrong/buggy behavior workers Related to data workers

Comments

@sgoggins
Copy link
Member

sgoggins commented Oct 7, 2019

Describe the bug:
The pull request worker is not handling null users. I am not sure if we have unfinished work linking the worker to the contributor model, or if there is a different type of issue. It seems that the worker does not finish a repository once it runs into this error, so if the error occurs in a corpora, the pull requests are not fully populated for that repository.

INFO:[PullRequestWorker]: [Filtering] Page recieved has 1 tuples, while filtering duplicates this was reduced to 1 tuples.
INFO:[PullRequestWorker]: [Filtering] Page recieved has 1 tuples, while filtering duplicates this was reduced to 1 tuples.
ERROR:[PullRequestWorker]: Worker ran into an error for task {'task': {'job_type': 'MAINTAIN', 'models': ['pull_requests'], 'display_name': 'pull_requests model for git url: https://github.com/lodash/lodash.git', 'given': {'git_url': 'https://github.com/lodash/lodash.git'}}, 'repo_id': 25204}
Traceback (most recent call last):
  File "/home/sean/census/lib/python3.7/site-packages/pull_request_worker-0.1.0-py3.7.egg/pull_request_worker/worker.py", line 297, in collect
    self.query_pr({'git_url': git_url, 'repo_id': repo_id})
  File "/home/sean/census/lib/python3.7/site-packages/pull_request_worker-0.1.0-py3.7.egg/pull_request_worker/worker.py", line 441, in query_pr
    self.query_pr_meta(pr_dict['head'], pr_dict['base'], self.pr_id_inc)
  File "/home/sean/census/lib/python3.7/site-packages/pull_request_worker-0.1.0-py3.7.egg/pull_request_worker/worker.py", line 651, in query_pr_meta
    if 'login' in new_head[0]['user']:
TypeError: argument of type 'NoneType' is not iterable
ERROR:[PullRequestWorker]: Task failed
ERROR:[PullRequestWorker]: Informing broker about Task Failure
INFO:[PullRequestWorker]: This task inserted 3662 tuples

To Reproduce:
Steps to reproduce the behavior:
Run the pull request worker.

Expected behavior:
No Errors

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu
@sgoggins
Copy link
Member Author

sgoggins commented Oct 7, 2019

@parthsharma2 : Wonder if you can take a look at this; I believe its on the server you have access to where I am finding this error. I will send you some of the log.

@parthsharma2 parthsharma2 added bug Documents unexpected/wrong/buggy behavior workers Related to data workers labels Oct 9, 2019
@sgoggins
Copy link
Member Author

Parth fixed this! Yay @parthsharma2 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Documents unexpected/wrong/buggy behavior workers Related to data workers
Projects
None yet
Development

No branches or pull requests

2 participants