Skip to content

ERROR_NO_RESULTS when domain name includes double dash #27

@michaelkl

Description

@michaelkl

Hello!

I'm getting the ERROR_NO_RESULTS error when the URL I'm checking includes -- sequence. Here's an example:

$ lighthouse-check --verbose --isOrb --urls https://pr36-cu--0y5ikr.herokuapp.com

❌  Something went wrong while attempting to enqueue URLs for Lighthouse. See the error below.

 LighthouseCheckError: Something went wrong - no results.
    at /usr/lib/node_modules/@foo-software/lighthouse-check/dist/lighthouseCheck.js:181:16 {
  code: 'ERROR_NO_RESULTS',
  data: undefined
}

As an ugly workaround, I'm using shell magic to escape -- in URLs with %2D- which solves the issue for me but I believe there is a better solution:

$ lighthouse-check --verbose --isOrb \
         --urls `echo https://pr36-cu--0y5ikr.herokuapp.com | sed 's/--/%2D-/g'`


+--------------------------------------------------------------------------+
|                             Lighthouse Audit                             |
+--------------------------------------------------------------------------+

URL: https://pr36-cu%2D-0y5ikr.herokuapp.com
…

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions