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

bin/phantomas.js should output Browser.visit() promise rejections to stderr #802

Closed
macbre opened this issue Oct 24, 2020 · 0 comments · Fixed by #807
Closed

bin/phantomas.js should output Browser.visit() promise rejections to stderr #802

macbre opened this issue Oct 24, 2020 · 0 comments · Fixed by #807

Comments

@macbre
Copy link
Owner

macbre commented Oct 24, 2020

Currently one needs to add DEBUG=* to see the details.

$ DEBUG=phantomas:* ./bin/phantomas.js https://127.0.0.1:1234
  phantomas:cli argv: ["/usr/bin/node","/home/macbre/github/phantomas/bin/phantomas.js","https://127.0.0.1:1234"] +0ms
  phantomas:cli opts: {"version":"2.0.0-rc1","viewport":"800x600","externals":true,"timeout":15,"reporter":"plain"} +9ms
  phantomas:cli url: https://127.0.0.1:1234 +0ms
  phantomas:browser Opening URL failed: Error: net::ERR_CONNECTION_REFUSED at https://127.0.0.1:1234 +60ms
  phantomas:cli Error: Error: net::ERR_CONNECTION_REFUSED at https://127.0.0.1:1234
@macbre macbre added this to the v2.0 - headless Chromium milestone Oct 24, 2020
@macbre macbre changed the title bin/phantomas.js should output errors to stderr bin/phantomas.js should output Browser.visit() promise rejections to stderr Oct 24, 2020
@macbre macbre added the cli label Oct 24, 2020
macbre added a commit that referenced this issue Oct 26, 2020
…stderr

Resolves #802

$ ./bin/phantomas.js https://127.0.0.1:1234
Error: net::ERR_CONNECTION_REFUSED at https://127.0.0.1:1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant