EHOSTUNREACH error though pm2

Open
#6,043 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
javascript, nodejs
Domain
devops

Research direction

Start by reproducing the local HTTP request repeatedly with direct Node and with PM2, capturing the full EHOSTUNREACH context and comparing how each process is launched. Done means identifying a reproducible PM2-specific cause and confirming that subsequent requests work, or documenting the precise limitation and required configuration.

Written by the indexing model from the issue text.

Description

Hi, I face an issue with a httpRequest on a local device only when using pm2. It's working when launched directly with node but not with pm2, except the first call, but the following fail with this EHOSTUNREACH error.

Thanks

Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Unitech/pm2

All issues in Unitech/pm2

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.