neopostmodern / wohnungsbot

Der Wohnungsbot — die Anwendung zum 2. Akt ("Das Versprechen des Bots") des Automatisierungsdramas in drei Akten "Von einem der auszog eine Wohnung in Berlin zu finden" von Clemens Schöll
https://wohnungsbot.de
GNU Affero General Public License v3.0
150 stars 27 forks source link

Bot breaks on experimental "neueste zuerst" sort option #114

Open Wyrrrd opened 2 years ago

Wyrrrd commented 2 years ago

After some reloads, the bot overlay (bot image, speech bubbles, flat parameter evaluation) disappears and the bot is stuck on reloading the page repeatedly (more often than normally expected).

image

Wyrrrd commented 2 years ago

(I get that the bot's crashing possibility is in the description of the feature, therefore expected. I opened this issue to give a detailed description of the behaviour, in case you plan to fix it. Feel free to close if the feature should stay experimental.)

neopostmodern commented 2 years ago

CC @drblaui

@Wyrrrd If you could run it from the command line that would maybe yield some more details. Ideally even run it from source in development mode and then open the DevTools...

Wyrrrd commented 2 years ago

CLI output seems not too helpful, as far as I can see it just reports missing objects after they went missing.

Output (click me) ``` (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limitckForUpdatesAndNotify called, downloadPromise is null (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limitry leak detected. 11 did-stop-loading listeners adde (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limits created) (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit isElementInViewport([data-id="109262156"]) called on non-existent element isElementInViewport([data-id="110857112"]) called on non-existent element isElementInViewport([data-id="132386277"]) called on non-existent element isElementInViewport([data-id="134543158"]) called on non-existent element isElementInViewport([data-id="134635786"]) called on non-existent element (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getElementsByClassName') TypeError: Cannot read properties of null (reading 'getElementsByClassName') at :3:66 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(document.querySelector('[data-id="110857112"]').getElementsByClassName("shortlist-star--shortlisted").length > 0) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\actions\data.js:75:48 at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:121:11) at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) at Immediate.n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getElementsByClassName') TypeError: Cannot read properties of null (reading 'getElementsByClassName') at :3:66 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(document.querySelector('[data-id="110857112"]').getElementsByClassName("shortlist-star--shortlisted").length > 0) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\actions\data.js:75:48 at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:121:11) at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) at Immediate.n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getElementsByClassName') TypeError: Cannot read properties of null (reading 'getElementsByClassName') at :3:66 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(document.querySelector('[data-id="110857112"]').getElementsByClassName("shortlist-star--shortlisted").length > 0) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\actions\data.js:75:48 at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:121:11) at Immediate.n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getElementsByClassName') TypeError: Cannot read properties of null (reading 'getElementsByClassName') at :3:66 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(document.querySelector('[data-id="110857112"]').getElementsByClassName("shortlist-star--shortlisted").length > 0) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\actions\data.js:75:48 at Immediate.n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:121:11) Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="109262156"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 0) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="110857112"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 1) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="132386277"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 2) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="134543158"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 3) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="134635786"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 4) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="109262156"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 0) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="110857112"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 1) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="132386277"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 2) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="134543158"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 3) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="134635786"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 4) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="109262156"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 0) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="110857112"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 1) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="132386277"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 2) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="134543158"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 3) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="134635786"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 4) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getElementsByClassName') TypeError: Cannot read properties of null (reading 'getElementsByClassName') at :3:66 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(document.querySelector('[data-id="134635786"]').getElementsByClassName("shortlist-star--shortlisted").length > 0) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\actions\data.js:75:48 at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:121:11) at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) at Immediate.n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) isElementInViewport([data-id="109262156"]) failed. isElementInViewport([data-id="110857112"]) failed. isElementInViewport([data-id="132386277"]) failed. isElementInViewport([data-id="134543158"]) failed. isElementInViewport([data-id="134635786"]) failed. Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getElementsByClassName') TypeError: Cannot read properties of null (reading 'getElementsByClassName') at :3:66 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(document.querySelector('[data-id="134635786"]').getElementsByClassName("shortlist-star--shortlisted").length > 0) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\actions\data.js:75:48 at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:121:11) at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) at Immediate.n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getElementsByClassName') TypeError: Cannot read properties of null (reading 'getElementsByClassName') at :3:66 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(document.querySelector('[data-id="134635786"]').getElementsByClassName("shortlist-star--shortlisted").length > 0) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\actions\data.js:75:48 at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:121:11) at Immediate.n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getElementsByClassName') TypeError: Cannot read properties of null (reading 'getElementsByClassName') at :3:66 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(document.querySelector('[data-id="134635786"]').getElementsByClassName("shortlist-star--shortlisted").length > 0) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\actions\data.js:75:48 at Immediate.n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:121:11) isElementInViewport([data-id="109262156"]) failed. isElementInViewport([data-id="110857112"]) failed. isElementInViewport([data-id="109262156"]) failed. isElementInViewport([data-id="110857112"]) failed. isElementInViewport([data-id="132386277"]) failed. isElementInViewport([data-id="134543158"]) failed. isElementInViewport([data-id="134635786"]) failed. isElementInViewport([data-id="109262156"]) failed. isElementInViewport([data-id="110857112"]) failed. isElementInViewport([data-id="132386277"]) failed. isElementInViewport([data-id="134543158"]) failed. isElementInViewport([data-id="134635786"]) failed. isElementInViewport([data-id="109262156"]) failed. isElementInViewport([data-id="110857112"]) failed. isElementInViewport([data-id="132386277"]) failed. isElementInViewport([data-id="134543158"]) failed. isElementInViewport([data-id="134635786"]) failed. isElementInViewport([data-id="132386277"]) failed. isElementInViewport([data-id="134543158"]) failed. isElementInViewport([data-id="134635786"]) failed. isElementInViewport([data-id="109262156"]) failed. isElementInViewport([data-id="110857112"]) failed. isElementInViewport([data-id="132386277"]) failed. isElementInViewport([data-id="134543158"]) failed. isElementInViewport([data-id="134635786"]) failed. isElementInViewport([data-id="109262156"]) failed. isElementInViewport([data-id="110857112"]) failed. isElementInViewport([data-id="132386277"]) failed. isElementInViewport([data-id="134543158"]) failed. isElementInViewport([data-id="134635786"]) failed. (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getElementsByClassName') TypeError: Cannot read properties of null (reading 'getElementsByClassName') at :3:66 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(document.querySelector('[data-id="134635786"]').getElementsByClassName("shortlist-star--shortlisted").length > 0) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\actions\data.js:75:48 at n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:121:11) at Immediate.n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:110:40) Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getElementsByClassName') TypeError: Cannot read properties of null (reading 'getElementsByClassName') at :3:66 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(document.querySelector('[data-id="134635786"]').getElementsByClassName("shortlist-star--shortlisted").length > 0) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\actions\data.js:75:48 at Immediate.n (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\bot.js:121:11) Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="109262156"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 0) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="110857112"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 1) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="132386277"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 2) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="134543158"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 3) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="134635786"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 4) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="109262156"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 0) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="110857112"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 1) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="132386277"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 2) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="134543158"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 3) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 Error executing JavaScript-snippet within webContents: [TypeError] Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at :3:92 at new Promise () at :1:1 This is the code that caused the error: new Promise((resolve, reject) => { try { resolve(JSON.parse(JSON.stringify(document.querySelector('[data-id="134635786"]').getBoundingClientRect()))) } catch(err) { throw { name: err.name, message: err.message, stack: err.stack } } }) // END OF CODE Stack that led to the execution of this snippet (Electron): at o.elementBoundingBox [as getBoundingBox] (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:139:18) at o.isElementInViewport (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\utils\electronUtils.js:176:13) at boundingBoxes (C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:64:15) at async Promise.all (index 4) at C:\Users\Wyrrrd\AppData\Local\Programs\wohnungsbot\resources\app.asar\app\webpack:\wohnungsbot\app\middleware\overlay.js:57:13 isElementInViewport([data-id="109262156"]) called on non-existent element isElementInViewport([data-id="110857112"]) called on non-existent element isElementInViewport([data-id="132386277"]) called on non-existent element isElementInViewport([data-id="134543158"]) called on non-existent element isElementInViewport([data-id="134635786"]) called on non-existent element isElementInViewport([data-id="109262156"]) called on non-existent element isElementInViewport([data-id="110857112"]) called on non-existent element isElementInViewport([data-id="132386277"]) called on non-existent element isElementInViewport([data-id="134543158"]) called on non-existent element isElementInViewport([data-id="134635786"]) called on non-existent element isElementInViewport([data-id="109262156"]) called on non-existent element isElementInViewport([data-id="110857112"]) called on non-existent element isElementInViewport([data-id="132386277"]) called on non-existent element isElementInViewport([data-id="134543158"]) called on non-existent element isElementInViewport([data-id="134635786"]) called on non-existent element isElementInViewport([data-id="109262156"]) called on non-existent element isElementInViewport([data-id="110857112"]) called on non-existent element isElementInViewport([data-id="132386277"]) called on non-existent element isElementInViewport([data-id="134543158"]) called on non-existent element isElementInViewport([data-id="134635786"]) called on non-existent element isElementInViewport([data-id="109262156"]) called on non-existent element isElementInViewport([data-id="110857112"]) called on non-existent element isElementInViewport([data-id="132386277"]) called on non-existent element isElementInViewport([data-id="134543158"]) called on non-existent element isElementInViewport([data-id="134635786"]) called on non-existent element isElementInViewport([data-id="109262156"]) called on non-existent element isElementInViewport([data-id="110857112"]) called on non-existent element isElementInViewport([data-id="132386277"]) called on non-existent element isElementInViewport([data-id="134543158"]) called on non-existent element isElementInViewport([data-id="134635786"]) called on non-existent element isElementInViewport([data-id="109262156"]) called on non-existent element isElementInViewport([data-id="110857112"]) called on non-existent element isElementInViewport([data-id="132386277"]) called on non-existent element isElementInViewport([data-id="134543158"]) called on non-existent element isElementInViewport([data-id="134635786"]) called on non-existent element isElementInViewport([data-id="109262156"]) called on non-existent element isElementInViewport([data-id="110857112"]) called on non-existent element isElementInViewport([data-id="132386277"]) called on non-existent element isElementInViewport([data-id="134543158"]) called on non-existent element isElementInViewport([data-id="134635786"]) called on non-existent element isElementInViewport([data-id="109262156"]) failed. isElementInViewport([data-id="110857112"]) failed. isElementInViewport([data-id="132386277"]) failed. isElementInViewport([data-id="134543158"]) failed. isElementInViewport([data-id="134635786"]) failed. isElementInViewport([data-id="109262156"]) failed. isElementInViewport([data-id="110857112"]) failed. isElementInViewport([data-id="132386277"]) failed. isElementInViewport([data-id="134543158"]) failed. isElementInViewport([data-id="134635786"]) failed. (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit (node:15328) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit ```
drblaui commented 2 years ago

This is crazy, I have no idea why this even breaks that badly.

But maybe it can be fixed very hacky: What if we catch the "errors" and just skip them? If the item doesn't exist, why bother doing something with it. Is there an easy way to just skip these elements maybe?

neopostmodern commented 2 years ago

@drblaui I think this is already the behavior for all non-essential elements, but please double-check. My guess: there is an error that is not showing in the logs happening first and everything thereafter is an irrelevant side-effect of the UI going wry producing many verbose (already caught) errors. I've opened #116 to track an improvement on the logging.

drblaui commented 2 years ago

You probably know your code best. Do you think there is an error you're not logging? As far as I can see the amount of logging is generally thorough. Also non logged errors should kill the whole electron process and not just logic/UI?