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

Error when trying to use --localhost without --profile #27

Open
jonnysamps opened this issue May 23, 2019 · 2 comments
Open

Error when trying to use --localhost without --profile #27

jonnysamps opened this issue May 23, 2019 · 2 comments

Comments

@jonnysamps
Copy link

Hi there, thank you so much for this utility, has been very helpful.

I noticed that when running commands like

throttle --profile 2g --localhost

It works just fine but when I try to specify my own parameters:

throttle --rtt 200 --localhost

I get

(node:32395) UnhandledPromiseRejectionWarning: Error: Localhost on darwin not supported at the moment
    at Object.start (/Users/jsamples/.nvm/versions/node/v8.11.3/lib/node_modules/@sitespeed.io/throttle/lib/index.js:29:17)
    at Object.<anonymous> (/Users/jsamples/.nvm/versions/node/v8.11.3/lib/node_modules/@sitespeed.io/throttle/bin/index.js:99:15)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:191:16)
    at bootstrap_node.js:612:3

Running on:
MacOS: 10.14.5
Node: 8.11.3
throttle: 0.5.1

Thanks!

@soulgalore
Copy link
Member

Hi @jonnysamps sorry for the late feedback, the current version only supports adding delay on localhost but lets see if I can fix that.

@jonnysamps
Copy link
Author

@soulgalore Great!

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

No branches or pull requests

2 participants