bchavez / Coinbase

:moneybag: A .NET/C# implementation of the Coinbase API.

Home Page:https://developers.coinbase.com/api/v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request Money is not working

cizu64 opened this issue · comments

The request money is not working. I tried this:

> var accounts = await client.Transactions.RequestMoneyAsync(accountId, new RequestMoney
>             {
>                 To = email,
>                 Type = "request",
>                 Amount = amount,
>                 Currency = coinType,
>                 Description = description
>             });
> var result = coinBase.RequestPayment("myaccountid", "test@gmail.com", 0.01, "BTC",null).Result;

It throwing an exception:

Unhandled Exception: System.AggregateException: One or more errors occurred. ---> Flurl.Http.FlurlHttpException: Call failed with status code 400 (Bad Request): POST https://api.coinbase.com/v2/accounts/******/transactions
at Flurl.Http.FlurlRequest.d__23.MoveNext()

Hi Charles,

You'll have to find out why.

To do that:

  • Start Fiddler.
  • Call the EnableFiddlerDebugProxy method to setup Fiddler debugging in your CoinbaseClient.
  • Run the call again and inspect the Fiddler output for the request/response and see why it failed.

Hey Charles,

I think this is a bug in the Coinbase REST API on Coinbase's Servers.

Here's the currently tracked issue: coinbase/coinbase-ios-sdk#54

Thanks,
Brian

FWIW this is being tracked here now officially/unofficially:
https://forums.coinbasecloud.dev/t/https-api-coinbase-com-v2-accounts-account-id-transactions-it-looks-like-we-encountered-a-problem-sorry-for-the-trouble/867

Also worth noting the new dev forums are way more active/engaging than the old GitHub repositories.