KaukausInsurgency / ki-dcs

Kaukasus Insurgency
5 stars 2 forks source link

AddOrUpdateCapturePoint called too many times in short time period #255

Closed Igneous01 closed 6 years ago

Igneous01 commented 6 years ago

AddOrUpdateCapture point is called 3 times in less than a second

{0:19-7-2018 19:52:38}Client Sent: {"Action":"AddOrUpdateCapturePoint","BulkQuery":true,"Data":{"4":[{"BlueUnits":0,"Latitude":-148807.265625,"LatLong":"043 12.221'N 044 36.389'E","Longitude":843754.6875,"MaxCapacity":30,"MGRS":"38T MN 68030 83508","Name":"Beslan Airport","RedUnits":1,"ServerID":4,"Status":"Red","Text":"Tower Frequencies
- 141.000 MHz
- 42.400 MHz
- 270.000 MHz
- 4.750 MHz","Type":"AIRPORT"},{"BlueUnits":0,"Latitude":-124909.7578125,"LatLong":"043 30.852'N 043 38.187'E","Longitude":760418.25,"MaxCapacity":30,"MGRS":"38T LP 89790 18821","Name":"Nalchik Airport","RedUnits":6,"ServerID":4,"Status":"Red","Text":"Tower Frequencies
- 136.000 MHz
- 41.400 MHz
- 265.000 MHz
- 4.500 MHz","Type":"AIRPORT"},{"BlueUnits":0,"Latitude":-159709.859375,"LatLong":"043 06.821'N 044 31.665'E","Longitude":838747.6875,"MaxCapacity":30,"MGRS":"38T MN 61578 73547","Name":"FARP Skala","RedUnits":8,"ServerID":4,"Status":"Red","Text":"Tower Frequency - 133.500 MHz AM","Type":"FARP"},{"BlueUnits":0,"Latitude":-173002.15625,"LatLong":"042 58.104'N 044 46.622'E","Longitude":861352.75,"MaxCapacity":30,"MGRS":"38T MN 81817 57329","Name":"FARP Vetka","RedUnits":0,"ServerID":4,"Status":"Neutral","Text":"Tower Frequency - 127.500 MHz AM","Type":"FARP"},{"BlueUnits":0,"Latitude":-127467.265625,"LatLong":"043 29.856'N 043 34.084'E","Longitude":755123.625,"MaxCapacity":30,"MGRS":"38T LP 84231 17070","Name":"FARP Torba","RedUnits":16,"ServerID":4,"Status":"Red","Text":"Tower Frequency - 129.000 MHz AM","Type":"FARP"}]},"Destination":"REDIS"} {0:19-7-2018 19:52:38}Exception encountered during OnReceived handler: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List1[System.Collections.Generic.Dictionary2[System.String,System.Object]]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path '4', line 1, position 5. {0:19-7-2018 19:52:38}Server Sent: 000102{ "Action" : "UNKNOWN", "Result" : false, "Error" : "Malformed JSON Request Received", "Data" : null } {0:19-7-2018 19:52:38}Client Sent: {"Action":"AddOrUpdateCapturePoint","BulkQuery":true,"Data":{"4":[{"BlueUnits":41,"Latitude":-208836.171875,"LatLong":"042 39.612'N 044 38.500'E","Longitude":855097.1875,"MaxCapacity":30,"MGRS":"38T MN 70631 23143","Name":"Kazbegi Village","RedUnits":0,"ServerID":4,"Status":"Blue","Text":-9999,"Type":"CAPTUREPOINT"},{"BlueUnits":15,"Latitude":-215254.125,"LatLong":"042 36.501'N 044 35.079'E","Longitude":851218.6875,"MaxCapacity":30,"MGRS":"38T MN 65931 17407","Name":"Garbani Village","RedUnits":0,"ServerID":4,"Status":"Blue","Text":-9999,"Type":"CAPTUREPOINT"},{"BlueUnits":24,"Latitude":-193964.703125,"LatLong":"042 51.155'N 044 03.459'E","Longitude":804326.0625,"MaxCapacity":30,"MGRS":"38T MN 23006 44875","Name":"Mizur Village","RedUnits":0,"ServerID":4,"Status":"Blue","Text":-9999,"Type":"CAPTUREPOINT"},{"BlueUnits":12,"Latitude":-200858.21875,"LatLong":"042 47.735'N 044 00.389'E","Longitude":800977.9375,"MaxCapacity":30,"MGRS":"38T MN 18751 38593","Name":"Buron Village","RedUnits":0,"ServerID":4,"Status":"Blue","Text":-9999,"Type":"CAPTUREPOINT"},{"BlueUnits":0,"Latitude":-134929.59375,"LatLong":"043 20.918'N 044 24.553'E","Longitude":825482.3125,"MaxCapacity":30,"MGRS":"38T MN 52119 99700","Name":"Zamankul City","RedUnits":20,"ServerID":4,"Status":"Red","Text":-9999,"Type":"CAPTUREPOINT"},{"BlueUnits":0,"Latitude":-166300.859375,"LatLong":"043 02.351'N 044 40.551'E","Longitude":851980.1875,"MaxCapacity":30,"MGRS":"38T MN 73595 65216","Name":"Vladikavkaz City","RedUnits":0,"ServerID":4,"Status":"Neutral","Text":-9999,"Type":"CAPTUREPOINT"}]},"Destination":"REDIS"} {0:19-7-2018 19:52:38}Too many requests - throttling request {0:19-7-2018 19:52:39}Client Sent: {"Action":"AddOrUpdateCapturePoint","BulkQuery":true,"Data":{"4":[{"BlueUnits":34,"Latitude":-157192.40625,"LatLong":"043 11.765'N 043 55.601'E","Longitude":788581.5625,"MaxCapacity":30,"MGRS":"38T MN 12793 83148","Name":"Chikola City","RedUnits":0,"ServerID":4,"Status":"Blue","Text":-9999,"Type":"CAPTUREPOINT"},{"BlueUnits":65,"Latitude":-170948.578125,"LatLong":"043 02.591'N 044 13.456'E","Longitude":815090.6875,"MaxCapacity":30,"MGRS":"38T MN 36814 65901","Name":"Alagir City","RedUnits":0,"ServerID":4,"Status":"Blue","Text":-9999,"Type":"CAPTUREPOINT"},{"BlueUnits":0,"Latitude":-158701.25,"LatLong":"043 09.575'N 044 09.674'E","Longitude":808205.75,"MaxCapacity":30,"MGRS":"38T MN 31809 78877","Name":"Digora City","RedUnits":0,"ServerID":4,"Status":"Neutral","Text":-9999,"Type":"CAPTUREPOINT"},{"BlueUnits":0,"Latitude":-154322.359375,"LatLong":"043 10.447'N 044 24.602'E","Longitude":828232.3125,"MaxCapacity":30,"MGRS":"38T MN 52048 80317","Name":"Kirovo City","RedUnits":8,"ServerID":4,"Status":"Red","Text":-9999,"Type":"CAPTUREPOINT"},{"BlueUnits":0,"Latitude":-150616.65625,"LatLong":"043 11.709'N 044 31.859'E","Longitude":837748,"MaxCapacity":30,"MGRS":"38T MN 61893 82592","Name":"Beslan City","RedUnits":26,"ServerID":4,"Status":"Red","Text":-9999,"Type":"CAPTUREPOINT"},{"BlueUnits":0,"Latitude":-150075.25,"LatLong":"043 17.170'N 043 39.220'E","Longitude":765087.5625,"MaxCapacity":30,"MGRS":"38T LN 90773 93473","Name":"Zhemtala Village","RedUnits":0,"ServerID":4,"Status":"Neutral","Text":-9999,"Type":"CAPTUREPOINT"}]},"Destination":"REDIS"} {0:19-7-2018 19:52:39}Too many requests - throttling request

Igneous01 commented 6 years ago

This is not a bug - these are all different messages simply segmented in chunks to make the transmission logic easier on the game side. Closing.