https://bugs.kde.org/show_bug.cgi?id=494023
            Bug ID: 494023
           Summary: Downloading values from yahoo fails HTTP Error 401:
                    Unauthorized
    Classification: Applications
           Product: skrooge
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: steph...@mankowski.fr
          Reporter: k...@mockies.de
  Target Milestone: ---

SUMMARY
Running skrooge-yahoodl.py results in HTTP Error 401: Unauthorized

STEPS TO REPRODUCE
1. execute /usr/share/skrooge/skrooge-yahoodl.py EURUSD=X 2024-09-17 2024-10-03
1d

OBSERVED RESULT
Traceback (most recent call last):
  File "/usr/share/skrooge/skrooge-yahoodl.py", line 110, in <module>
    for l in load_yahoo_quote(sys.argv[1], sys.argv[2], sys.argv[3],
sys.argv[4]):
            
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/skrooge/skrooge-yahoodl.py", line 105, in load_yahoo_quote
    f = urllib.request.urlopen(url)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 215, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 521, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 630, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 559, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 639, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

EXPECTED RESULT
Quotes should be fetched

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.10.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-4460 CPU @ 3.20GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4600

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to