Skip to content
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

response status code 415 (Unsupported Media Type), while using client.Track() #315

Open
tartulab opened this issue May 24, 2021 · 4 comments

Comments

@tartulab
Copy link

hello, I want to use client.Track() but I get error: System.Net.Http.HttpRequestException: 'Response status code does not indicate success: 415 (Unsupported Media Type).'

            Uri fullNodeServer = new Uri("http://**********");
            ExplorerClient client = new ExplorerClient(network, fullNodeServer);
            client.Track(userDerivationScheme);

other stuff, like client.GetFeeRat is working.

@NicolasDorier
Copy link
Member

NicolasDorier commented May 25, 2021

That's strange, what is the url? Is it a local network ip? or it goes through internet?
Did you tried update package/nbx?

@tartulab
Copy link
Author

tartulab commented May 25, 2021

local network ip. its machine in the same network. I have cloned latest repo, like cupule days ago. for client library I'm also using latest nuget package (3.0.21). Ps I forgot to mention that in postman everything is working and I can track specific derivation scheme using post /v1/cryptos/btc/derivations/****

@NicolasDorier
Copy link
Member

damn that's weird. Tests are using exactly the same client... will try to replicate

@NicolasDorier
Copy link
Member

This seems to work...

var client = new NBXplorer.ExplorerClient(new NBXplorer.NBXplorerNetworkProvider(ChainName.Regtest).GetBTC());
var facto = new NBXplorer.DerivationStrategy.DerivationStrategyFactory(client.Network.NBitcoinNetwork);
var derivationScheme = facto.CreateDirectDerivationStrategy(new ExtKey().Neuter());
client.Track(derivationScheme);

Can you send me a project where you can repro?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants