betfair_data icon indicating copy to clipboard operation
betfair_data copied to clipboard

Error when version in marketDefinition greater than uint32

Open vincentmele opened this issue 1 year ago • 0 comments

I am getting an error parsing the first line of a self-collected betfair stream. The error is "Failed to parse version field: Value out of range: 4295094959." This appears to be greater than the allowed size of uint32.

I am using betfair-data 0.3.4 (the latest from pip) running in a Miniconda instance on a Macbook Pro M1, Ventura 13.2.1.

The JSON of the line is below.

{
	"mc": [{
		"id": "1.193531652",
		"img": true,
		"marketDefinition": {
			"venue": "Perry Barr",
			"inPlay": false,
			"status": "OPEN",
			"eventId": "31182317",
			"runners": [{
				"id": 42396416,
				"status": "ACTIVE",
				"sortPriority": 1
			}, {
				"id": 42052577,
				"status": "ACTIVE",
				"sortPriority": 2
			}, {
				"id": 38557499,
				"status": "ACTIVE",
				"sortPriority": 3
			}, {
				"id": 36648358,
				"status": "ACTIVE",
				"sortPriority": 4
			}, {
				"id": 39069859,
				"status": "ACTIVE",
				"sortPriority": 5
			}, {
				"id": 38757603,
				"status": "ACTIVE",
				"sortPriority": 6
			}],
			"version": 4295094959,
			"betDelay": 0,
			"complete": true,
			"openDate": "2022-01-18T11:06:00.000Z",
			"timezone": "Europe/London",
			"bspMarket": true,
			"marketTime": "2022-01-18T11:06:00.000Z",
			"marketType": "WIN",
			"regulators": ["MR_INT"],
			"bettingType": "ODDS",
			"countryCode": "GB",
			"eventTypeId": "4339",
			"suspendTime": "2022-01-18T11:06:00.000Z",
			"bspReconciled": false,
			"crossMatching": false,
			"marketBaseRate": 5,
			"discountAllowed": false,
			"numberOfWinners": 1,
			"runnersVoidable": false,
			"turnInPlayEnabled": false,
			"persistenceEnabled": false,
			"numberOfActiveRunners": 6,
			"priceLadderDefinition": {
				"type": "CLASSIC"
			}
		}
	}],
	"op": "mcm",
	"pt": 1642451002939
}

vincentmele avatar Mar 13 '23 17:03 vincentmele