Post ID Numbers Have Exceeded a 32-bit Integer (Exception caught: JSON integer 2148638898 is too large or small for an Int32) #92

Closed
opened 2025-12-12 22:31:56 +00:00 by ViRGEdx · 1 comment

It looks like OF's post ID numbers have crossed the 2,147,483,647 mark in the last 24 hours. Which, unfortunately, OF-DL seems to be coded such that it assumes that these numbers are always going to be in the range of signed 32-bit Ints. As a result, post downloads are failing for any newer posts that have an ID number higher than the 32-bit limit.

I'm seeing this across multiple creators. ID numbers seem to be based on post creation date, not when it went live, so whether any given post is over the limit is very hit-and-miss right now.

e.g. https://onlyfans.com/2148638898/<creator>

Exception caught: JSON integer 2148638898 is too large or small for an Int32. Path 'id', line 1, position 75.

                                                                                                             StackTrace:    at Newtonsoft.Json.JsonTextReader.ParseReadNumber(ReadType readType, Char firstChar, Int32 initialPosition)
   at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType)
   at Newtonsoft.Json.JsonTextReader.ReadNumberValue(ReadType readType)
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   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 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at OF_DL.Helpers.APIHelper.GetPost(String endpoint, String folder, IDownloadConfig config)`
It looks like OF's post ID numbers have crossed the 2,147,483,647 mark in the last 24 hours. Which, unfortunately, OF-DL seems to be coded such that it assumes that these numbers are always going to be in the range of signed 32-bit Ints. As a result, post downloads are failing for any newer posts that have an ID number higher than the 32-bit limit. I'm seeing this across multiple creators. ID numbers seem to be based on post creation date, not when it went live, so whether any given post is over the limit is very hit-and-miss right now. e.g. `https://onlyfans.com/2148638898/<creator>` ``` Exception caught: JSON integer 2148638898 is too large or small for an Int32. Path 'id', line 1, position 75. StackTrace: at Newtonsoft.Json.JsonTextReader.ParseReadNumber(ReadType readType, Char firstChar, Int32 initialPosition) at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType) at Newtonsoft.Json.JsonTextReader.ReadNumberValue(ReadType readType) at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) 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 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at OF_DL.Helpers.APIHelper.GetPost(String endpoint, String folder, IDownloadConfig config)` ```
Author

Fixed in OF-DL 1.9.16.

Fixed in OF-DL 1.9.16.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sim0n00ps/OF-DL#92
No description provided.