Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ngrok to latest in package.json #12

Closed
wants to merge 1 commit into from

Conversation

nolanlawson
Copy link

It's up to 2.2.3 now. I found that the current (2.1.8) was throwing errors for me when I tried to use zuul-ngrok (in particular "the tunnel http://mydomain.ngrok.io is already bound to another tunnel session")

It's up to 2.2.3 now. I found that the current (2.1.8) was throwing errors for me when I tried to use zuul-ngrok (in particular "the tunnel http://mydomain.ngrok.io is already bound to another tunnel session")
@phillipj
Copy link

phillipj commented Aug 3, 2018

Thanks! A newer version of ngrok also fixed an explosion I just experienced:

- testing: internet explorer @ Windows 2012 R2: 11
/mustache.js/node_modules/lock/index.js:18
    var i = locked[key].indexOf(exec) //should usually be 0
                        ^

TypeError: Cannot read property 'indexOf' of undefined
    at _release (/mustache.js/node_modules/lock/index.js:18:25)
    at /mustache.js/node_modules/lock/index.js:11:7
    at Socket.<anonymous> (/mustache.js/node_modules/ngrok/index.js:100:10)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:597:20)

With ngrok v2.3.0 in place instead of v2.1.8, it worked like a charm.

phillipj referenced this pull request in janl/mustache.js Aug 7, 2018
These changes makes zuul use ngrok for exposing itself to the outside world, rather than the default localtunnel implementation. That's because we've had quite a lot of issues with flakyness which seems to be related to localtunnel, e.g.:

```
- starting: <internet explorer 9 on Windows 2008>
events.js:160
      throw er; // Unhandled 'error' event
      ^
Error: connection refused: localtunnel.me:44896 (check your firewall settings)
    at Socket.<anonymous> (/home/travis/build/janl/mustache.js/node_modules/localtunnel/client.js:84:32)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at emitErrorNT (net.js:1290:8)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
```

I thought this was fixed by [using Node.js 6 instead of Node.js 4](#667), but sadly that was not the case as it re-appeared with Node.js 6 as well.

Had to use a [custom version of zuul-ngrok](https://github.com/rase-/zuul-ngrok/pull/12) which contains a newer version of ngrok. The dependency used by the upstream module threw an error when running on my computer, the updated version worked as a charm though. We should change to using the upstream module as soon as the PR with that ngrok version bump lands.

Set `concurrency: 1` otherwise ngrok would fail and make IE11 tests stall forever because of too many connections being made within a short time period. I've notice it can take quite some time (20+ minutes) to get all the tests through as it seems ngrok still seems to throttle the connections somehow, but the important thing is getting these tests to work.
@rase-
Copy link
Owner

rase- commented Oct 22, 2018

Sorry for the inactivity here. I just merged another version bumped, should take care of this too!

@rase- rase- closed this Oct 22, 2018
@phillipj
Copy link

Cool, thanks a lot 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants