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.

unavailable-id after internet connection lost

See original GitHub issue

Hey, this is how i reproduce this error:

if i close and re-open internet connection, it throws this error.

PeerJS:  WARNING You received a malformed message from undefined of type HTTP-ERROR peer.js:1117
PeerJS:  Socket open peer.js:1117
PeerJS:  ERROR Aborting. Error: ID `1` is taken peer.js:1117

and i dont use random ids generated from peerserver. a client’s peer id is always same and unique (i am getting it from user’s primary key value from database)

It is ok while i am switchinh between my web sites pages. (i put peer initialization code in my base.js which loads in every page) ,

swtiching between pages is a kind of disconnection from server right? but why does this happen only when internet connection lost?

i handle this error under peer.on('error'), although i write peer.destroy() here, i doesn’t work.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:33 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
domschienercommented, May 1, 2016

Anyone found a good solution yet? I’m using hardcoded ID’s to make it easy for people to connect to each other and store local data (about the other peer), so changing ID’s is not the nicest solution for me.

0reactions
naveedazizcommented, May 9, 2020

Does PeerJS is recommended for some major projects. As these kind of errors killing the project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No Internet Connection? How to Troubleshoot Internet Issues
For Windows 10, click to Start > Settings > Update & Security > Troubleshoot, and then select the troubleshooter for Internet Connections.
Read more >
Fix internet connection problems on Android devices
If you can't access the Internet on your Android device, either through an app or a website, try these troubleshooting steps. Signs of...
Read more >
How to Fix It When There's No Internet Connection - Lifewire
Reboot your router and modem. The first step in troubleshooting most tech problems, and especially networking hardware issues, is to restart.
Read more >
13 Tips to Troubleshoot Your Internet Connection | PCMag
Check the Wi-Fi signal icon in the bottom-right corner of Windows and top-right corner in macOS. Click the icon and make sure you...
Read more >
Can't Connect to Internet? How to Troubleshoot - Electric AI
1. Check for Physical Connectivity Issues ... Sometimes internet connection may fail due to simple things like a loose or unplugged network cable,...
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