Skip to content

ofxget stmt with BECU returns HTTP Error 400: Bad Request #189

@meonkeys

Description

@meonkeys

I'm trying to connect to BECU with ofxtools 0.9.5. I'm using Python 3.12.5.

I'm able to run ofxget list.

ofxget stmt becu -u REDACTED --all returns:

Password: 
Traceback (most recent call last):
  File "/usr/local/bin/ofxget", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ofxtools/scripts/ofxget.py", line 1612, in main
    REQUEST_HANDLERS[args["request"]](args)
  File "/usr/local/lib/python3.12/site-packages/ofxtools/scripts/ofxget.py", line 723, in request_stmt
    with client.request_statements(
         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ofxtools/Client.py", line 354, in request_statements
    RqCls2url = self._get_service_urls(
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ofxtools/Client.py", line 434, in _get_service_urls
    profile = self.request_profile(
              ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ofxtools/Client.py", line 506, in request_profile
    response = self._request_profile(
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ofxtools/Client.py", line 581, in _request_profile
    return self.download(
           ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ofxtools/Client.py", line 868, in download
    response = self.post_request(url, request, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ofxtools/Client.py", line 905, in post_request
    response = opener.open(req, timeout=timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/urllib/request.py", line 521, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/urllib/request.py", line 630, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/urllib/request.py", line 559, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/urllib/request.py", line 492, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/local/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 400: Bad Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions