Giter Site home page Giter Site logo

Comments (5)

jbms avatar jbms commented on August 15, 2024 1

In interactive mode I usually first call run(), and see where it gets stuck/throws an error. If it gets stuck, you can press Control+C to interrupt. You can use the ipython %debug command to enter the debugger, or you can just look at the stack trace to see where it was. Then I usually manually paste in the relevant snippets of code from the module being executed to see what is being returned. The ipython shell is set up to attempt to autoreload modified source files, so you can also modify the code to try to fix it and re-run the whole thing or just a particular function to see if it worked. However, the autoreload does not always work, and generally only works to modify existing methods, not to add new ones.

Regarding it failing on an old invoice, I'm not seeing that on invoices back to 2012 --- if you can figure out a way to detect or handle that it would be great.

Note that the lastupdate file is only used by the status command, but does not affect which invoices are downloaded --- it attempts to download any invoices not already in the output directory.

from finance-dl.

jbms avatar jbms commented on August 15, 2024

Sounds like maybe a change in the website --- I'll have to take a look. In general the way I debug these issues is to run in interactive mode.

from finance-dl.

jbms avatar jbms commented on August 15, 2024

I believe this is fixed now.

from finance-dl.

philipsd6 avatar philipsd6 commented on August 15, 2024

@jbms if you happen to review a closed issue, can you expand a bit somewhere on how you debug these issues in interactive mode? I tried that, and the docs just said call run(), which just does the whole thing, and I didn't have the time/patience to dig into the code to see if I can go step by step to isolate the issue...

from finance-dl.

philipsd6 avatar philipsd6 commented on August 15, 2024

Also, yes, it's working for me now, although it eventually fails due to an Amazon error on downloading an invoice from waaaaaay in the past. I just touched logs/amazon.lastupdate.

from finance-dl.

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.