domain-monitor: Cannot read property 'domains' of undefined
Describe the bug
When adding a domain with whois caching, the page just keeps saying: No WHOIS cache for domain.tld
Running Docker Image: nwesterhausen/domain-monitor
domain-monitor | (node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'domains' of undefined
domain-monitor | at sendCachedWHOISData (/app/lib/sockets.js:25:14)
domain-monitor | at /app/lib/sockets.js:120:9
domain-monitor | (node:1) 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: 8)
To Reproduce
- Run Docker image
nwesterhausen/domain-monitor - Add a 2 domains.
- For each add, the error above will be thrown and neither domains will update their whois data / status.
Expected behavior The domain status should update.
Screenshots

Desktop (please complete the following information):
- Docker on Ubuntu 20.04 LTS
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (11 by maintainers)
Commits related to this issue
- promise correctly, fix #22 — committed to nwesterhausen/domain-monitor by deleted user 5 years ago
I got it to reproduce, so I will figure this out
Awesome - thanks for the fixes! Really appreciate it.
Just added a bunch of domains - now waiting for the app to pull whois.
https://domain-monitor.jensen.ovh/#
It’s probably another improperly coded promise chain on my part. I will duplicate on my end and see what I discover