Skip to content

Unhandled exception. System.Net.Http.HttpRequestException: 405 - Method Not Allowed #71

@fadyanwar

Description

@fadyanwar

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)
at Ipfs.Http.IpfsClient.DownloadAsync(String command, CancellationToken cancel, String arg, String[] options)
at Ipfs.Http.FileSystemApi.ReadAllTextAsync(String path, CancellationToken cancel)
at $.<

$>d__0.MoveNext() in /home/fady/ipfstest/Program.cs:line 6
--- 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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions