Coder Social home page Coder Social logo

ngrok's People

Contributors

atgardner avatar bubenshchykov avatar buckamayzing avatar dependabot[bot] avatar dnalborczyk avatar eagleeye avatar gaoqiankun avatar gearintellix avatar givehug avatar javagarcia avatar jessefulton avatar jkdowdle avatar keithws avatar lightsofapollo avatar marcbachmann avatar markherhold avatar marszall87 avatar mastilver avatar miguelduarte42 avatar minsiam avatar mrf345 avatar nikolaik avatar nkzawa avatar nsainaney avatar p-j avatar philnash avatar sryze avatar theaussiepom avatar toverux avatar zcmgyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ngrok's Issues

Randomly ngrok stops working for me.

I am noticing that sometimes ngrok stops working for me. Any help? Here are the logs I have obtained

{"error_code":103,"status_code":502,"msg":"failed to start tunnel","details":{"err":"session closed"}}
{"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":4040}

install fails with self-signed cert

I'm behind a corporate proxy that rewrites SSL certs, and the post install script that downloads the ngrok zip file fails with a self-signed cert error. Can we change this list of URLs to use http instead of https?

I don't use ngrok directly, but the latest RC of the browser-sync npm package has a dependency on it, and the browser-sync install fails because of of this self-signed cert error with ngrok.

The error I get:

node ./postinstall.js

ngrok - Downloading newest binary...

events.js:72
throw er; // Unhandled 'error' event
^
Error: SELF_SIGNED_CERT_IN_CHAIN
at SecurePair. (tls.js:1381:32)
at SecurePair.emit (events.js:92:17)
at SecurePair.maybeInitFinished (tls.js:980:10)
at CleartextStream.read as _read
at CleartextStream.Readable.read (_stream_readable.js:341:10)
at EncryptedStream.write as _write
at doWrite (_stream_writable.js:226:10)
at writeOrBuffer (_stream_writable.js:216:5)
at EncryptedStream.Writable.write (_stream_writable.js:183:11)
at write (_stream_readable.js:602:24)
npm ERR! [email protected] postinstall: node ./postinstall.js

Error 'failed to deserialize request parameter'

When running ngrok with

ngrok.connect({
    proto: 'http',
    addr: 3000,
    region: 'au'
}, function (err, url) {
    if (err) throw new Error(err);
});

The callback contains the error 'Error: failed to deserialise request parameter'. Debugging it seems to come from a 400 response when making a POST request to /api/tunnels.

The equivalent CLI command (ngrok http --region au 3000), it works as expected.

Ngrok always reconnecting

I have installed npm install ngrok with version 2.2.8. Then I ran ngrok http 8080, I am getting the following error.
screen shot 2017-10-18 at 6 32 20 pm

npm install -g fails on Windows

npm install ngrok -g
ngrok

/c/Users/syan.KYIV/AppData/Roaming/npm/ngrok: line 1: /node_modules/ngrok/bin/ngrok: No such file or directory

i thought it should be fixed by having ngrok.cmd what calls ngrok.exe in bin, but it doesn't work

an option is to have _ngrok.js in bin what just runs a unix-bin or win32-bin via child_process

ngrok issue on my mac

Hi,

I have tried many times to install ngrok but got this error.

[email protected] postinstall /Users/critical/Documents/Work/web/node_modules/ngrok
node ./postinstall.js

ngrok - downloading binary https://bin.equinox.io/a/bZszyrZZM3G/ngrok-2.1.1-darwin-amd64.zip ...
stream.js:74
throw er; // Unhandled stream error in pipe.
^

Error: getaddrinfo ENOTFOUND bin.equinox.io bin.equinox.io:443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
npm WARN [email protected] requires a peer of eslint@^3.3.1 but none was installed.
npm WARN [email protected] requires a peer of webpack@^1.9.11 but none was installed.
npm WARN [email protected] requires a peer of react@^15.4.1 but none was installed.
npm WARN [email protected] requires a peer of react-dom@^15.4.1 but none was installed.
npm WARN [email protected] requires a peer of history@^1.12.1 || ^2.0.0 but none was installed.
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: node ./postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node ./postinstall.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ngrok package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./postinstall.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ngrok
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ngrok
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

I'm using OSX 10.11.

Help with grunt

Hi! I want to integrate this on grunt but i don't know how. ¿Anyone can help me or give me some url with documentation? Thanks

Error while lunching

Just today I started getting this error, Is this an expected one?

"there was an error while lunching ngrok: Error: panic: runtime error: invalid memory address or nil pointer dereference

github.com/inconshreveable/olive/recover.go:40
runtime/asm_amd64.s:403
reflect/value.go:419
reflect/value.go:296
github.com/codegangsta/inject/inject.go:102
:30
:132
github.com/inconshreveable/olive/recover.go:29
runtime/asm_amd64.s:401
runtime/panic.go:387
github.com/inconshreveable/olive/error.go:37 .

...... "

thanks!

global postinstall script fail on Windows 10 Bash

I'm hitting this issue on Windows 10 Bash.

 projects npm i -g ngrok
/root/.nvm/versions/node/v4.4.7/bin/ngrok -> /root/.nvm/versions/node/v4.4.7/lib/node_modules/ngrok/bin/ngrok

> [email protected] postinstall /root/.nvm/versions/node/v4.4.7/lib/node_modules/ngrok
> node ./postinstall.js

module.js:442
    throw err;
    ^

Error: Cannot find module '/root/.nvm/versions/node/v4.4.7/lib/node_modules/ngrok/postinstall.js'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.runMain (module.js:575:10)
    at run (node.js:348:7)
    at startup (node.js:140:9)
    at node.js:463:3 projects npm i -g ngrok
/root/.nvm/versions/node/v4.4.7/bin/ngrok -> /root/.nvm/versions/node/v4.4.7/lib/node_modules/ngrok/bin/ngrok

> [email protected] postinstall /root/.nvm/versions/node/v4.4.7/lib/node_modules/ngrok
> node ./postinstall.js

module.js:442
    throw err;
    ^

Error: Cannot find module '/root/.nvm/versions/node/v4.4.7/lib/node_modules/ngrok/postinstall.js'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.runMain (module.js:575:10)
    at run (node.js:348:7)
    at startup (node.js:140:9)
    at node.js:463:3

npm-debug.log.txt

Install of 0.1.96 fails

$ npm install ngrok
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/ngrok
npm http 200 https://registry.npmjs.org/ngrok
npm http GET https://registry.npmjs.org/ngrok/-/ngrok-0.1.96.tgz
npm http 200 https://registry.npmjs.org/ngrok/-/ngrok-0.1.96.tgz
npm ERR! Error: shasum check failed for /var/folders/5_/3slvhlwj2fg934jwshmqmhrh0000gn/T/npm-92421-mQ1HtsXC/1403695917170-0.02629632130265236/tmp.tgz
npm ERR! Expected: a58c733341aaa1a830a06c57a687d890e2ae8671
npm ERR! Actual:   f6acb12c78778de31d42a16650f5edf262ac0951

But it works with npm install [email protected] which means it is something wrong with the 0.1.96er...

Can't get callback from connect

Hello there--- I'm new to ngrok and struggling to get the connection set up properly. Here's my connect call, the callback is never invoked and I get no error:

ngrok.connect(config.ngrok, function(err, url) {
    console.log(err);
});

Here's the config.ngrok object, note that even if I use a simpler connect call with no opts object, just a port, it still doesn't work:

ngrok: {
    proto: 'http', 
    port: 8096,
    auth: 'hidden:hidden', // http basic authentication for tunnel
    authtoken: 'hidden, // your authtoken from ngrok.com
    bind_tls: 'true',
    web_addr: 4041
}

Anyone know what might be going on? I can set up a tunnel from bash, just not from node.js.

ngrok fails to start in Windows 10 Bash

Hi,

I'm trying to use ngrok in Windows 10 Bash and I'm running into an issue. Nothing happens when I type in ngrok. Same thing occurs when I use the ngrok build from the official website.

Thanks for any information.

NPM global install fails on Mac

There is an error in the post installation.
BTW, yarn can install it.

sudo npm install -g ngrok/usr/local/bin/ngrok -> /usr/local/lib/node_modules/ngrok/bin/ngrok

[email protected] postinstall /usr/local/lib/node_modules/ngrok
node ./postinstall.js

ngrok - downloading binary https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-darwin-amd64.zip
events.js:160
throw er; // Unhandled 'error' event
^

Error: EACCES: permission denied, open '/usr/local/lib/node_modules/ngrok/ngrok.zip'
at Error (native)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node ./postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Missing ngrok binary doesn't clearly fail

Trying to set the authtoken without working ngrok binary results in a message of:

Error: cant set authtoken

Would be helpful to have a more clear message saying the binary doesnt exist. Not sure if this happens elsewhere, but if it does, the message would be helpful there too.

Oops.. I broke OSX

So the finish event seems to have some issues on OSX... looks like travis is fine (maybe there is a race?) but it seems like some of the bits are missing on OSX... taking a look now to see what is wrong

Issue with Global Install of Ngrok in Linux With NPM

Issue that arises.

Done with Arch Linux using npm version 5.3.0 with Linux Kernel 4.11.5-1-ARCH

sudo npm i -g ngrok
/usr/bin/ngrok -> /usr/lib/node_modules/ngrok/bin/ngrok

> [email protected] postinstall /usr/lib/node_modules/ngrok
> node ./postinstall.js

ngrok - downloading binary https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: EACCES: permission denied, open '/usr/lib/node_modules/ngrok/ngrok.zip'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-07-22T14_30_23_601Z-debug.log

Content from Log File about the error

2136 verbose lifecycle [email protected]~postinstall: CWD: /usr/lib/node_modules/ngrok
2137 silly lifecycle [email protected]~postinstall: Args: [ '-c', 'node ./postinstall.js' ]
2138 silly lifecycle [email protected]~postinstall: Returned: code: 1  signal: null
2139 info lifecycle [email protected]~postinstall: Failed to exec postinstall script
2140 verbose unlock done using /root/.npm/_locks/staging-a072192f34a17023.lock for /usr/lib/node_modules/.staging
2141 verbose stack Error: [email protected] postinstall: `node ./postinstall.js`
2141 verbose stack Exit status 1
2141 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:289:16)
2141 verbose stack     at emitTwo (events.js:125:13)
2141 verbose stack     at EventEmitter.emit (events.js:213:7)
2141 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
2141 verbose stack     at emitTwo (events.js:125:13)
2141 verbose stack     at ChildProcess.emit (events.js:213:7)
2141 verbose stack     at maybeClose (internal/child_process.js:897:16)
2141 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
2142 verbose pkgid [email protected]

Ngrok thinks I'm using custom sub domains?

[Error: {"error_code":103,"status_code":502,"msg":"failed to start tunnel","details":{"err":"Custom subdomains are only available for paid plans. Upgrade at https://dashboard.ngrok.com/billing/plan"}}]

When using ngrok.connect with the correct token, I recieve this error. I'm not setting subdomain in the options either.

ngrok 2.1.1 and sierra

I get some go-martini errors with ngrok 2.1.1 and OS X Sierra. Version 2.1.14 seems to do better. Please update to new ngrok version in postinstall hook.

Hangs when trying to use config "web_addr: false"

I put the config file in the default location (~/.ngrok2/ngrok.yml) and verified that I can change the network address (ex. "web_addr: localhost:5050" works as expected). However when I try to disable the web UI ("web_addr: false"), ngrok just hangs until it eventually closes probably due to some timeout somewhere.

Newest ngrok client does not properly close tunnels

Still trying to track this down, but it appears that the actual ngrok binary in this project is not versioned along with the node module itself and newer versions of the ngrok binary do not properly close when a node process is shut down.

We noticed this because a teammate of mine was running our application and creating a custom subdomain using the ngrok npm module. However, when trying to restart the server, the original tunnel would never close, so ngrok would return an error saying that subdomain was already in use. We swapped out his binary (installed in the last two weeks) with my binary (created March 27) and all is well.

So maybe instead of downloading the binary as part of the post-install, it should be included as part of a vendor folder or something along those lines?

ngrok -g not installing correctly in Win < 10

The global install creates an ngrok file that looks like this:

"$basedir/node_modules/ngrok/bin/ngrok" "$@"
exit $?

That doesn't work. I manually edited the file to look like this:

#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
"$basedir/node_modules/ngrok/bin/ngrok.exe" "$@"
exit $?

Then it works.

Exit ngrok when there's nothing to sync

Hello,
ngrok is used in https://github.com/xybu/onedrived-dev. What would be nice is if ngrok would exit if there's nothing to sync / if everything is synched. My Microsoft accounts get suspended and I think that's because too many requests are done to the Microsoft account. I'm not sure if ngrok can see when everything is synched completely or if it just provides a tunnel.

Stop using ~/.ngrok as a reliable location

The postinstall script tries to download the relevant binary to the ~/.ngrok location. Instead, I feel this should use the local ./node_modules directory in which the npm module gets installed to.

That way, the module does not need to access the users home directory and make any modifications. There's less of an impact for damage to be done, and means that the installation process is less reliant on external directories to exist.

At the moment, I already use the ~/.ngrok location to store credentials, and this means the postinstall step fails, as a file already exists rather than some kind of directory. This kind of problem can be avoided entirely.

ngrok 2.0 token

I played with the 2.0 branch and it works great, only thing is you need a token.

Can you add to the readme that people can install the token using

./ngrok authtoken THE_TOKEN

or

./node_modules/ngrok/bin/ngrok authtoken THE_TOKEN

it will save the token in a yml file, that gets included automatically, so you no longer need to specify the token inside the nodejs file, avoiding it might get committed.

Post install script is failing (sometimes) for v0.1.x

$ npm i
-
> [email protected] postinstall /Users/some/test/node_modules/zuul-ngrok/node_modules/ngrok
> node ./postinstall.js

ngrok - Downloading newest binary...
ngrok - Zipfile received (https://api.equinox.io/1/Applications/ap_pJSFC5wQYkAyI0FIVwKYs9h1hW/Updates/Asset/ngrok.zip?os=darwin&arch=amd64&channel=stable) ...
[Error: Could not find the End of Central Directory Record]
npm ERR! Darwin 14.5.0
npm ERR! argv "/Users/some/.nvm/v0.12.7/bin/node" "/Users/some/.nvm/v0.12.7/bin/npm" "i"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'node ./postinstall.js'.
npm ERR! This is most likely a problem with the ngrok package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./postinstall.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls ngrok
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/some/test/npm-debug.log

Notice the: [Error: Could not find the End of Central Directory Record]

Post install script is failing (sometimes) for v0.1.x

Error when I run npm install grunt-psi --save-dev on windows 8.

> [email protected] postinstall c:\java-projects\track-ui\node_modules\grunt-psi\node_modules\ngrok
> node ./postinstall.js

ngrok - downloading newest binary...
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: connect ETIMEDOUT
    at exports._errnoException (util.js:746:11)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1010:19)
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "grunt-psi" "--save-dev"
npm ERR! node v0.12.5
npm ERR! npm  v2.11.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node ./postinstall.js'.

Is this a proxy issue or an issue with the module?

Regards,
Shane.

Error unpacking binary Error: Could not find the End of Central Directory Record

When I try to install ngrok (npm i -g ngrok), the following error is thrown:

ngrok - downloading binary https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-darwin-amd64.zip ...
ngrok - binary downloaded...
ngrok - error unpacking binary Error: Could not find the End of Central Directory Record
    at DecompressZip.findEndOfDirectory (/Users/jcarpe/.nvm/versions/node/v6.9.4/lib/node_modules/ngrok/node_modules/decompress-zip/lib/decompress-zip.js:165:15)
    at _fulfilled (/Users/jcarpe/.nvm/versions/node/v6.9.4/lib/node_modules/ngrok/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/Users/jcarpe/.nvm/versions/node/v6.9.4/lib/node_modules/ngrok/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/Users/jcarpe/.nvm/versions/node/v6.9.4/lib/node_modules/ngrok/node_modules/q/q.js:796:13)
    at /Users/jcarpe/.nvm/versions/node/v6.9.4/lib/node_modules/ngrok/node_modules/q/q.js:604:44
    at runSingle (/Users/jcarpe/.nvm/versions/node/v6.9.4/lib/node_modules/ngrok/node_modules/q/q.js:137:13)
    at flush (/Users/jcarpe/.nvm/versions/node/v6.9.4/lib/node_modules/ngrok/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

This leads me to believe the the file that is downloaded to be unpacked is corrupt or it had not actually completed download prior to unpacking?

Node: v6.9.4
Npm: v4.0.5

Create "points of release" for the module

Right now each time we install the module - it downloads the latest ngrok bin according to the platform. We do it because storying all the bins (9 bins for different platforms and archs) is too much, 150 mb.

It would be still nice to create "points of release", meaning each time we install the ngrok modules it gets a well-tested and locked ngrok binary, example:

https://api.equinox.io/1/Applications/ap_pJSFC5wQYkAyI0FIVwKYs9h1hW/Updates/Asset/ngrok.zip?os=darwin&arch=386&build=1.5.2

The discussion started in #16

Global install of ngrok?

Would it be possible for this package to install ngrok for me too? It looks like there's no bin. Would love to be able to npm install -g ngrok

[email protected] postinstall failing in windows

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: node ./postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node ./postinstall.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ngrok package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./postinstall.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ngrok
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ngrok
npm ERR! There is likely additional logging output above.

ngrok.disconnect not closing http tunnel (only https)

When two tunnels are opened simultaneously (bind_tls: both (this is default)), ngrok fails to close both tunnels when using the disconnect command.

Steps to Reproduce:

ngrok.connect(bind_tls: 'both', port: currentPort), function((err, url) {
     console.log("Error Message: " + err);
     console.log('Ngrok URL: ' + url);
     console.log('Port: ' + currentPort);
}

Results in:
Error Message: null
Ngrok URL: https://030927d2.ngrok.io
Port: 3599

This opens TWO tunnels: one at http and one at https

//Kills the ngrok tunnel
ngrok.disconnect(killUrl, function () {
    console.log('URL: ' + killUrl + ' has been killed.');
});

Results:
URL: https://030927d2.ngrok.io has been killed.
{ [Error: socket hang up] code: 'ECONNRESET' }
screen shot 2016-05-18 at 5 46 10 pm

Note that the http tunnel remains open.

Error when "sniffing" an iphone or ipad.

I have a problem that I'm trying to resolve (but I still don't know how you compile your code) in order to understand why my program is failing. When ngrok try to show me the error it fails, because MessageParts length is 0 and there is not a verificatin of this:

TypeError: undefined is not an object (evaluating 'messageParts[0].toString')

Line:

Console.prototype._generic = function(level, messageParts) {
var message, messagePart, parameters, payload, _i, _len;
message = messageParts[0].toString(); <-- length 0 I don't know why but in my case is 0.
parameters = [];

To help you, I think the problem of the iphone, ipad with my code is in the css as I'm using css3 and maybe I'm forgetting something for apple. Or maybe is the ngmodel of angular2 that it's not well interpreted by iOS.

download is failing

Receiving ETIMEDOUT while trying to use node-ngrok, seems like we cannot download it anymore.

failed to start tunnel error

While working with this wrapper, I routinely get this vague error (from line 148 in index.js) instead of the actual error from Ngrok. Can this be improved?

Unable to install in ubuntu 14.04

I tried installing it in Ubuntu 14.04 but it does not work, please help.

$ sudo npm install ngrok -g
npm http GET https://registry.npmjs.org/ngrok
npm http 304 https://registry.npmjs.org/ngrok
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/decompress-zip
npm http GET https://registry.npmjs.org/lock
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/uuid
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/decompress-zip
npm http 304 https://registry.npmjs.org/lock
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/uuid
npm http GET https://registry.npmjs.org/types/node
npm http 404 https://registry.npmjs.org/types/node
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR!     at next (/usr/share/npm/lib/cache.js:687:35)
npm ERR!     at /usr/share/npm/lib/cache.js:675:5
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR!     at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 4.4.0-87-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "ngrok" "-g"
npm ERR! cwd /home/akshay
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type non_object_property_load
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/akshay/npm-debug.log
npm ERR! not ok code 0

complains about set subdomain

> ngrok.connect({addr: 3000, authtoken: process.env.TOKEN}, function(err){console.log(err)})
undefined
> [Error: {"error_code":103,"status_code":502,"msg":"failed to start tunnel","details":{"err":"Custom subdomains are only available for paid plans. Upgrade at https://dashboard.ngrok.com/billing/plan"}}]

even though I did not set any subdomain.

ngrok web UI url

I know the web UI for ngrok is usually http://127.0.0.1:4040, but that can be changed with the web_addr configuration option. Is there a way to get that value via this node wrapper?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.