Unable to target a domain via FHC tool

Solution Verified - Updated -

Issue

  • Error when running $fhc target <domain>
  • Issue with FHC target command on Windows
  • How to configure fhc against basic authentication proxy?
  • Error fhc ERR! cb() never called! is shown when is trying to target a domain via FHC tool as follows.
$ fhc target https://example.redhatmobile.com
fhc ERR! cb() never called!
fhc ERR!  
fhc not ok
_http_client.js:50
    throw new TypeError('Request path contains unescaped characters.');
    ^

TypeError: Request path contains unescaped characters.
    at new ClientRequest (_http_client.js:50:11)
    at TunnelingAgent.exports.request (http.js:31:10)
    at TunnelingAgent.createSocket (/usr/local/lib/node_modules/fh-fhc/node_modules/request/tunnel.js:116:25)
    at TunnelingAgent.createSecureSocket [as createSocket] (/usr/local/lib/node_modules/fh-fhc/node_modules/request/tunnel.js:188:41)
    at TunnelingAgent.addRequest (/usr/local/lib/node_modules/fh-fhc/node_modules/request/tunnel.js:80:8)
    at new ClientRequest (_http_client.js:131:16)
    at Object.exports.request (http.js:31:10)
    at Object.socket.once.exports.request (https.js:182:15)
    at Request.start (/usr/local/lib/node_modules/fh-fhc/node_modules/request/main.js:516:30)
    at Request.end (/usr/local/lib/node_modules/fh-fhc/node_modules/request/main.js:927:28)

Environment

  • Red Hat Mobile Application Platform (RHMAP) - v3.15
  • FHC tool -v2.16.3-493
  • Proxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content