RangerMauve / dat-archive-web

DatArchive implementation for browsers that uses dat-gateway
MIT License
30 stars 4 forks source link

Demo: timeout error #7

Closed hossameldeen closed 5 years ago

hossameldeen commented 5 years ago

On this page, I paste the example into DevTools.

After a few seconds, I get this error: (click to expand) ``` Uncaught (in promise) TimeoutError: Timed out bundle.js:4561 at setTimeout (http://ranger.mauve.moe/dat-archive-web/bundle.js:32503:14) ExtendableError | @ | bundle.js:4561 -- | -- | --   | TimeoutError | @ | bundle.js:4598   | setTimeout | @ | bundle.js:32503   | Promise.then (async) |   |     | (anonymous) | @ | VM70:7 ```


Then, periodically, this error is thrown: (click to expand) ``` Error: Request timeout bundle.js:86 at Peer.ontick (bundle.js:27902) at Protocol._kick (bundle.js:24698) at kick (bundle.js:24592) pump | @ | bundle.js:86 -- | -- | --   | (anonymous) | @ | bundle.js:37852   | f | @ | bundle.js:32621   | (anonymous) | @ | bundle.js:37810   | f | @ | bundle.js:32621   | onfinish | @ | bundle.js:20414   | emitNone | @ | bundle.js:20574   | emit | @ | bundle.js:20654   | finishMaybe | @ | bundle.js:41403   | afterWrite | @ | bundle.js:41265   | afterTick | @ | bundle.js:37221   | Item.run | @ | bundle.js:11348   | drainQueue | @ | bundle.js:11318   | setTimeout (async) |   |     | runTimeout | @ | bundle.js:11236   | process.nextTick | @ | bundle.js:11338   | Duplexify.destroy | @ | bundle.js:16326   | (anonymous) | @ | bundle.js:37822   | call | @ | bundle.js:37829   | (anonymous) | @ | bundle.js:37849   | f | @ | bundle.js:32621   | (anonymous) | @ | bundle.js:37808   | f | @ | bundle.js:32621   | onerror | @ | bundle.js:20427   | emitOne | @ | bundle.js:20584   | emit | @ | bundle.js:20657   | Protocol.destroy | @ | bundle.js:24722   | Feed.destroy | @ | bundle.js:24353   | Peer.destroy | @ | bundle.js:28096   | Peer.ontick | @ | bundle.js:27902   | Protocol._kick | @ | bundle.js:24698   | kick | @ | bundle.js:24592   | setInterval (async) |   |     | Protocol.setTimeout | @ | bundle.js:24588   | Protocol | @ | bundle.js:24561   | Protocol | @ | bundle.js:24516   | replicate | @ | bundle.js:27734   | Feed.replicate | @ | bundle.js:26222   | Hyperdrive.replicate | @ | bundle.js:28959   | _replicate | @ | bundle.js:82   | DatArchive._loadPromise.getURLData.then | @ | bundle.js:67   | async function (async) |   |     | DatArchive._loadPromise.getURLData.then | @ | bundle.js:62   | Promise.then (async) |   |     | DatArchive | @ | bundle.js:42   | (anonymous) | @ | VM70:4 ```


By the way, kudos to you and Sam! I hope I be able to use it in Transparent Salaries.

RangerMauve commented 5 years ago

It seems my demo server is down. 😅 I'll look into it after the xmas break since I'm pretty busy.

In the meantime, I suggest running dat-gateway locally and running the demo with that instead.