Code Monkey home page Code Monkey logo

Comments (20)

mrgodhani avatar mrgodhani commented on June 6, 2024

@khoslaventures is this the latest version of the App ? It should work. Sometimes you might have to re run the app or try it out to figure what is happening by clicking on Application > Debug before you click on Uber option. With their new rebranded UI I have seen cases where their servers goes down and gives "Internal server error"

from ridereceipts.

mrgodhani avatar mrgodhani commented on June 6, 2024

screen shot 2018-09-17 at 8 51 02 am

Otherwise just tried right now works fine

from ridereceipts.

khoslaventures avatar khoslaventures commented on June 6, 2024

Yea, this is the latest version of the app.

So I went into debug mode. Managed to login, selected the receipts from the past year.

image

It just sits here on very first trip it opens. Any ideas?

from ridereceipts.

khoslaventures avatar khoslaventures commented on June 6, 2024

Also, as a side note, would it be possible to get stuff before a year ago by having screenshots taken of each trip page? Or maybe I could write that logic myself, any ideas where to start?

from ridereceipts.

mrgodhani avatar mrgodhani commented on June 6, 2024

That explains why. I don't see "Save Invoice" option.

screen shot 2018-09-17 at 10 05 11 pm

from ridereceipts.

mrgodhani avatar mrgodhani commented on June 6, 2024

Also, as a side note, would it be possible to get stuff before a year ago by having screenshots taken of each trip page? Or maybe I could write that logic myself, any ideas where to start?

That feature we are bringing in pro version. Where you can just select custom date range. Now looking at your situation I would need to modify some code so it still takes screenshot.

from ridereceipts.

mrgodhani avatar mrgodhani commented on June 6, 2024

Should be fixed now in this release https://github.com/ridereceipts/ridereceipts/releases/tag/v1.6.4

from ridereceipts.

khoslaventures avatar khoslaventures commented on June 6, 2024

Hmm I tried it, and my progress bar still doesn't move. Not sure what's happening.

from ridereceipts.

mrgodhani avatar mrgodhani commented on June 6, 2024

Difficult to test because US have no invoices. Eventually code here https://github.com/ridereceipts/ridereceipts/blob/50142cab11bcb26b0eae0ef10dc9389177f819da/src/renderer/services/puppeteer_uberv2.js#L342 suppose to check if that element is there or not depending on that still should move on

from ridereceipts.

khoslaventures avatar khoslaventures commented on June 6, 2024

Ok, I'll try commenting out those lines and see if I can just get screenshots of the receipts instead. That would suffice for me personally. I'll let you know how it goes.

from ridereceipts.

mrgodhani avatar mrgodhani commented on June 6, 2024

@khoslaventures I would say best way is to debug using console.log. if invoiceButton is false it should still move ahead. Also console errors would be helpful

from ridereceipts.

khoslaventures avatar khoslaventures commented on June 6, 2024

I set invoiceButton to false. Still no luck. Progress bar doesn't move forward at all.

I noticed this error though in my console:

/Users/akashkhosla/ridereceipts/node_modules/puppeteer/lib/FrameManager.js:862 Uncaught (in promise) TimeoutError: waiting for selector "#root > div > div > div > div > div:nth-child(1) > div > div > div:nth-child(2) > div span" failed: timeout 30000ms exceeded
    at new WaitTask (/Users/akashkhosla/ridereceipts/node_modules/puppeteer/lib/FrameManager.js:862:28)
    at Frame._waitForSelectorOrXPath (/Users/akashkhosla/ridereceipts/node_modules/puppeteer/lib/FrameManager.js:753:12)
    at Frame.waitForSelector (/Users/akashkhosla/ridereceipts/node_modules/puppeteer/lib/FrameManager.js:711:17)
    at Page.waitForSelector (/Users/akashkhosla/ridereceipts/node_modules/puppeteer/lib/Page.js:1043:29)
    at _callee6$ (webpack-internal:///./src/renderer/services/puppeteer_uberv2.js:644:23)
    at tryCatch (webpack-internal:///./node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (webpack-internal:///./node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (webpack-internal:///./node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:114:21)
    at step (webpack-internal:///./node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at eval (webpack-internal:///./node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13)

from ridereceipts.

mrgodhani avatar mrgodhani commented on June 6, 2024

@khoslaventures I found that most recently page doesn't open when browser is hidden/headless. But it works when debug config is on

from ridereceipts.

khoslaventures avatar khoslaventures commented on June 6, 2024

Hmm I see. Yea I have this open in debug mode. It loads the first receipts and just sits there on the first one. Still have invoiceButton set to false.

/Users/akashkhosla/ridereceipts/node_modules/puppeteer/lib/FrameManager.js:862 Uncaught (in promise) TimeoutError: waiting for selector "#root > div > div > div > div > div:nth-child(1) > div > div > div:nth-child(2) > div span" failed: timeout 30000ms exceeded
    at new WaitTask (/Users/akashkhosla/ridereceipts/node_modules/puppeteer/lib/FrameManager.js:862:28)
    at Frame._waitForSelectorOrXPath (/Users/akashkhosla/ridereceipts/node_modules/puppeteer/lib/FrameManager.js:753:12)
    at Frame.waitForSelector (/Users/akashkhosla/ridereceipts/node_modules/puppeteer/lib/FrameManager.js:711:17)
    at Page.waitForSelector (/Users/akashkhosla/ridereceipts/node_modules/puppeteer/lib/Page.js:1043:29)
    at _callee6$ (webpack-internal:///./src/renderer/services/puppeteer_uberv2.js:644:23)
    at tryCatch (webpack-internal:///./node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (webpack-internal:///./node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (webpack-internal:///./node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:114:21)
    at step (webpack-internal:///./node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at eval (webpack-internal:///./node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13)

This was the most recent console error when in debug mode and the page was loaded.

from ridereceipts.

khoslaventures avatar khoslaventures commented on June 6, 2024

So my page is loading. I commented out:

// await page.waitForSelector('#root > div > div > div > div > div:nth-child(1) > div > div > div:nth-child(2) > div span')

And it works. Now what this is telling me is that for some reason, this element is not being detected. Is that because it points to the Download button which is non-existent?

from ridereceipts.

nunocordeiro avatar nunocordeiro commented on June 6, 2024

I'm having the same (or similar) issue on Windows 10. Has this been fixed or should I attempt to make a build with the same workaround that khoslaventures used?

Thanks!

from ridereceipts.

mrgodhani avatar mrgodhani commented on June 6, 2024

@nunocordeiro that mechanism is removed in new version of the app. New version of the app now downloads receipts from gmail account.

from ridereceipts.

nunocordeiro avatar nunocordeiro commented on June 6, 2024

It's not working for me, possibly because I don't have direct links to my invoices from the email.
I tried one of the old versions, but even though the links are there, it doesn't download them - something must've changed in the way chrome handles your scripting.

Should I open a new issue for you? What information can I provide you with?

from ridereceipts.

mrgodhani avatar mrgodhani commented on June 6, 2024

@nunocordeiro if you dont have any emails in account then it wont download. Old versions use to download from dashboard which have removed in newer version. That would be supported only on pro that is coming soon in New year and would be a paid app. You can create new issue if you still find that it is not downloading receipts from your gmail account and you believe you have email receipts.

from ridereceipts.

nunocordeiro avatar nunocordeiro commented on June 6, 2024

Done!

from ridereceipts.

Related Issues (16)

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.