Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests, Beta-Cluster-Infrastructure.
Restricted Application added subscribers: pywikibot-bugs-list, Stang, Aklapper.

TASK DESCRIPTION
  Generate family file steps on github action fails with ClientError: (403) 
Request forbidden, e.g.
  
    Generating family file from http://zh.wikipedia.beta.wmcloud.org/
    WARNING: Http response status 403
    Traceback (most recent call last):
      File "pwb.py", line 40, in <module>
        sys.exit(main())
      File "pwb.py", line 36, in main
        runpy.run_path(str(path), run_name='__main__')
      File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/runpy.py", 
line 265, in run_path
        return _run_module_code(code, init_globals, run_name,
      File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/runpy.py", 
line 97, in _run_module_code
        _run_code(code, mod_globals, init_globals,
      File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/runpy.py", 
line 87, in _run_code
        exec(code, run_globals)
      File "pywikibot/scripts/wrapper.py", line 557, in <module>
        main()
      File "pywikibot/scripts/wrapper.py", line 541, in main
        if not execute():
      File "pywikibot/scripts/wrapper.py", line 528, in execute
        run_python_file(filename, script_args, module)
      File "pywikibot/scripts/wrapper.py", line 154, in run_python_file
        exec(compile(source, filename, 'exec', dont_inherit=True),
      File "pywikibot/scripts/generate_family_file.py", line 335, in <module>
        main()
      File "pywikibot/scripts/generate_family_file.py", line 331, in main
        FamilyFileGenerator(*sys.argv[1:]).run()
      File "pywikibot/scripts/generate_family_file.py", line 151, in run
        w, verify = self.get_wiki()
      File "pywikibot/scripts/generate_family_file.py", line 133, in get_wiki
        w = self.Wiki(self.base_url, verify=verify)
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/site_detect.py", 
line 48, in __init__
        check_response(r)
      File "/home/runner/work/pywikibot/pywikibot/pywikibot/site_detect.py", 
line 301, in check_response
        raise err_class(msg)
    pywikibot.exceptions.ClientError: (403) Request forbidden -- authorization 
will not help
    CRITICAL: Exiting due to uncaught exception ClientError: (403) Request 
forbidden -- authorization will not help
    Error: Process completed with exit code 1.
  
  See
  
  - 
https://github.com/wikimedia/pywikibot/actions/runs/16251524896/job/45882413556
  - 
https://github.com/wikimedia/pywikibot/actions/runs/16251524896/job/45882413556

TASK DETAIL
  https://phabricator.wikimedia.org/T399415

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to