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

refresh_bounties empty URL bug #686

Closed
mbeacom opened this issue Mar 22, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@mbeacom
Copy link
Contributor

commented Mar 22, 2018

Description
Traceback (most recent call last):
  File "./manage.py", line 39, in <module>
    execute_from_command_line(sys.argv)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute
    output = self.handle(*args, **options)
  File "/home/ubuntu/gitcoin/coin/app/economy/management/commands/refresh_bounties.py", line 72, in handle
    bounty.fetch_issue_item('title')
  File "/home/ubuntu/gitcoin/coin/app/dashboard/models.py", line 382, in fetch_issue_item
    issue_description = requests.get(self.get_github_api_url(), auth=_AUTH)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/requests/sessions.py", line 494, in request
    prep = self.prepare_request(req)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/requests/sessions.py", line 437, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/requests/models.py", line 305, in prepare
    self.prepare_url(url, params)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/requests/models.py", line 379, in prepare_url
    raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '': No schema supplied. Perhaps you meant http://?
Possible Implementation

Check if url is empty before proceeding.

@mbeacom mbeacom self-assigned this Mar 22, 2018

@mbeacom mbeacom closed this in 8f84d83 Mar 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.