Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

ynam all of a sudden not working #37

Open
bayonhealth opened this issue Apr 18, 2023 · 3 comments
Open

ynam all of a sudden not working #37

bayonhealth opened this issue Apr 18, 2023 · 3 comments

Comments

@bayonhealth
Copy link

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()

@bayonhealth bayonhealth changed the title ynam all of a sudden now working ynam all of a sudden not working Apr 18, 2023
@snowskeleton
Copy link
Owner

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.

@bayonhealth
Copy link
Author

bayonhealth commented Apr 19, 2023

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?

@snowskeleton
Copy link
Owner

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.

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

No branches or pull requests

2 participants