question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[HPM] Error occurred while trying to proxy request using vpn on windows

See original GitHub issue

Hello, I’m using react app on localhost:3000 which is proxying to our backend server via OpenConnect vpn. My setup is on windows machine and everything worked fine until some moment when I was doing npm start I’ve started getting
“[HPM] Error occurred while trying to proxy request … (ENOTFOUND)” errors. The strange things started here - the backend is reachable and opens without any problem in browser, and restarting my PC is actually helping me to solve this problem, however, reloading PC on every occurrence of this error seems snot very good 😃

My guess it’s something with windows settings, or maybe with VPN connections in the system, I thought maybe someone encountered with the same thing and can give me a hint

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:9
  • Comments:7

github_iconTop GitHub Comments

4reactions
eugeneherecommented, Dec 14, 2020

I get similar error when requesting my proxy server (node.js v14.15.1 + express): Error occured while trying to proxy to: <hostname> Response code: 500. Here is my code:

app.use('/api', createProxyMiddleware({
    target: API_SERVICE_URL,
    pathRewrite: {
        [`^/api`]: '',
    },
}));
0reactions
taoliujuncommented, Jun 20, 2022

me too. It worked fine even log error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[HPM] Error occurred while trying to proxy request #171 - GitHub
VPN connection to environment and proxy server to some API. Can you provide an isolated example in which this issue is reproducible? Do...
Read more >
Error [HPM] Error occurred while trying to proxy request / from ...
That error means there's nothing running at http://localhost:4000 . There seems to be a few problem with your setup:.
Read more >
How to fix error occurred while trying to proxy request
1. Check which IP version is the server using · 2. Modify your code · 3. Change webpack proxy configuration · 4. Modify...
Read more >
Fix Error Occurred While Trying to Proxy Request - TechCult
An error occurred while typing to proxy request is a common error that developers come across while writing and publishing codes.
Read more >
ConnectionRefused on localhost! Frontend unable to connect ...
[HPM] Error occurred while trying to proxy request /api/v2/status from localhost:8080 to http://localhost:8000 (ECONNREFUSED) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found