[BUG] qBit properties call fails when date is bigger than long.MaxValue #128

Open
opened 2025-10-09 16:58:52 -05:00 by giteasync · 0 comments
Owner

Originally created by @Flaminel on GitHub.

Before submitting a bug report, I have:

  • Reviewed the documentation.
  • Ensured I am using ghcr.io/flmorg/cleanuperr docker repository.
  • Ensured I am using the latest version.
  • Enabled debug logging.

What is the behavior?

Creation date seems to be way off. Appears as Created On: 6/1/40665, 7:35:55 PM on qBit's web UI.

{
    "addition_date": 1741977118,
    "comment": "Torrent downloaded from torrent cache at blablabla",
    "completion_date": -1,
    "created_by": "blablabla",
    "creation_date": 1221109432555,
    "dl_limit": -1,
    "dl_speed": 0,
    "dl_speed_avg": 0,
    "download_path": "/mnt/sdb/Working/lidarr",
    "eta": 8640000,
    "has_metadata": true,
    "hash": "",
    "infohash_v1": "",
    "infohash_v2": "",
    "is_private": false,
    "last_seen": 1742288516,
    "name": "Deadly Like the Snake",
    "nb_connections": 1,
    "nb_connections_limit": -1,
    "peers": 0,
    "peers_total": 2,
    "piece_size": 262144,
    "pieces_have": 0,
    "pieces_num": 393,
    "popularity": 0,
    "private": false,
    "reannounce": 179,
    "save_path": "/save/path",
    "seeding_time": 0,
    "seeds": 0,
    "seeds_total": 0,
    "share_ratio": 0,
    "time_elapsed": 399988,
    "total_downloaded": 0,
    "total_downloaded_session": 0,
    "total_size": 102930113,
    "total_uploaded": 0,
    "total_uploaded_session": 0,
    "total_wasted": 0,
    "up_limit": -1,
    "up_speed": 0,
    "up_speed_avg": 0
}

Which operating system do you use?

Linux

What type of deployment do you use?

Docker container

Relevant log output

System.ArgumentOutOfRangeException: Valid values are between -62135596800 and 253402300799, inclusive. (Parameter 'seconds')
   at System.DateTimeOffset.FromUnixTimeSeconds(Int64 seconds)
   at QBittorrent.Client.Converters.UnixTimeToNullableDateTimeConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at QBittorrent.Client.QBittorrentClient.<>c__DisplayClass21_0.<<GetTorrentPropertiesAsync>g__ExecuteAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
   at Infrastructure.Verticals.DownloadClient.QBittorrent.QBitService.ShouldRemoveFromArrQueueAsync(String hash, IReadOnlyList`1 ignoredDownloads) in /app/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs:line 83
   at Infrastructure.Verticals.QueueCleaner.QueueCleaner.<>c__DisplayClass3_0.<<ProcessInstanceAsync>b__0>d.MoveNext() in /app/Infrastructure/Verticals/QueueCleaner/QueueCleaner.cs:line 107
--- End of stack trace from previous location ---
   at Infrastructure.Verticals.Arr.ArrQueueIterator.Iterate(IArrClient arrClient, ArrInstance arrInstance, Func`2 action) in /app/Infrastructure/Verticals/Arr/ArrQueueIterator.cs:line 43
   at Infrastructure.Verticals.QueueCleaner.QueueCleaner.ProcessInstanceAsync(ArrInstance instance, InstanceType instanceType) in /app/Infrastructure/Verticals/QueueCleaner/QueueCleaner.cs:line 65
   at Infrastructure.Verticals.Jobs.GenericHandler.ProcessArrConfigAsync(ArrConfig config, InstanceType instanceType, Boolean throwOnFailure) in /app/Infrastructure/Verticals/Jobs/GenericHandler.cs:line 83

Anything else?

No response

Originally created by @Flaminel on GitHub. ### Before submitting a bug report, I have: - [x] Reviewed the documentation. - [x] Ensured I am using ghcr.io/flmorg/cleanuperr docker repository. - [x] Ensured I am using the latest version. - [x] Enabled debug logging. ### What is the behavior? Creation date seems to be way off. Appears as `Created On: 6/1/40665, 7:35:55 PM` on qBit's web UI. ``` { "addition_date": 1741977118, "comment": "Torrent downloaded from torrent cache at blablabla", "completion_date": -1, "created_by": "blablabla", "creation_date": 1221109432555, "dl_limit": -1, "dl_speed": 0, "dl_speed_avg": 0, "download_path": "/mnt/sdb/Working/lidarr", "eta": 8640000, "has_metadata": true, "hash": "", "infohash_v1": "", "infohash_v2": "", "is_private": false, "last_seen": 1742288516, "name": "Deadly Like the Snake", "nb_connections": 1, "nb_connections_limit": -1, "peers": 0, "peers_total": 2, "piece_size": 262144, "pieces_have": 0, "pieces_num": 393, "popularity": 0, "private": false, "reannounce": 179, "save_path": "/save/path", "seeding_time": 0, "seeds": 0, "seeds_total": 0, "share_ratio": 0, "time_elapsed": 399988, "total_downloaded": 0, "total_downloaded_session": 0, "total_size": 102930113, "total_uploaded": 0, "total_uploaded_session": 0, "total_wasted": 0, "up_limit": -1, "up_speed": 0, "up_speed_avg": 0 } ``` ### Which operating system do you use? Linux ### What type of deployment do you use? Docker container ### Relevant log output ```shell System.ArgumentOutOfRangeException: Valid values are between -62135596800 and 253402300799, inclusive. (Parameter 'seconds') at System.DateTimeOffset.FromUnixTimeSeconds(Int64 seconds) at QBittorrent.Client.Converters.UnixTimeToNullableDateTimeConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at QBittorrent.Client.QBittorrentClient.<>c__DisplayClass21_0.<<GetTorrentPropertiesAsync>g__ExecuteAsync|0>d.MoveNext() --- End of stack trace from previous location --- at Infrastructure.Verticals.DownloadClient.QBittorrent.QBitService.ShouldRemoveFromArrQueueAsync(String hash, IReadOnlyList`1 ignoredDownloads) in /app/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs:line 83 at Infrastructure.Verticals.QueueCleaner.QueueCleaner.<>c__DisplayClass3_0.<<ProcessInstanceAsync>b__0>d.MoveNext() in /app/Infrastructure/Verticals/QueueCleaner/QueueCleaner.cs:line 107 --- End of stack trace from previous location --- at Infrastructure.Verticals.Arr.ArrQueueIterator.Iterate(IArrClient arrClient, ArrInstance arrInstance, Func`2 action) in /app/Infrastructure/Verticals/Arr/ArrQueueIterator.cs:line 43 at Infrastructure.Verticals.QueueCleaner.QueueCleaner.ProcessInstanceAsync(ArrInstance instance, InstanceType instanceType) in /app/Infrastructure/Verticals/QueueCleaner/QueueCleaner.cs:line 65 at Infrastructure.Verticals.Jobs.GenericHandler.ProcessArrConfigAsync(ArrConfig config, InstanceType instanceType, Boolean throwOnFailure) in /app/Infrastructure/Verticals/Jobs/GenericHandler.cs:line 83 ``` ### Anything else? _No response_
giteasync added the
bug
label 2025-10-09 16:58:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Cleanuparr-Cleanuparr#128
No description provided.