-
Notifications
You must be signed in to change notification settings - Fork 60
It's not loading in orbit.chat #9
Comments
Hi @diasdavid and good to hear from you! :) Can you elaborate what's happening and what the error is? I'm able to go to orbit.chat, load the app and get chatting between two browsers locally and had a chat with someone random on using orbit on mobile. Would be happy to work you through an update PR if you want but beware that the code hasn't been touched in a while so there might be more to update than it may seem. That said, I've noticed Orbit has started randomly crashing (both Chrome and FF) and on Firefox it just kills the browser completely (hangs). This is seemingly random and I haven't been able to debug it yet. Orbit hasn't been updated since Apr, so only the browsers have had updates in the meanwhile. |
It is good to see you back on Github, @haadcode :):) Expanding in the description of my bug report, essentially, I never get it to pass this screen: And today, I did get errors in the console: Which browser version are you running? |
I've seen many, many different error messages along the way but never that one :) I have no idea what that is. I'm quite sure orbit doesn't have I'm on Chrome 60 and Firefox 55. |
Thank you @diasdavid for the PR! Indeed, we're still using As to why that is still the case is: If we were to switch from Also, note that orbit-db currently uses a custom version of floodsub that has the "send-previous-message-on-peering" feature that @dignifiedquire did long ago, and that PR is quite behind from master I believe. So we'd need to sort that out, too, as Orbit really needs the functionality that dignifiedquire's floodsub PR provides. What do you think? |
The issue with .generateKey is due to this -> libp2p/js-libp2p-crypto#105. The best is for Orbit to notice when it is being loaded from non https resource and recommend or redirect the user to https
Not necessarily. That feature is "on peer connect, send last message again" which is pretty much a This not to say that PubSub in the feature won't have more primitives that enable users to do more elaborate things (reliability, the auth log itself, etc), but it might still take some time so I don't want to get you blocked there or constantly using a branch when you can indeed do it on the app level. |
Hi @daviddias and @haadcode I really appreciate all the work you do. I found this issue as I was researching another one that I encountered using Firefox: where the ipfs.on 'ready' event is not called. Regarding the generateKey exception reported here, I encountered it in Chrome when accessing my Orbitdb based app via http This is because, in Chrome, as stated int the thread linked here, WebCrypto is not allowed on HTTP https://groups.google.com/a/chromium.org/forum/#!topic/security-dev/DtOFo51WFMo " the W3C Web Crypto working group extensively debated this for a number of years, with the resolution in w3c/webcrypto#28 of requiring [SecureContext] in the spec, which is what the W3C advanced to CR and (modulo a special corner case) what "Chrome implemented." In the same thread you can read Andrew Sampson's comment: As my colleague put it, you're not preventing people from using crypto in the web, you're just preventing them from using the fastest method for it. It seems a bit silly to take an "all or nothing" stance." The following warning I see in Chrome in secure context may well be related to this issue too. Thankfully, Firefox is more permissive, and allows non secure contexts that can work with non secure signalling servers, like the one I set up over the holidays. |
Closing this as orbit.chat has been updated! |
YEAAAAAAH!!! :D |
Hi @haadcode!
I noticed that
orbit.chat
is currently unusable. Mind updating it? Also happy to push a PR if you would take it in.Thanks!
The text was updated successfully, but these errors were encountered: