Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
Flaminel opened this issue Mar 19, 2025 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@Flaminel
Copy link
Contributor

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

@Flaminel Flaminel added the bug Something isn't working label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant