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
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?