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

Trying to download a specific locale for a Fenix daily build fails with a NotFoundError #665

Closed
whimboo opened this issue Mar 26, 2024 · 0 comments · Fixed by #671
Closed

Comments

@whimboo
Copy link
Contributor

whimboo commented Mar 26, 2024

The APK packages of Fenix contain all locales. As such any specific request for a locale should be ignored so that the normal package is downloaded.

mozdownload -a fenix -t daily -p android-x86_64 -l de

Traceback (most recent call last):
  File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 180, in _retry_check_404
    self._retry(func, **retry_kwargs)
  File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 171, in _retry
    return redo.retry(func, **retry_kwargs)
  File "/Users/henrik/code/mozdownload/venv/lib/python3.10/site-packages/redo-2.0.4-py3.10.egg/redo/__init__.py", line 170, in retry
    return action(*args, **kwargs)
  File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 436, in get_build_info
    self.builds, self.build_index = self.get_build_info_for_date(
  File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 519, in get_build_info_for_date
    parser.entries = parser.filter(self.is_build_dir)
  File "/Users/henrik/code/mozdownload/mozdownload/parser.py", line 56, in filter
    return [entry for entry in self.entries if filter(entry)]
  File "/Users/henrik/code/mozdownload/mozdownload/parser.py", line 56, in <listcomp>
    return [entry for entry in self.entries if filter(entry)]
  File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 492, in is_build_dir
    parser = self._create_directory_parser(url)
  File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 188, in _create_directory_parser
    return DirectoryParser(url,
  File "/Users/henrik/code/mozdownload/mozdownload/parser.py", line 48, in __init__
    r.raise_for_status()
  File "/Users/henrik/code/mozdownload/venv/lib/python3.10/site-packages/requests-2.31.0-py3.10.egg/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://archive.mozilla.org/pub/fenix/nightly/2024/03/2024-03-25-21-45-23-fenix-126.0a1-android-x86_64/de/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/henrik/code/mozdownload/venv/bin/mozdownload", line 33, in <module>
    sys.exit(load_entry_point('mozdownload', 'console_scripts', 'mozdownload')())
  File "/Users/henrik/code/mozdownload/mozdownload/cli.py", line 169, in cli
    build = factory.FactoryScraper(scraper_type, **kwargs)
  File "/Users/henrik/code/mozdownload/mozdownload/factory.py", line 126, in __init__
    scraper_types[scraper_type].__init__(self, **kwargs)
  File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 383, in __init__
    Scraper.__init__(self, *args, **kwargs)
  File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 165, in __init__
    self._retry_check_404(self.get_build_info)
  File "/Users/henrik/code/mozdownload/mozdownload/scraper.py", line 183, in _retry_check_404
    raise errors.NotFoundError(err_message, exc.response.url)
mozdownload.errors.NotFoundError: Specified build has not been found: https://archive.mozilla.org/pub/fenix/nightly/2024/03/2024-03-25-21-45-23-fenix-126.0a1-android-x86_64/de/
@whimboo whimboo added this to the 1.29.0 milestone Mar 26, 2024
piri-p added a commit to piri-p/mozdownload that referenced this issue Apr 28, 2024
piri-p added a commit to piri-p/mozdownload that referenced this issue May 2, 2024
piri-p added a commit to piri-p/mozdownload that referenced this issue May 2, 2024
piri-p added a commit to piri-p/mozdownload that referenced this issue May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant