Closed uponatime2019 closed 2 weeks ago
Hi, what options are you using for the clients, specifically the RatelimitBehaviour? This seems to happen during reconnection then it seems?
I just call
Hi, what options are you using for the clients, specifically the RatelimitBehaviour? This seems to happen during reconnection then it seems?
I just call subscribe function, no RatelimitBehaviour, no client option. My code look like this
while (true)
{
try
{
var listCts = new List<CancellationTokenSource>();
var symbols = await GetTopFuturesSymbols(0, 50);
foreach (var symbol in symbols)
{
listCts.Add(await StartLiquidationData(symbol));
}
await Task.Delay(TimeSpan.FromDays(3));
foreach (var cts in listCts)
{
cts.Cancel();
}
await BybitSocketClient.V5LinearApi.UnsubscribeAllAsync();
}
catch (Exception ex)
{
}
}
Describe the bug Console app crash when run socket about 1 day
To Reproduce
Expected behavior When it reach limit it should give exception instead of crash. I surround with try catch on every socket call
Debug logging