Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/DiscordChatExporter/commit/9a5697b5b58e405bac644c761e84c9649939b16e?style=unified&whitespace=ignore-eol You should set ROOT_URL correctly, otherwise the web may not work correctly.

Skip invalid reactions instead of crashing ()

pull/1232/head
Oleksii Holub 11 months ago committed by GitHub
parent 886b8442d3
commit 9a5697b5b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -676,10 +676,14 @@ public class DiscordClient(string token)
.SetQueryParameter("after", currentAfter.ToString())
.Build();
var response = await GetJsonResponseAsync(url, cancellationToken);
// Can be null on reactions with an emoji that has been deleted (?)
// https://github.com/Tyrrrz/DiscordChatExporter/issues/1226
var response = await TryGetJsonResponseAsync(url, cancellationToken);
if (response is null)
yield break;
var count = 0;
foreach (var userJson in response.EnumerateArray())
foreach (var userJson in response.Value.EnumerateArray())
{
var user = User.Parse(userJson);
yield return user;

Loading…
Cancel
Save