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

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

Open
meonkeys opened this issue Sep 4, 2024 · 1 comment
Open

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

meonkeys opened this issue Sep 4, 2024 · 1 comment

Comments

@meonkeys
Copy link

meonkeys commented Sep 4, 2024

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
@meonkeys
Copy link
Author

meonkeys commented Sep 5, 2024

Ah, this is probably just another symptom of #186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant