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

Screenshot fails for wikidata.org diff #183

Open
edsu opened this issue Sep 20, 2021 · 0 comments
Open

Screenshot fails for wikidata.org diff #183

edsu opened this issue Sep 20, 2021 · 0 comments

Comments

@edsu
Copy link
Owner

edsu commented Sep 20, 2021

It seems that trying to get a screenshot of a diff in Wikidata throws an exception. Maybe we should skip getting diff screenshots from Wikidata?

Q108616372 sayfası ODTÜ üzerinden anonim olarak değiştirildi https://www.wikidat
a.org/w/index.php?oldid=1500940408&rcid=1548166481                              
(node:462693) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeEr
ror: Cannot read property 'getBoundingClientRect' of null                       
    at __puppeteer_evaluation_script__:4:43                                     
    at ExecutionContext._evaluateInternal (/home/ed/Projects/anon/node_modules/p
uppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19) 
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async ExecutionContext.evaluate (/home/ed/Projects/anon/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)
    at async takeScreenshot (/home/ed/Projects/anon/anon.js:134:15)
    at async sendStatus (/home/ed/Projects/anon/anon.js:164:24)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:462693) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:462693) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant