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

Invalid ID error #67

Open
mattcarlin opened this issue Apr 12, 2019 · 3 comments
Open

Invalid ID error #67

mattcarlin opened this issue Apr 12, 2019 · 3 comments

Comments

@mattcarlin
Copy link

mattcarlin commented Apr 12, 2019

I recently posted another issue about being unable to connect to Chase bank. Whenever I typed ofxclient into my command prompt, it would just tell me authentication failed. That problem was fixed (thanks to some help from you guys) by simply typing ofxclient --ofx-version 103. However, I was immediately met with another issue; when I type my username and password and hit enter, it gives me authentication failed: INVALID ID/PASSWORD even though I can log in to my chase account just fine with the same credentials.

I found this (#15) article, but am not really sure if it will solve my problem; plus I am not even sure how to do what the people in the thread are talking about.

I thought it might be an issue with the command prompt version of ofxclient, so I pip installed ofxclient for python 3 and tested the example from the front page in jupyter notebook (id = '10898', org = 'B1', url = 'https://ofx.chase.com'). The error I got was ModuleNotFoundError: No module named 'ofxclient', even though I had just installed it.

My next thought was to try the python method but from the command prompt instead of jupyter notebook.

C:\Users\my_username>python
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>from ofxclient import Institution
>>>inst = Institution(id='10898',org='B1',url='https://ofx.chase.com',username='my_username',password='my_password')
>>>accounts=inst.accounts()
>>>for a in accounts:
    ...     download=a.download(days=5)
    ...     print(download.read())
    ...     statement = a.statement(days=5)
    ...     print(statement.balance)
    ...
>>>

As you can see, it seems to be able to tell that the module is installed, and it didn't give me any username/password error, but it doesn't print anything. I am extremely frustrated with this because I know that when I get it to work, ofxclient will be extremely powerful. Any and all help would be very much appreciated.

@philipsd6
Copy link

You'll need to do the following to use this with Chase:

  1. Generate a uuid (either with openssl rand -hex 16 or online at https://www.uuidgenerator.net/
  2. Run this once:
import logging
logging.basicConfig(level=logging.DEBUG)

from ofxclient import Institution

client_args = dict(ofx_version='103',
                   id='<YOUR UUID>')

inst = Institution(id='10898',
                   org='B1',
                   url='https://ofx.chase.com',
                   username='my_username',
                   password='my_password'
                   client_args=client_args)

accounts = inst.accounts()
for account in accounts:
    print(account.description, account.number_masked())
  1. You'll probably see something like this in the output:
<OFX><SIGNONMSGSRSV1><SONRS><STATUS><CODE>15510<SEVERITY>ERROR<MESSAGE>Please verify your identity within the next 7 days. Using your d
esktop computer, go to your banks website and visit the Secure Message Center for instructions.</STATUS><DTSERVER>20190423200641.611[-4
:EDT]<LANGUAGE>ENG<FI><ORG>B1<FID>10898</FI></SONRS></SIGNONMSGSRSV1><SIGNUPMSGSRSV1><ACCTINFOTRNRS><TRNUID>7aa314891e407a46b922bbbdee1
51796<STATUS><CODE>15500<SEVERITY>ERROR</STATUS><CLTCOOKIE>4</ACCTINFOTRNRS></SIGNUPMSGSRSV1></OFX>                                    
  1. Then sign into your Chase account and go to your secure messages, and click the link in that message.
  2. Then run the above code again! Just be sure to keep using the same uuid.

WARNING Your username and password will be in the debug output, so don't cut-n-paste it without sanitizing it!

@mattcarlin
Copy link
Author

mattcarlin commented Apr 27, 2019 via email

@jcguu95
Copy link

jcguu95 commented Mar 24, 2020

How did it go?

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

3 participants