The isracard scraper fails with a timeout error
See original GitHub issueStarting today, the isracard scraper stopped working for me with this error:
Uncaught TimeoutError TimeoutError: Navigation timeout of 30000 ms exceeded
at CustomError (/workspaces/money/node_modules/puppeteer/lib/cjs/puppeteer/common/Errors.js:23:15)
Seems like for some reason the isracard website is not loading inside of puppeteer, resulting in a timeout.
This issue is not related to the israeli-bank-scrapers code, but I am opening it to see if anyone else has the same error or knows how to solve it
Miniman repro
With the index.js
and Dockerfile
files, run:
$ docker run --rm -it -e URL="https://google.com" $(docker build -q .)
started { URL: 'https://google.com' }
ended
$ docker run --rm -it -e URL="https://digital.isracard.co.il/personalarea/Login" $(docker build -q .)
started { URL: 'https://digital.isracard.co.il/personalarea/Login' }
TimeoutError: Navigation timeout of 10000 ms exceeded
at /home/pptruser/node_modules/puppeteer/lib/cjs/puppeteer/common/LifecycleWatcher.js:108:111
index.js
import puppeteer from "puppeteer";
try {
const { URL } = process.env;
console.log("started", { URL });
const browser = await puppeteer.launch({
args: ["--disable-dev-shm-usage", "--no-sandbox"],
});
const page = await browser.newPage();
await page.goto(URL, { timeout: 10000 });
await browser.close();
console.log("ended");
} catch (e) {
console.error(e);
process.exit(1);
}
Dockerfile
FROM node:16-alpine AS base
RUN apk add --no-cache chromium nodejs nss ca-certificates freetype ttf-freefont harfbuzz
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
RUN addgroup -S pptruser && adduser -S -g pptruser pptruser \
&& mkdir -p /home/pptruser/Downloads /app \
&& chown -R pptruser:pptruser /home/pptruser
USER pptruser
WORKDIR /home/pptruser
RUN npm init -y
RUN npm install puppeteer
COPY ./index.js ./index.mjs
ENTRYPOINT ["node", "index.mjs"]
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
israeli-bank-scrapers - npm
Provide scrapers for all major Israeli banks and credit card companies. Latest version: 1.14.4, last published: 14 days ago.
Read more >Newest 'python-requests' Questions - Page 371 - Stack Overflow
... read timeout, URL encoding issue? I'm trying to download a file from within Python, I've tried urllib and requests and both give...
Read more >ESRAmagazine Issue 214 September 2022 - Calameo
ESRA MAGAZINE CONTENTS Number 214 september 2022 7 Chairman's Message 38 Touring Israel Historical Places with ESRA Terry Morris Steve ...
Read more >Untitled
02 pay as you go sim not working, Typography magazine spread, Wpf rich text box force ... Silmukkamerkki, Xt910 battery problem, Gepatroneerd betekenis, ......
Read more >Untitled
... Post method in php not working, Waterfox flash problem, Giant killing op ... Digimon masters online arabic, Isracard more, Cara masak gulai...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@daniel-hauser , I also use patch-package to fix things temporarily, it is an handy tool.
I created a new PR #683 handling specifically the Isracard issue instead of merging #681, you can see reasons here on https://github.com/eshaham/israeli-bank-scrapers/pull/681#issuecomment-1114175029
We will probably continue with the original PR #681 to upgrade dependencies of node.js and puppeteer.
Happens to me too.
Interestingly, when I run the scrapper from local (Israel) machine it works, but when i run it from a cloud (Germany) it returns the error you posted.
PS: read on myFinanda facebook page that isracard had changes within the site, but i did not found any myself.
Anyone found a fix?
Thanks.