Page 1 of 1

Error in Logfile

Posted: Sat Feb 06, 2021 3:11 pm
by SMCG0O
Anybody know what this error is about and/or if it is a problem?

06/02/2021 13:35:57: ListMarketBookRequest: PerformRequest Exception: Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[BFNGAPI.TO.MarketBook]' 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<T>) 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 'faultcode', line 1, position 13.

Re: Error in Logfile

Posted: Sat Feb 06, 2021 3:24 pm
by BfBotManager
This happens when API is down or if there are some problems accessing Betfair API.

It is not a problem if you see few message like this, as bot makes those requests to get market prices every second, so it is normal that some requests fail. But if your market prices are not updating, bot is not working and you see large number of failed requests then you should check that network connection is working well and that bot is able to access Betfair API/servers.