getAccountStatement Giving Error AANGX-000

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • calrk_th
    Junior Member
    • Aug 2014
    • 6

    #1

    getAccountStatement Giving Error AANGX-000

    Hi Guys
    I am getting an error while calling the getAccountStatement rest api. The following is the request and response.

    Request:
    Code:
    {"id":1,"recordCount":10,"locale":"en_US","fromRecord":0,"includeItem":"ALL","itemDateRange":{"from":"2014-08-21T00:00:00.000Z","to":"2014-08-31T00:00:00.000Z"},"wallet":"UK"}
    Response:

    Code:
    {"detail":{"AccountAPINGException":{"errorDetails":"","errorCode":"UNEXPECTED_ERROR","requestUUID":"prdaan002-07230730-000282ba8b"},"exceptionname":"AccountAPINGException"},"faultcode":"Server","faultstring":"AANGX-0003"}
    The end point I have used is
    https://api.betfair.com/exchange/acc...ountStatement/

    Any idea with the error? Any help is appreciated.

    Thanks
    Last edited by calrk_th; 31-08-2014, 04:38 PM.
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #2
    Hi

    Can you post the JSON request string again (between code tags)
    It doesn't look right, but might have got screwed up by pasting to the forum.

    For example, where is the ending curly brackets, and there is a spurious space between the "c" and "o" of "fromRecord".

    Regards Geoff

    Comment

    • calrk_th
      Junior Member
      • Aug 2014
      • 6

      #3
      Thanks Geoff.

      I have modified the post with code.

      Thanks
      Clark

      Comment

      • betdynamics
        Junior Member
        • Sep 2010
        • 534

        #4
        Try changing the locale to "en" instead of "en_US"

        I run the RPC version rather than the REST version, but the string used when I run this in the Accounts Visualiser is:

        Code:
        {"jsonrpc": "2.0", "method": "AccountAPING/v1.0/getAccountStatement", "params": {"locale":"en","fromRecord":"0","recordCount":"10","itemDateRange":{"from":"2014-08-20T23:00:00Z","to":"2014-08-30T23:00:00Z"},"includeItem":"ALL","wallet":"UK"}, "id": 1}

        Comment

        • calrk_th
          Junior Member
          • Aug 2014
          • 6

          #5
          Thanks betdynamics.

          But I have no luck. I even tried by sending the exact request you have posted.. But still no luck..:

          Comment

          • geoffw123
            Senior Member
            • Mar 2014
            • 250

            #6
            Hi

            I am not sure how much I can help as I haven't studied the REST version, like betDynamics I am also using the RPC version.

            How much the contents of the Request Json string changes between the two (if it changes at all) I cant really say.

            Assuming they are pretty similar, that means your string looked suspicious as it doesn't contain a method string or the word params grouping the params together. Something for you to look at maybe ?

            Its easier to debug the RPC version as that is what the Betfair Visualiser tool uses, so if something doesn't work, you can compare them, least that's what I have been doing !

            Regards Geoff

            Comment

            • calrk_th
              Junior Member
              • Aug 2014
              • 6

              #7
              Thanks Geoff

              I have tried the rpc version with the following request and got the same exception.
              Code:
              {"jsonrpc":"2.0","method":"AccountAPING/v1.0/getAccountStatement","id":"1","params":{"recordCount":10,"locale":"en","fromRecord":0,"includeItem":"ALL","itemDateRange":{"from":"2014-08-23T00:00:00.000Z","to":"2014-09-02T00:00:00.000Z"},"wallet":"UK"}}
              Even I tried in visualiser with the same data and I got same error.

              For me everything works fine except this accountstatment.

              Comment

              • gus
                Senior Member
                • Jan 2009
                • 134

                #8
                I don't actually use getAccountStatement in my apps, but, just to test, I tried (from my app):

                https://api.betfair.com/exchange/account/rest/v1.0/getAccountStatement/{"recordCount":10,"fromRecord":0}

                and that worked fine.

                Perhaps you could try taking out all of the other params (most of them apart from the dates are Defaults anyway), and if that works for you, add the params one at a time and see which one is causing the problem?

                Comment

                • calrk_th
                  Junior Member
                  • Aug 2014
                  • 6

                  #9
                  Thanks.

                  I have still no luck at all. It is not even working in Visualizer. All other APIs are working in Visualizer
                  Getting the same UNEXPECTED error in
                  Visualizer. I have trimmed the request , tested with another login, changed the parameters etc...Still I have no luck at all.


                  Thanks

                  Comment

                  • BetfairDeveloperProgram
                    Administrator
                    • Oct 2008
                    • 680

                    #10
                    Hi calrk_th

                    Please can you contact bdp@betfair.com with your account username and Application Key and we'll investigate this issue further.

                    Thanks

                    Neil

                    Comment

                    Working...
                    X