Skip to content

github messages: Catch ResourceGoneException('Issues are disabled for this repo') and skip collecting messages for issues when they arent available #226

Description

@collectoss-issue-migrator

Note

Migrated from augurlabs/augur#3710
Originally opened by @cdolfi on 2026-02-17


Example repo:
https://github.com/debezium/debezium

Exception | ResourceGoneException('Issues are disabled for this repo')

Stack Trace
Traceback (most recent call last):
  File "/augur/.venv/lib/python3.11/site-packages/celery/app/trace.py", line 453, in trace_task
    R = retval = fun(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^
  File "/augur/.venv/lib/python3.11/site-packages/celery/app/trace.py", line 736, in __protected_call__
    return self.run(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/augur/augur/tasks/github/messages.py", line 50, in collect_github_messages
    process_large_issue_and_pr_message_collection(repo_id, repo_git, logger, manifest.key_auth, task_name, augur_db, core_data_last_collected)
  File "/augur/augur/tasks/github/messages.py", line 121, in process_large_issue_and_pr_message_collection
    messages = list(github_data_access.paginate_resource(comment_url))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/augur/augur/tasks/github/util/github_data_access.py", line 64, in paginate_resource
    response = self.make_request_with_retries(url)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/augur/augur/tasks/github/util/github_data_access.py", line 163, in make_request_with_retries
    return self.__make_request_with_retries(url, method, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/augur/.venv/lib/python3.11/site-packages/tenacity/__init__.py", line 330, in wrapped_f
    return self(f, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^
  File "/augur/.venv/lib/python3.11/site-packages/tenacity/__init__.py", line 467, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/augur/.venv/lib/python3.11/site-packages/tenacity/__init__.py", line 368, in iter
    result = action(retry_state)
             ^^^^^^^^^^^^^^^^^^^
  File "/augur/.venv/lib/python3.11/site-packages/tenacity/__init__.py", line 390, in <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/augur/.venv/lib/python3.11/site-packages/tenacity/__init__.py", line 470, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/augur/augur/tasks/github/util/github_data_access.py", line 185, in __make_request_with_retries
    result = self.make_request(url, method, timeout)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/augur/augur/tasks/github/util/github_data_access.py", line 141, in make_request
    raise ResourceGoneException(response_msg)
augur.tasks.github.util.github_data_access.ResourceGoneException: Issues are disabled for this repo

Activity

  1. collectoss-issue-migrator commented on Apr 30, 2026

    @collectoss-issue-migrator
    Author

    Note

    Migrated comment from original
    Originally posted by @MoralCode on 2026-02-18


    What's the issue here? That repo does have issues disabled as the error says. Is this impacting other things beyond issue message collection?

  2. added
    challenging first issue
    deployed version
    on Apr 30, 2026
  3. collectoss-issue-migrator commented on Apr 30, 2026

    @collectoss-issue-migrator
    Author

    Note

    Migrated comment from original
    Originally posted by @cdolfi on 2026-02-18


    I don't think so but because it's marked as error core can't complete

  4. collectoss-issue-migrator commented on Apr 30, 2026

    @collectoss-issue-migrator
    Author

    Note

    Migrated comment from original
    Originally posted by @iGufrankhan on 2026-02-18


    i think
    The repository has issues disabled, GitHub returns HTTP 410, and ResourceGoneException is not handled inside process_large_issue_and_pr_message_collection().

    We are only catching UrlNotFoundException, but not ResourceGoneException, which is raised when GitHub returns 410 because issues are disabled.

    i think this part is in question

    for comment_url in comment_urls:
    try:
    messages = list(github_data_access.paginate_resource(comment_url))
    all_data += messages
    except UrlNotFoundException:
    logger.info(f"{task_name}: PR or issue comment url of {comment_url} returned 404. Skipping.")
    skipped_urls += 1

  5. collectoss-issue-migrator commented on Apr 30, 2026

    @collectoss-issue-migrator
    Author

    Note

    Migrated comment from original
    Originally posted by @MoralCode on 2026-02-18


    We are only catching UrlNotFoundException, but not ResourceGoneException, which is raised when GitHub returns 410 because issues are disabled.

    Thats correct. it seems like skipping collection for issues that dont exist makes more sense than raising an error and stopping collection

  6. self-assigned this
    on May 21, 2026
  7. MoralCode commented on May 21, 2026

    @MoralCode
    Contributor

    oh wow this one is hairy because the issue comment URLs and the PR comment urls are being munged together and processed as a single list

  8. removed
    challenging first issue
    on May 21, 2026
  9. MoralCode commented on May 21, 2026

    @MoralCode
    Contributor

    IM not seeing evidence that githubs API returns 410 Gone for this anymore. Although this task is fetching the comment urls from the database

  10. added theissue type on Jun 24, 2026
  11. added
    critical-fix
    on Sep 29, 2026
  12. changed the title [-]Catch ResourceGoneException('Issues are disabled for this repo') and skip collecting messages for issues when they arent available[/-] [+]github messages: Catch ResourceGoneException('Issues are disabled for this repo') and skip collecting messages for issues when they arent available[/+] on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

critical-fixdeployed version

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions