Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

Ngrok Replay doesn't seem to work  #67

@krashidov

Description

@krashidov

Description

Describe your issue here.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

steno version: 1.2.0

OS version(s): Mac OS X 10.14.2

Steps to reproduce:

  1. Start app on port 3001
  2. Start Steno in record mode: steno --record --scenario-name createTicket --app localhost:3001 --out-port 3030
  3. Start Ngrok, forwarding to 3010
  4. CTRL-C on steno
  5. Start steno in replay mode: steno --replay --scenario-name createTicket --app localhost:3001 --out-port 3030 --in-port 3010
  6. Hit 3010 with the first expected incoming api call. (I made sure all headers matched)

Expected result:

The recorded api call result

Actual result:

  1. Ngrok complains that nothing is connected to ngrok
<!doctype html5>
 <html>
    <head>
        <style type="text/css">
         
        strong { font-weight: bold; }
        hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; }
        html { font-family: sans-serif;   -ms-text-size-adjust: 100%;   -webkit-text-size-adjust: 100%;   } body { margin: 0; }
        a { background-color: transparent; }
        a:active, a:hover { outline: 0; }
        </style>

        <style type="text/css">
            body { background-color: #f5f5f5; }
            .container { width: 500px; margin: auto; color: #444; padding: 5px; }
            a, strong { color: purple; text-decoration: none; }
            a:hover { text-decoration: underline; }
            h2 { text-align: center; color: #000; }
            p { line-height: 20px; }
        </style>
    </head>
    <body>
        <div class="container">
            
            
<h2>Failed to complete tunnel connection</h2>
<hr />
<p>
    The connection to <strong><a href="https://bubbleiq3.ngrok.io">https://bubbleiq3.ngrok.io</a></strong>
    was successfully tunneled to your ngrok client,
    but the client failed to establish a connection to
    the local address <strong><a href="http://localhost:3010">localhost:3010</a></strong>.
</p>
<p>
    Make sure that a web service is running on
    <strong><a href="http://localhost:3010">localhost:3010</a></strong> and that it is a valid address.
</p>
<p>
    The error encountered was: <strong style="color: #9E2929">dial tcp [::1]:3010: getsockopt: connection refused</strong>
</p>

            
        </div>
    </body>
</html>

If I stop steno, it says none of the requests matched.

Attachments:

Logs, screenshots, screencast, sample project, funny gif, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions