-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled exception. System.Net.Http.HttpRequestException: 405 - Method Not Allowed #71
Comments
Problem is caused by a breaking change in the HTTP interface of the IPFS daemon. Since version 0.5.0, all the endpoints accept only POST requests. And this is my temp solution for this issue - override default methods using
|
That helped. Thanks |
@jurilents @Andrem19 @fadyanwar This library is no longer being maintained. The community has taken ownership of a fork in the IPFS Shipyard, and are keeping it maintained and updated. See #72 for details. |
Hi, I'm getting the below error using the Nuget package while running an IPFS node locally.
$ dotnet run
Unhandled exception. System.Net.Http.HttpRequestException: 405 - Method Not Allowed
at Ipfs.Http.IpfsClient.ThrowOnErrorAsync(HttpResponseMessage response)
$>d__0.MoveNext() in /home/fady/ipfstest/Program.cs:line 6at Ipfs.Http.IpfsClient.DownloadAsync(String command, CancellationToken cancel, String arg, String[] options)
at Ipfs.Http.FileSystemApi.ReadAllTextAsync(String path, CancellationToken cancel)
at $.<
--- End of stack trace from previous location ---
at $.(String[] args)
I'm using your sample code as per instructions on the readme page
using Ipfs.Http;
var ipfs = new IpfsClient();
const string filename = "QmXarR6rgkQ2fDSHjSY5nM2kuCXKYGViky5nohtwgF65Ec/about";
string text = await ipfs.FileSystem.ReadAllTextAsync(filename);
The text was updated successfully, but these errors were encountered: