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

Getting ECONNREFUSED at first try of running snap-tweet #20

Closed
Zcehtro opened this issue Feb 15, 2022 · 5 comments
Closed

Getting ECONNREFUSED at first try of running snap-tweet #20

Zcehtro opened this issue Feb 15, 2022 · 5 comments

Comments

@Zcehtro
Copy link

Zcehtro commented Feb 15, 2022

Bug description

What did you do? (Provide code in next section)
I tried to take a screensnap of a tweet.

What did you expect to happen?
For snap-tweet to take a snap of a tweet.

What happened instead?
Got a ECONNREFUSED error message.

Do you have an error stack-trace?
Don't know what this is, but I can get it if it can be explained to me ;)

Reproduction

  1. snap-tweet https://twitter.com/elonmusk/status/1492227328386154509
  2. How do I do this?
  3. :
C:\>snap-tweet https://twitter.com/elonmusk/status/1492227328386154509
[snap-tweet] Error: connect ECONNREFUSED ::1:53221
× connect ECONNREFUSED ::1:53221: https://twitter.com/elonmusk/status/1492227328386154509

Environment

  • snap-tweet version: snap-tweet/1.2.1 win32-x64 node-v17.5.0
  • Operating System: Windows 10
  • Node version: node-v17.5.0
  • Package manager (npm/yarn/pnpm) and version: npm 8.5.0
@privatenumber
Copy link
Owner

I'm not too familiar with Windows environments but I'll try to help debug.

  1. Do you have Chrome installed? If so, what version?
  2. Based on searching the chrome-launcher and chrome-remote-interface repos, the immediate issues are related to Node v17. Can you see if using a different version helps?

@Zcehtro
Copy link
Author

Zcehtro commented Feb 15, 2022

Awesome! Any help is always welcome!

  1. Yes. Version 98.0.4758.102 (Official Build) (64-bit)
  2. You hit it on the nail! The problem was with Node v17.5.0. I uninstalled it and installed Node v16.14.0 LTS and set up everything again.

Now it's working! Tyvm!

Now there's a minor thing I noticed that's working differently but I'll open another ticket for that and keep everything tidy.

Thx again!

@jvlianodorneles
Copy link

jvlianodorneles commented Jun 6, 2022

And how about to run snap-tweet in a headless environment (like a virtual machine)? Is there some way to do this?

My environment:

  • Debian Linux 5.2.9-2 VM
  • Node version 16.15.0
  • Google Chrome version 102.0.5005.61

I'm getting:

[snap-tweet] Error: connect ECONNREFUSED 127.0.0.1:40353
✖ connect ECONNREFUSED 127.0.0.1:40353:
  https://twitter.com/telegram/status/1507356.......

I know that google-chrome have some flags to run headless:
--headless --disable-gpu

@yusufozcan
Copy link

And how about to run snap-tweet in a headless environment (like a virtual machine)? Is there some way to do this?

My environment:

  • Debian Linux 5.2.9-2 VM
  • Node version 16.15.0
  • Google Chrome version 102.0.5005.61

I'm getting:

[snap-tweet] Error: connect ECONNREFUSED 127.0.0.1:40353
✖ connect ECONNREFUSED 127.0.0.1:40353:
  https://twitter.com/telegram/status/1507356.......

I know that google-chrome have some flags to run headless: --headless --disable-gpu

I have same problem. Did you find a solution for this?

@hissatupassenger
Copy link

I have same problem......

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

5 participants