eshaham / israeli-ynab-updater

A tool for updating YNAB using israeli-bank-scrapers
MIT License
53 stars 15 forks source link

Visa Cal scraper fails #44

Open ptc-bsorek opened 5 years ago

ptc-bsorek commented 5 years ago

I tried running the visa cal scraper (site: https://www.cal-online.co.il/) and I get the following error:

scraping Visa Cal Visa Cal: START_SCRAPING Visa Cal: INITIALIZING Visa Cal: LOGGING_IN Visa Cal: TERMINATING Visa Cal: END_SCRAPING success: false error type: generic error: invalid json response body at https://restservices.cal-online.co.il/Cal4U/CalAuthenticator reason: Unexpected token < in JSON at position 0 Error: invalid json response body at https://restservices.cal-online.co.il/Cal4U/CalAuthenticator reason: Unexpected token < in JSON at position 0 at /Users/bsorek/Dev/git/personal/bankapp/israeli-ynab-updater/src/scrape/scrape-base.js:62:11 at Generator.next () at step (/Users/bsorek/Dev/git/personal/bankapp/israeli-ynab-updater/src/scrape/scrape-base.js:47:191) at /Users/bsorek/Dev/git/personal/bankapp/israeli-ynab-updater/src/scrape/scrape-base.js:47:361 at process._tickCallback (internal/process/next_tick.js:68:7)

eshaham commented 5 years ago

@ptc-bsorek seems to be working for me. perhaps you could run it in debug mode and see what's happening in the browser?

npm run start:debug
bsorek commented 5 years ago

it doesn't open up the browser, it seems like it's attempting to do a REST call.

ptc-bsorek commented 5 years ago

any idea on what can be wrong here?

eshaham commented 5 years ago

@bsorek right, slipped my mind it was a different kind of scraper well, since it is working fine for me, you will probably need to try debugging yourself. you can do it by running babel-node --inspect src