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.

Failed to construct 'WebSocket': The URL 'ws://:61948/' is invalid

See original GitHub issue

For whatever reason the hot-loader is not recognizing my hostname. I’m also not able to populate HMR_HOSTNAME, although I have no problem populating other environmental variables using cross-env

🌍 Your Environment

Software Version(s)
Parcel 1.6.1
Node 8.9.1
npm/Yarn 1.3.2 (yarn)
Operating System Windows 7 x64

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
ZachSauciercommented, Jun 20, 2018

I’m still getting this error on version 1.9.2, having to use the --no-hmr flag to avoid it.

3reactions
dz-scommented, Jul 7, 2018

@devongovett also getting this error on version 1.9.4. @ZachSaucier the same resolution works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to construct 'WebSocket': The URL '[object Object]' is ...
The connection is not happening and getting error Uncaught SyntaxError: Failed to construct 'WebSocket': The URL '[object Object]' is invalid. in the browser ......
Read more >
Failed to construct 'WebSocket' - Glitch Support
Hi! I got the following error when trying to deploy my React project: SecurityError: “Failed to construct 'WebSocket': An insecure WebSocket connection may ......
Read more >
parcelでelectron向けビルド - os_jupiterの日記 - はてなブログ
Failed to construct 'WebSocket': The URL 'ws://:61948/' is invalid · Issue #856 · parcel-bundler/parcel · GitHub. したがって parcel watch の ...
Read more >
Problems with the root websocket support - Newbie
C and ws.htm files give me the error: Uncaught DOMException: Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'....
Read more >
Failed to construct WebSocket: URL is invalid - Shuffle iT Forum
dominion-webclient-head-1.2.5.min.js:18 Error: Failed to construct 'WebSocket': The URL 'wss://35.157.6.78:-1536' is invalid.
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