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

Not responding #26

Closed
Hongdeshuai opened this issue Jan 28, 2019 · 5 comments
Closed

Not responding #26

Hongdeshuai opened this issue Jan 28, 2019 · 5 comments

Comments

@Hongdeshuai
Copy link

Hongdeshuai commented Jan 28, 2019

Not responding at all on windows

@Hongdeshuai
Copy link
Author

return getPort().then(port => {
console.log("got the port");
fs.writeFileSync(path.join(util.supportDir(), 'openvpn.port'), port);
return port;
}).catch(e => {
console.log("got the port error here catched",e);
fs.writeFileSync(path.join(util.supportDir(), 'openvpn.port'), 1194);
return 1194;
});

This is my code but I can't see and logs printed.
That means it is not responding at all ?

@sindresorhus
Copy link
Owner

Submit a pull request with a failing test and I'll take a closer look. I'm requesting this as most issues like these are just users using the module incorrectly or an unrelated problem.

@Hongdeshuai
Copy link
Author

Thank you sindresorhus
managementPort: async function() { console.log("getting port"); try{ let port = await getPort({port: 3000}); console.log("got the port finally", port) fs.writeFileSync(path.join(util.supportDir(), 'openvpn.port'), port); return port }catch(e){ console.log(e) }
This is the code I am using.
But the problem is that in the console, I can't see any response from it.
Just showing "getting port"
Not running any console prints in try or catch statement.

@sindresorhus
Copy link
Owner

Closing as I don't think this is a problem with get-port. Happy to reopen if you submit a failing test.

@Drulac
Copy link

Drulac commented Jan 1, 2020

Same issue, strange because it's was working an hour ago, with the same code 🤔

The only change is my file is required inside an another

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

No branches or pull requests

3 participants