Request timed out.

Ignazio's Avatar

Ignazio

17 Feb, 2017 11:53 AM

Hi,
I checked this bonjur article http://support.revealapp.com/kb/tips-tricks/bonjour-debugging-why-c...
and via command line everything looks fine.
But when I launch the RevelApp, it discovers the iOS simulator but is not able to connect.
I checked the console log and I saw some messages:

NSURLSessionTask finished with error - code: -1001
TIC TCP Conn Cancel [11:0x6180003801a0]
HTTP load failed (error code: -999 [1:89])
ERROR: Failed to refresh application state: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSUnderlyingError=0x610000441e30 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=https://localhost:54017/application, NSErrorFailingURLKey=https://localhost:54017/application, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.}
  1. Support Staff 1 Posted by Vlas Voloshin on 18 Feb, 2017 09:10 AM

    Vlas Voloshin's Avatar

    Hi Ignazio,

    The log message that you have attached looks interesting – it mentions the following URL that Reveal attempted to load:

    NSErrorFailingURLKey=https://localhost:54017/application
    

    This is curious because Reveal does not actually use HTTPS to communicate with the inspected application. I would assume that the timeout is caused by Reveal attempting (for some reason) to initiate an SSL handshake and, of course, failing to do so.

    It would be difficult for me to guess why exactly Reveal attempts to use HTTPS in your case, but I'll try: maybe there's some sort of system-wide tweak or kernel extension installed on your system that somehow forces all HTTP requests to be performed over SSL, including that with services on localhost? Maybe if you're using a computer provided by your employer, such tweak is enforced by your system administrator policy?

    It would also be great to know which version of Reveal you're using.

    Best regards,
    Vlas.

  2. 2 Posted by Ignazio on 28 Feb, 2017 08:52 PM

    Ignazio's Avatar

    Hi Vlas,
    thanks for your anwer.
    I finally found the solution and I think that can be also interesting for you.

    I noticed that also Safari was acting weird, redirecting my request from http://localhost to htts://localhost.
    Googled it I found that the root cause is HSTS.
    I removed the cookie in ~/Library/Cookies/HSTS.plist and Reveal started again to work as expected.

  3. Support Staff 3 Posted by Vlas Voloshin on 01 Mar, 2017 12:06 AM

    Vlas Voloshin's Avatar

    Hi Ignazio,

    This is very interesting. I wasn't aware that HSTS cookies could affect HTTP communication for "normal" apps – I thought it only affected Safari. This is good to know, and I'll add that to our knowledge base to potentially help other people in a similar situation. Thanks for your help, and I'm glad you've resolved the issue!

    Best regards,
    Vlas.

  4. Vlas Voloshin closed this discussion on 01 Mar, 2017 12:06 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac