richardschneider / net-ipfs-http-client

InterPlanetary File System client for .Net (C#, VB, F# ...)
MIT License
158 stars 52 forks source link

does not work #61

Open furesoft opened 4 years ago

furesoft commented 4 years ago

can you provide a working version?

richardschneider commented 4 years ago

A few more details please

shamtroon commented 4 years ago

can you provide a working version?

+1

@richardschneider I also tried your given example

using Ipfs.Http;
.
.
.
var ipfs = new IpfsClient();

const string filename = "QmXarR6rgkQ2fDSHjSY5nM2kuCXKYGViky5nohtwgF65Ec/about";
string text = await ipfs.FileSystem.ReadAllTextAsync(filename);

but it is not working, also I'am getting exception 'Connection Refused"

here are logs

 at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x001ac] in <b96b4d2a195f4dceb7e5c1beaabcb6a2>:0 \n  at System.Threading.Tasks.ValueTask'1[TResult].get_Result () [0x0001b] in <a17fa1457c5d44f2885ac746c1764ea5>:0 \n  at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00134] in <b96b4d2a195f4dceb7e5c1beaabcb6a2>:0 \n  at System.Threading.Tasks.ValueTask'1[TResult].get_Result () [0x0001b] in <a17fa1457c5d44f2885ac746c1764ea5>:0 \n  at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask'1[TResult] creationTask) [0x000a2] in <b96b4d2a195f4dceb7e5c1beaabcb6a2>:0 \n  at System.Threading.Tasks.ValueTask'1[TResult].get_Result () [0x0001b] in <a17fa1457c5d44f2885ac746c1764ea5>:0 \n  at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00089] in <b96b4d2a195f4dceb7e5c1beaabcb6a2>:0 \n  at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ba] in <b96b4d2a195f4dceb7e5c1beaabcb6a2>:0 \n  at System.Net.Http.DecompressionHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ca] in <b96b4d2a195f4dceb7e5c1beaabcb6a2>:0 \n  at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task'1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x0017e] in <b96b4d2a195f4dceb7e5c1beaabcb6a2>:0 \n  at Ipfs.Http.IpfsClient.DoCommandAsync (System.String command, System.Threading.CancellationToken cancel, System.String arg, System.String[] options) [0x000c0] in <4821d535fc8149b08b8903028d864bb3>:0 \n  at Ipfs.Http.IpfsClient.DoCommandAsync[T] (System.String command, System.Threading.CancellationToken cancel, System.String arg, System.String[] options) [0x0007a] in <4821d535fc8149b08b8903028d864bb3>:0 \n  at testProject.MainClass.Main (System.String[] args) [0x00029] in /home/Projects/testProject/testProject/Program.cs:15 \n  at testProject.MainClass.<Main> (System.String[] args) [0x0000b] in <6254a7d01e404fb2996852c613b7e10c>:0 

kindly provide a running example