Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

starting the browser without a network connection creates an Uncaught Exception #323

Closed
pmario opened this issue Mar 3, 2017 · 7 comments
Labels

Comments

@pmario
Copy link
Contributor

pmario commented Mar 3, 2017

Operation System: ubuntu 16.10
Beaker Version: latest master 0.6.1

To reproduce:

  • Disable all network connections
  • Start the browser

throws:

Uncaught Exception:
Error: addMembership ENODEV
    at exports._errnoException (util.js:1022:11)
    at Socket.addMembership (dgram.js:505:11)
    at Socket.<anonymous> (/home/mario/git/beaker/app/node_modules/multicast-dns/index.js:52:14)
    at emitNone (events.js:91:20)
    at Socket.emit (events.js:185:7)
    at startListening (dgram.js:118:10)
    at dgram.js:225:7
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
@pfrazee
Copy link
Member

pfrazee commented Mar 7, 2017

Solved with mafintosh/multicast-dns#34. Pull latest deps so you have [email protected] and you should be good to go

@pfrazee pfrazee closed this as completed Mar 7, 2017
@pmario
Copy link
Contributor Author

pmario commented Mar 7, 2017

Hi, that still throws a low level OS error message. ... What I'd like to see in the browser starts in "offline" mode and lets the user know.

  • It is possible to open file:// URIs eg: index.html

    • But the message makes a user think the browser is broken. But there is just no internet connection.
  • Shouldn't it be possible to access locally saved dat repos?

@pfrazee
Copy link
Member

pfrazee commented Mar 7, 2017

What error is thrown?

@pmario
Copy link
Contributor Author

pmario commented Mar 7, 2017

The exact same info as above.

app npm list shows this:

mario@mario-XPS-13-9350:~/git/beaker/app$ npm list | grep -i multi
│ ├── [email protected]
│ ├─┬ [email protected]
│ └── [email protected]
│ │   ├── [email protected]
│ │ └─┬ [email protected]
│ │   ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ ├─┬ [email protected]
│ ├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
´´´
So I'm using multicast dns latest version

@pmario
Copy link
Contributor Author

pmario commented Mar 7, 2017

I can make a video if needed.

@pfrazee
Copy link
Member

pfrazee commented Mar 7, 2017

Ah ok, it's possible that the consumer of multicast-dns isn't consuming the error event, which would still cause a throw. I'll dig deeper.

@pfrazee
Copy link
Member

pfrazee commented Mar 7, 2017

Continuing the discussion in dat-ecosystem-archive/discovery-channel#14

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants