webhintio / hint

💡 A hinting engine for the web
https://webhint.io/
Apache License 2.0
3.62k stars 670 forks source link

[Bug] Unhandled promise rejections when using a self-signed certificate [0.1] #2317

Closed software-opal closed 4 years ago

software-opal commented 5 years ago

🐛 Bug report

Description

I'm running a local copy of the website which is set up to use HTTPS with a self-signed certificate. I can replicate the errors with https://self-signed.badssl.com/ so I'll use that below

Environment

webhint configuration

I am running hint with the default configuration.

Debug output

Please include the raw output generated by webhint, or if possible, the raw output from running webhint in debug mode: hint --debug <URL>.

webhint’s raw output ```text $ npx hint --debug https://self-signed.badssl.com/ info looking for cached prebuild @ /home/opal/.npm/_prebuilds/105edd-iltorb-v2.4.3-node-v67-linux-x64.tar.gz info found cached prebuild info unpacking @ /home/opal/.npm/_prebuilds/105edd-iltorb-v2.4.3-node-v67-linux-x64.tar.gz info unpack resolved to /home/opal/.npm/_npx/11392/lib/node_modules/hint/node_modules/iltorb/build/bindings/iltorb.node info unpack required /home/opal/.npm/_npx/11392/lib/node_modules/hint/node_modules/iltorb/build/bindings/iltorb.node successfully info install Successfully installed iltorb binary! hint:utils:app-insights Application Insight disabled +0ms hint:utils:network:as-uri Adding valid target: https://self-signed.badssl.com/ +0ms ┌───────────────────────────────────────────────────────────────┐ │ │ │ Couldn't find any valid configuration │ │ │ │ Running hint with the default configuration. │ │ │ │ Learn more about how to create your own configuration at: │ │ │ │ https://webhint.io/docs/user-guide/ │ │ │ └───────────────────────────────────────────────────────────────┘ hint:config:config-validator Validating configuration +0ms hint:config Composing configuration from extends +0ms hint:utils:resource-loader Searching web-recommended… +0ms hint:utils:resource-loader Package @hint/configuration- not found +1ms hint:utils:resource-loader Package hint-configuration- not found +0ms hint:utils:resource-loader @hint/configuration-web-recommended is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader web-recommended found in @hint/configuration-web-recommended +0ms hint:config:config-validator Validating configuration +11ms hint:config Composing configuration from extends +2ms hint:config overriding config settings with values provided via CLI +1ms hint:config Initializing ignored urls +4ms hint:utils:resource-loader Searching jsdom… +6ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +12ms hint:utils:resource-loader @hint/connector-jsdom is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader jsdom found in @hint/connector-jsdom +356ms hint:utils:resource-loader Searching axe… +1ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +3ms hint:utils:resource-loader @hint/hint-axe is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader axe found in @hint/hint-axe +1ms hint:utils:resource-loader Searching button-type… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-button-type is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader button-type found in @hint/hint-button-type +1ms hint:utils:resource-loader Searching content-type… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +2ms hint:utils:resource-loader @hint/hint-content-type is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader content-type found in @hint/hint-content-type +1ms hint:utils:resource-loader Searching css-prefix-order… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-css-prefix-order is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader css-prefix-order found in @hint/hint-css-prefix-order +17ms hint:utils:resource-loader Searching disown-opener… +1ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-disown-opener is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader disown-opener found in @hint/hint-disown-opener +90ms hint:utils:resource-loader Searching highest-available-document-mode… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-highest-available-document-mode is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader highest-available-document-mode found in @hint/hint-highest-available-document-mode +1ms hint:utils:resource-loader Searching html-checker… +1ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-html-checker is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader html-checker found in @hint/hint-html-checker +1ms hint:utils:resource-loader Searching http-cache… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +6ms hint:utils:resource-loader @hint/hint-http-cache is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader http-cache found in @hint/hint-http-cache +1ms hint:utils:resource-loader Searching http-compression… +1ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-http-compression is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader http-compression found in @hint/hint-http-compression +1ms hint:utils:resource-loader Searching meta-charset-utf-8… +1ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-meta-charset-utf-8 is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader meta-charset-utf-8 found in @hint/hint-meta-charset-utf-8 +67ms hint:utils:resource-loader Searching meta-viewport… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +2ms hint:utils:resource-loader @hint/hint-meta-viewport is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader meta-viewport found in @hint/hint-meta-viewport +1ms hint:utils:resource-loader Searching no-bom… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-no-bom is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader no-bom found in @hint/hint-no-bom +1ms hint:utils:resource-loader Searching no-disallowed-headers… +1ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-no-disallowed-headers is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader no-disallowed-headers found in @hint/hint-no-disallowed-headers +1ms hint:utils:resource-loader Searching no-friendly-error-pages… +1ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-no-friendly-error-pages is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader no-friendly-error-pages found in @hint/hint-no-friendly-error-pages +1ms hint:utils:resource-loader Searching no-html-only-headers… +2ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-no-html-only-headers is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader no-html-only-headers found in @hint/hint-no-html-only-headers +7ms hint:utils:resource-loader Searching no-http-redirects… +1ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-no-http-redirects is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader no-http-redirects found in @hint/hint-no-http-redirects +1ms hint:utils:resource-loader Searching no-protocol-relative-urls… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +2ms hint:utils:resource-loader @hint/hint-no-protocol-relative-urls is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader no-protocol-relative-urls found in @hint/hint-no-protocol-relative-urls +0ms hint:utils:resource-loader Searching no-vulnerable-javascript-libraries… +1ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-no-vulnerable-javascript-libraries is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader no-vulnerable-javascript-libraries found in @hint/hint-no-vulnerable-javascript-libraries +1ms hint:utils:resource-loader Searching sri… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +2ms hint:utils:resource-loader @hint/hint-sri is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader sri found in @hint/hint-sri +1ms hint:utils:resource-loader Searching ssllabs… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-ssllabs is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader ssllabs found in @hint/hint-ssllabs +1ms hint:utils:resource-loader Searching strict-transport-security… +1ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-strict-transport-security is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader strict-transport-security found in @hint/hint-strict-transport-security +1ms hint:utils:resource-loader Searching stylesheet-limits… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/hint-stylesheet-limits is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader stylesheet-limits found in @hint/hint-stylesheet-limits +1ms hint:utils:resource-loader Searching validate-set-cookie-header… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +2ms hint:utils:resource-loader @hint/hint-validate-set-cookie-header is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader validate-set-cookie-header found in @hint/hint-validate-set-cookie-header +1ms hint:utils:resource-loader Searching x-content-type-options… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +2ms hint:utils:resource-loader @hint/hint-x-content-type-options is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader x-content-type-options found in @hint/hint-x-content-type-options +1ms hint:utils:resource-loader Searching css… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/parser-css is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader css found in @hint/parser-css +2ms hint:utils:resource-loader Searching html… +0ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/formatter-html is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader html found in @hint/formatter-html +18ms hint:utils:resource-loader Searching summary… +1ms hint:utils:resource-loader Package hint-configuration-web-recommended not found +1ms hint:utils:resource-loader @hint/formatter-summary is not a JSON file, trying to load it normally +0ms hint:utils:resource-loader summary found in @hint/formatter-summary +1ms hint:utils:app-insights Sending event "analyze" to Application Insights with value {"browserslist":["and_chr 73","and_ff 66","and_qq 1.2","and_uc 11.8","android 67","android 4.4.3-4.4.4","baidu 7.12","chrome 73","chrome 72","chrome 71","edge 18","edge 17","firefox 66","firefox 65","firefox 60","ie 11","ie_mob 11","ios_saf 12.0-12.1","ios_saf 11.3-11.4","kaios 2.5","op_mini all","op_mob 46","opera 58","opera 57","safari 12.1","safari 12","samsung 9.2","samsung 8.2","samsung 4"],"formatters":["html","summary"],"ignoredUrls":{},"parsers":["css"],"hints":{"axe":"error","button-type":"error","content-type":"error","css-prefix-order":"error","disown-opener":"error","highest-available-document-mode":"error","html-checker":"error","http-cache":"error","http-compression":"error","meta-charset-utf-8":"error","meta-viewport":"error","no-bom":"error","no-disallowed-headers":"error","no-friendly-error-pages":"error","no-html-only-headers":"error","no-http-redirects":"error","no-protocol-relative-urls":"error","no-vulnerable-javascript-libraries":"error","sri":"error","ssllabs":"error","strict-transport-security":"error","stylesheet-limits":"error","validate-set-cookie-header":"error","x-content-type-options":"error"},"extends":["web-recommended"],"hintsTimeout":120000,"connector":{"name":"jsdom","options":{"waitFor":5000}}} +1s hint:utils:app-insights Application Insights is not enabled. +0ms hint:utils:resource-loader Searching axe… +1ms hint:config:config-hints Validating hint axe +0ms hint:utils:resource-loader Searching button-type… +0ms hint:config:config-hints Validating hint button-type +0ms hint:utils:resource-loader Searching content-type… +0ms hint:config:config-hints Validating hint content-type +0ms hint:utils:resource-loader Searching css-prefix-order… +0ms hint:config:config-hints Validating hint css-prefix-order +0ms hint:utils:resource-loader Searching disown-opener… +0ms hint:config:config-hints Validating hint disown-opener +0ms hint:utils:resource-loader Searching highest-available-document-mode… +0ms hint:config:config-hints Validating hint highest-available-document-mode +0ms hint:utils:resource-loader Searching html-checker… +0ms hint:config:config-hints Validating hint html-checker +0ms hint:utils:resource-loader Searching http-cache… +0ms hint:config:config-hints Validating hint http-cache +0ms hint:utils:resource-loader Searching http-compression… +0ms hint:config:config-hints Validating hint http-compression +0ms hint:utils:resource-loader Searching meta-charset-utf-8… +0ms hint:config:config-hints Validating hint meta-charset-utf-8 +0ms hint:utils:resource-loader Searching meta-viewport… +0ms hint:config:config-hints Validating hint meta-viewport +0ms hint:utils:resource-loader Searching no-bom… +0ms hint:config:config-hints Validating hint no-bom +0ms hint:utils:resource-loader Searching no-disallowed-headers… +0ms hint:config:config-hints Validating hint no-disallowed-headers +0ms hint:utils:resource-loader Searching no-friendly-error-pages… +0ms hint:config:config-hints Validating hint no-friendly-error-pages +0ms hint:utils:resource-loader Searching no-html-only-headers… +0ms hint:config:config-hints Validating hint no-html-only-headers +0ms hint:utils:resource-loader Searching no-http-redirects… +0ms hint:config:config-hints Validating hint no-http-redirects +0ms hint:utils:resource-loader Searching no-protocol-relative-urls… +0ms hint:config:config-hints Validating hint no-protocol-relative-urls +0ms hint:utils:resource-loader Searching no-vulnerable-javascript-libraries… +0ms hint:config:config-hints Validating hint no-vulnerable-javascript-libraries +0ms hint:utils:resource-loader Searching sri… +0ms hint:config:config-hints Validating hint sri +0ms hint:utils:resource-loader Searching ssllabs… +0ms hint:config:config-hints Validating hint ssllabs +0ms hint:utils:resource-loader Searching strict-transport-security… +0ms hint:config:config-hints Validating hint strict-transport-security +1ms hint:utils:resource-loader Searching stylesheet-limits… +1ms hint:config:config-hints Validating hint stylesheet-limits +0ms hint:utils:resource-loader Searching validate-set-cookie-header… +0ms hint:config:config-hints Validating hint validate-set-cookie-header +0ms hint:utils:resource-loader Searching x-content-type-options… +0ms hint:config:config-hints Validating hint x-content-type-options +0ms hint:engine Initializing hint engine +0ms hint:engine Loading parser +0ms hint:engine Parsers loaded: 1 +1ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +1ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +1ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +1ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +1ms hint:engine Loading hints +0ms hint:engine Loading hints +0ms hint:engine Loading hints +1ms hint:engine Starting the analysis on https://self-signed.badssl.com/ +0ms hint:node_modules:hint:node_modules:@hint:connector-jsdom:dist:src:connector About to start fetching https://self-signed.badssl.com/ +0ms hint:node_modules:hint:node_modules:@hint:utils-connector-tools:dist:src:requester Requesting https://self-signed.badssl.com/ +0ms hint:node_modules:hint:node_modules:@hint:connector-jsdom:dist:src:connector HTML for https://self-signed.badssl.com/ downloaded +830ms hint:node_modules:hint:node_modules:@hint:hint-ssllabs:dist:src:hint Starting SSL Labs scan for https://self-signed.badssl.com/ +0ms hint:node_modules:hint:node_modules:@hint:utils-connector-tools:dist:src:requester Requesting https://self-signed.badssl.com/ +843ms hint:node_modules:hint:node_modules:@hint:hint-no-bom:dist:src:hint Validating hint no-bom +0ms hint:node_modules:hint:node_modules:@hint:utils-connector-tools:dist:src:requester Requesting https://self-signed.badssl.com/ +4ms hint:node_modules:hint:node_modules:@hint:utils-connector-tools:dist:src:requester Requesting https://self-signed.badssl.com/ +582ms hint:node_modules:hint:node_modules:@hint:utils-connector-tools:dist:src:requester Requesting https://self-signed.badssl.com/ +586ms hint:node_modules:hint:node_modules:@hint:utils-connector-tools:dist:src:requester Requesting https://self-signed.badssl.com/ +577ms hint:node_modules:hint:node_modules:@hint:connector-jsdom:dist:src:resource-loader resource https://self-signed.badssl.com/style.css to be fetched +0ms hint:node_modules:hint:node_modules:@hint:utils-connector-tools:dist:src:requester Requesting https://self-signed.badssl.com/style.css +622ms hint:node_modules:hint:node_modules:@hint:connector-jsdom:dist:src:resource-loader resource https://self-signed.badssl.com/style.css fetched +582ms hint:node_modules:hint:node_modules:@hint:hint-sri:dist:src:hint Validating integrity of: https://self-signed.badssl.com/style.css +0ms hint:node_modules:hint:node_modules:@hint:hint-sri:dist:src:hint Is Githubissues.
  • Githubissues is a development platform for aggregating issues.