-
Notifications
You must be signed in to change notification settings - Fork 588
Closed
Labels
Description
Describe the bug
When using the ListAsync method of the ReaderService, an ArgumentOutOfRangeException is thrown by the Stripe.Infrastructure.UnixDateTimeConverter.ReadJson method. I believe the issue is being caused by the last_seen_at field, which comes back as a unix timestamp in milliseconds, however, the converter expects seconds. The same error is thrown when using the GetAsync method of the same service.
I'm using version 49.2.0 with .NET 8.
To Reproduce
var service = new ReaderService();
var requestOptions = new ReaderListOptions
{
Limit = 1,
Status = "online"
};
var readers = await service.ListAsync(requestOptions, cancellationToken: cancellationToken);Expected behavior
The ListAsync method should return a list of readers, not throw an exception.
Code snippets
OS
Windows
.NET version
.NET 8
Library version
stripe-dotnet v49.2.0
API version
2025-10-29.clover
Additional context
No response