Closed serapath closed 5 years ago
What sort of build tools are you using? Browserify?
yes, browserify. see https://github.com/ethereum-play/smartcontract.codes
we refactored the code inside out and currently it looks like it all breaks when execution reaches:
const url = 'dat://c610858d82e4c9bc9585bb26fedb260c080ed24c6a05bcf3da9ad73a6917ac82/'
const archive = Hyperdrive(url)
some of our test users also got:
Could not connect to local gateway at ws://localhost:3472,
trying remote gateway at wss://discoveryswarm.mauve.moe.
This isn't an error unless you're trying to use a local gateway. 😁
DOMException: "The operation is insecure."
... i think we have quite a lot of users who try to open the page in incognito. Maybe there is way to store stuff in the browser, so maybe in that case - is it possible to throw an error that i can catch so then we can
I'm not sure how to get that join
error. I tried loading it in Chrome and Firefox and it seemed to be working. I tried in incognito mode as well. 🤔 Is the error causing code deployed to the website?
I think you'll need to add some code to detect when people are in incognito mode and add persist: false
to the archive.
By the way this looks really cool! I love the color scheme and layout. 🤩
I don't think this is an error with the gateway though. 🤔
So, as we discussed on IRC, it seems to be an issue introduced in a fix I submitted to hyperdrive a week or so ago.
It fixed an issue on Windows, but introduce an issue on web since browserify's path
implementation doesn't supply the path.posix
property.
This should be fixed in version 0.2.0 😁
Is 0.2.0 out? We for now installed the verison of Hyperdrive you recommended and it works fine!
On Thu, Aug 8, 2019 at 8:55 PM RangerMauve notifications@github.com wrote:
This should be fixed in version 0.2.0 😁
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/datproject/sdk/issues/10?email_source=notifications&email_token=AAIGZS7XN3KUSTYAK4BPW73QDR22XA5CNFSM4IJRAD6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD34XGXQ#issuecomment-519664478, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIGZSYDMVKNNXWSPZEU4GDQDR22XANCNFSM4IJRAD6A .
--
Nina Breznik, Vision Baker play.ethereum.org wizardamigos.com
Twitter: @ninabreznik
Telegram: +1 510 747 84 39 Gitter: gitter.im/ninabreznik
Yeah! I just released it. 😁 It should work with the latest hyperdrive (9.16.0).
Sweet. Will try to update and see how it behaves. Thanks :)
On Thu, Aug 8, 2019 at 9:21 PM RangerMauve notifications@github.com wrote:
Yeah! I just released it. 😁 It should work with the latest hyperdrive (9.16.0).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/datproject/sdk/issues/10?email_source=notifications&email_token=AAIGZS2HBUM5RFQHICRQGWTQDR54FA5CNFSM4IJRAD6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD34ZJ3Q#issuecomment-519673070, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIGZS47YJ5G25SS4LA2RCLQDR54FANCNFSM4IJRAD6A .
--
Nina Breznik, Vision Baker play.ethereum.org wizardamigos.com
Twitter: @ninabreznik
Telegram: +1 510 747 84 39 Gitter: gitter.im/ninabreznik
I'm doing
const url = 'dat://c610858d82e4c9bc9585bb26fedb260c080ed24c6a05bcf3da9ad73a6917ac82/'
const archive = Hyperdrive(url)
using version
"dat-sdk": "^0.1.0"
getting the following error: