"package_not_purchased" showing as an error when querying the

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tam046
    Junior Member
    • Dec 2018
    • 1

    #1

    "package_not_purchased" showing as an error when querying the

    When using the following script (python)

    url = "http://historicdata.betfair.com/api/DownloadFile?filePath=/data/xds_nfs/edp_processed/BASIC/2023/Jan/28/xxxxxxxx/1.yyyyyyyyy.bz2"

    payload={}
    headers = {
    'ssoid': 'CORRECT SESSION TOKEN USED HERE'
    }

    response = requests.request("GET", url, headers=headers, data=payload)

    print(response.text)

    I'm getting the following response;

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8" />
    <title>package_not_purchased</title>
    </head>
    <body>
    package_not_purchased
    </body>
    </html>​

    Indicating the package having not been purchased. This is despite having been through the prior checks of;

    https://historicdata.betfair.com/api/GetMyData
    https://historicdata.betfair.com/api...lectionOptions
    https://historicdata.betfair.com/api...BasketDataSize
    https://historicdata.betfair.com/api...oadListOfFiles

    Through this set the following has been used;

    payload = json.dumps({
    "sport": "Other Sports",
    "plan": "Basic Plan",
    "fromDay": 1,
    "fromMonth": 1,
    "fromYear": 2023,
    "toDay": 31,
    "toMonth": 3,
    "toYear": 2024,
    "eventId": None,
    "eventName": None,
    "marketTypesCollection": ["MARKET ENTRY HERE"],
    "countriesCollection": ["COUNTRY ENTRY HERE", ""],
    "fileTypeCollection": ["M"]
    })​

    I'm stuck so if anyone can provide any pointers for how to get around this, that'd be greatly appreciated.

  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #2
    Hi tam046

    Please can you try downloading the same files directly via the website and also check you are using the correct file path (with reference to the below)

    "/data/xds/historic/BASIC/28139610/1.130129050.bz2",

    If you continue to experience problems, please contact developer support directly via https://support.developer.betfair.co...s/requests/new

    Kind Regards

    Neil

    Comment

    Working...
    X