ynam icon indicating copy to clipboard operation
ynam copied to clipboard

ynam all of a sudden not working

Open BayonIT opened this issue 2 years ago • 3 comments

I've had ynam working percetly for many months now and all of a sudden it seems broken. Nothing has changed with my workflow and everything looks good over at Mint.com. Any suggestions?

Traceback (most recent call last): File "/opt/homebrew/bin/ynam", line 8, in sys.exit(main()) File "/opt/homebrew/lib/python3.9/site-packages/ynam/main.py", line 32, in main ynab_transactions = ynab_api.get_account_transactions( File "/opt/homebrew/lib/python3.9/site-packages/ynam/ynab_api.py", line 498, in get_account_transactions return [ File "/opt/homebrew/lib/python3.9/site-packages/ynam/ynab_api.py", line 499, in YNABTransaction.from_dict(xt) File "/opt/homebrew/lib/python3.9/site-packages/ynam/ynab_api.py", line 42, in from_dict return cls(**{ File "", line 15, in init File "/opt/homebrew/lib/python3.9/site-packages/ynam/ynab_api.py", line 31, in post_init if len(self.payee_name) >= 100: TypeError: object of type 'NoneType' has no len()

BayonIT avatar Apr 18 '23 04:04 BayonIT

Check which version of mintapi you're using. It had an issue in a recent version which can cause this problem. v2.14 is the latest version and should work fine.

snowskeleton avatar Apr 19 '23 15:04 snowskeleton

I ran "pip install git+https://github.com/mintapi/mintapi" and it upgrade from 2.11>2.14, but still same error. I ran the ynam quickstart again and no issues there, but same errors when running it now.

Was that the proper way to upgrade mintapi?

BayonIT avatar Apr 19 '23 18:04 BayonIT

Running through quickstart doesn't exercise the Mint login flow. You can use ynam --update-mint-auth instead.

The way you updated looks valid, assuming you're not using a virtual environment or container of some sort.

Also your Apple Card may have become unlinked, which happens every 90 days or so and can have various consequences. It shows up if you try to interact with the account in the Mint web UI.

snowskeleton avatar Apr 28 '23 22:04 snowskeleton