The following code has worked for years flawlessly but is now failing on parsing response.Data since yesterday. There were some hickups in the past, but currently it seems the API is returning spurious data for almost 24h.
HttpRequestMessage request = new(HttpMethod.Get, $"https://www.patreon.com/api/oauth2/v2/campaigns/{patreonConfig.CampaignId}/members" +
"?include=user" +
$"&{WebUtility.UrlEncode("fields[member]")}=campaign_lifetime_support_cents,currently_entitled_amount_cents,patron_status" +
cursorNext);
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", await RequestAccessToken());
HttpResponseMessage responseMessage = await _httpClientFactory.CreateClient().SendAsync(request);
PatreonMembersResponse? response =
await responseMessage.Content.ReadFromJsonAsync<PatreonMembersResponse>();
if (response == null)
throw new Exception();
foreach (PatreonMember member in response.Data)
{
yield return member;
}