Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visa Cal scraper fails #44

Open
ptc-bsorek opened this issue Jul 29, 2019 · 4 comments
Open

Visa Cal scraper fails #44

ptc-bsorek opened this issue Jul 29, 2019 · 4 comments
Labels

Comments

@ptc-bsorek
Copy link

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
Copy link
Owner

eshaham commented Aug 4, 2019

@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
Copy link

bsorek commented Aug 4, 2019

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

@ptc-bsorek
Copy link
Author

any idea on what can be wrong here?

@eshaham
Copy link
Owner

eshaham commented Aug 23, 2019

@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

@eshaham eshaham added the bug label Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants