Comcast / Comcast/sitemapper-for-js
UnhandledPromiseRejectionWarning
- Dominant language
- JavaScript
- Stars
- 37
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Getting the following error when running the script:
```
> xm-sitemap-generator@0.0.1 start /Users/koen/Code/sitemapper-for-js
> node server.js
App listening on port 8090
:: Queuing https://xxxxx/ ::
:: Data received for https://xxxxx/ ::
(node:18101) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
at Object.notExemptions (/Users/koen/Code/sitemapper-for-js/utils/rules.js:36:50)
at Object.doNotIgnore (/Users/koen/Code/sitemapper-for-js/utils/rules.js:58:21)
at hrefs.forEach (/Users/koen/Code/sitemapper-for-js/utils/rules.js:27:22)
at Array.forEach ()
at Object.checkRules (/Users/koen/Code/sitemapper-for-js/utils/rules.js:25:15)
at webService.getWeb.then (/Users/koen/Code/sitemapper-for-js/crawler.js:81:46)
at processTicksAndRejections (internal/process/task_queues.js:86:5)
(node:18101) 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(). (rejection id: 1)
(node:18101) [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.
```
Contributor guide
Assessment
This issue has not been assessed yet.