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.

Data not downloading in "client" connection

See original GitHub issue

Hello,

I am running dat version 9.8.2, as reported by dat -v, which I installed by cloning the dat GitHub repository and running npm link with revision 0ea2dce7136740b33b5229b3fc8599f1746f2802.

I have tried running a very simple configuration, but am having trouble getting data to download using the dat dat://<hash> command.

Console 1

  1. Create a directory named source containing a single empty file named hello-world.txt.
  2. From within source, run dat link.
  3. Copy dat://<hash> URI.

Console 2

  1. Create target directory.
  2. Change into target directory.
  3. Run dat dat://<hash> with hash copied from Console 1.

Expected behvaiour

New source directory created in target, containing file named hello-world.txt.

Observed behaviour

  • Consoles indicate connection through an increase in the number of connected sources.
  • Nothing created in target directory.

Here is a screencast showing the issue:

dat-issue

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
joehandcommented, Mar 15, 2016

@cfobel this may have to do with the entire folder and file being 0 bytes. This was a bug that was recently fixed in hyperdrive (a dat dependency).

There are two things you can do that will help figure out the cause of the bug:

  1. We need to make sure the hyperdrive module is up to date (4.0.0 is the latest). The straightforward way to do this is delete and reinstall your node_modules inside your dat cloned repository. Once this is done, try linking/downloading your folder again.
  2. If 1. doesn’t work, try doing it with non-empty folder/files. This will help to figure out if its a 0 bytes bug or something else (windows, perhaps).

Dat is connecting and transferring metadata (since we can see how much should be transferred). But then something is going wrong…

1reaction
waldojcommented, Mar 15, 2016

A+ BUG REPORT WOULD READ AGAIN.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix file download errors - Google Chrome Help
Fix most file download errors If you try to download a file and it doesn't. ... If your internet connection is unstable, learn...
Read more >
Failed to Download Data - Blizzard Support - Battle.net
An issue arose when your game client tried to download data from our servers. It may be caused by a problem with your...
Read more >
HTTPS downloads failing - MSDN
We are having sporadic but persistent problems downloading large files over HTTPS (not HTTP). Here is what I've learned so far:
Read more >
Why did I receive an error when downloading data from The ...
An error that times out the Web browser can sometimes occur after clicking on a download link. You might be able to open...
Read more >
c# - HttpClient File Download Error - Unable to read data from ...
Unable to read data from the transport connection: The connection ... client stopped pulling down data momentarily) and the connection is ...
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