Giter VIP home page Giter VIP logo

Comments (7)

snowskeleton avatar snowskeleton commented on June 9, 2024

This indeed is a new issue!

It looks like something about the response from Mint isn't formatted to ynam's liking, and I'm doing a poor job of validation. Try and manually examine the item['fiData'] object in the return response, anything look fishy?

from ynam.

BabblingBafoon avatar BabblingBafoon commented on June 9, 2024

Would that be in a log file somewhere? I didn't see anything in the ~/.ynam folder that looks like a log file, so not sure where to look for what you are asking.

Apologies, but my troubleshooting foo is weak. 😂 I feel lucky and proud that I got this to work at all!

from ynam.

snowskeleton avatar snowskeleton commented on June 9, 2024

I just added lines 52 and 53 to mint_api.py

...
logger.info(f"Found {len(items)} transactions in Mint.")
[logger.debug(item['fiData']) for item in items]
...

update ynam (pip install -U ynam, or however you installed it the first time), and run it with the debug flag (ynam --debug). This will dump all Mint transactions (and a bunch of other garbage) to your console. For example, one of my transactions looks like

DEBUG:ynam:
{
'id': 'f40c881c-c71d-4e73-83f9-9b3e98ea71b6',
'date': '2022-10-30',
'amount': -59.82,
'description': '<redacted payee name>',
'inferredDescription': '<redacted payee name>',
'inferredCategory': {
    'id': '89369599_102',
    'name': 'Amusement'
}}

from ynam.

BabblingBafoon avatar BabblingBafoon commented on June 9, 2024

I updated ynam, which appeared to be successful. I ran it with debug flag and the output seems really strange to me (at least, the parts that show transactions). It was showing transactions from like 2015 and I'm pretty positive they are from my checking account, NOT my Apple Card. That in itself may point to the source of the problem??

The quickstart doesn't ask for choosing the Apple Card from my Mint account... just what to put the transactions in under the YNAB account, which I did.

How can I help fix it grabbing the (seemingly) wrong account inside Mint?

from ynam.

snowskeleton avatar snowskeleton commented on June 9, 2024

That could indeed be the problem. I mention it somewhere in the README, but basically ynam assumes that you'll only have your Apple Card linked.

As I see it, you could either go about removing the offending transactions from Mint (assuming you don't need them for historical purposes), or you could make a new Intuit account just for use with ynam. I'm more inclined to the second option, as it's best practice to give all your robots unique login credentials.

from ynam.

BabblingBafoon avatar BabblingBafoon commented on June 9, 2024

Doh!!! I totally misunderstood that recommendation as only have one "Apple Card" account linked to your Mint account. Now I completely get it and it makes total sense. Honestly, I kind of feel like an idiot for not doing this anyway. Ugh. 🙄 😂

Sorry man. Thanks for the work on this and helping figure out my mistake. You rock!!

from ynam.

snowskeleton avatar snowskeleton commented on June 9, 2024

I'm glad it worked! I should probably surface a better error message for this issue in the future.

Don't feel too bad about needing help for this. We've all been there at some point.

from ynam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.