Exception caught: Error converting value {null} to type 'System.DateTime'. Path 'fromUser.subscribedByExpireDate' #118

Open
opened 2025-12-24 23:04:21 +00:00 by jamesons18 · 6 comments

When I try to download certain posts from my purchased tab, it throws the following error:

Exception caught: Error converting value {null} to type 'System.DateTime'. Path 'fromUser.subscribedByExpireDate', line 1, position 18357

And then a whole bunch of

StackTrace: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)

Could this have something to do with the fact that the account I bought it from has been deleted? It makes no sense because the video is still there on the website, and I can play it.

When I try to download certain posts from my purchased tab, it throws the following error: > Exception caught: Error converting value {null} to type 'System.DateTime'. Path 'fromUser.subscribedByExpireDate', line 1, position 18357 And then a whole bunch of > StackTrace: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) Could this have something to do with the fact that the account I bought it from has been deleted? It makes no sense because the video is still there on the website, and I can play it.
Collaborator

Can you grab a verbose log of this? There's a PR that might be related, but it might not be, hard to tell just yet.

Can you grab a verbose log of this? There's a PR that might be related, but it might not be, hard to tell just yet.
melithine added the
needs-info
label 2025-12-24 23:36:04 +00:00
Author

Please enter a message URL: https://onlyfans.com/my/chats/chat/209338292/?firstId=4599626761172
Folder for already created
Getting Paid Message
Exception caught: Error converting value {null} to type 'System.DateTime'. Path 'fromUser.subscribedByExpireDate', line 1, position 18357.

StackTrace: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)
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.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
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.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
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.JsonSerializer.Deserialize(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.GetPaidMessage(String endpoint, String folder, IDownloadConfig config)

Inner Exception:
Exception caught: Null object cannot be converted to a value type.

StackTrace: at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)
Found 0 Paid Messages

Please enter a message URL: https://onlyfans.com/my/chats/chat/209338292/?firstId=4599626761172 Folder for already created Getting Paid Message Exception caught: Error converting value {null} to type 'System.DateTime'. Path 'fromUser.subscribedByExpireDate', line 1, position 18357. StackTrace: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) 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.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) 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.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) 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.JsonSerializer.Deserialize(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.GetPaidMessage(String endpoint, String folder, IDownloadConfig config) Inner Exception: Exception caught: Null object cannot be converted to a value type. StackTrace: at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) Found 0 Paid Messages
Collaborator

I meant change the logging level to verbose,attempting the scrape again, and attaching the whole .txt file from the logs directory.

I meant change the logging level to verbose,attempting the scrape again, and attaching the whole .txt file from the logs directory.
Author

Will do. Enabling verbose logging is in the config right?

Will do. Enabling verbose logging is in the config right?
Collaborator

Yes, or from the main menu you can change the logging level. Make sure to try 1.9.19 first, though, there was a change that may help.

Yes, or from the main menu you can change the logging level. Make sure to try 1.9.19 first, though, there was a change that may help.
Owner

Fix for this should be to changed Line 46 in Entities/Messages/SingleMessage.cs. The datatype for the property needs to be changed from DateTime to DateTime? to handle null values .

Fix for this should be to changed Line 46 in Entities/Messages/SingleMessage.cs. The datatype for the property needs to be changed from DateTime to DateTime? to handle null values .
sim0n00ps removed the
needs-info
label 2026-01-06 01:06:00 +00:00
sim0n00ps self-assigned this 2026-01-06 01:06:07 +00:00
melithine added the
triaged-and-escalated
label 2026-01-10 11:02:49 +00:00
sim0n00ps removed their assignment 2026-02-19 18:31:05 +00:00
sim0n00ps added
code-submitted
and removed
triaged-and-escalated
labels 2026-02-19 18:31:24 +00:00
whimsical-c4lic0 added this to the Development Board project 2026-02-19 18:56:56 +00:00
whimsical-c4lic0 moved this to Pending Release in Development Board on 2026-02-19 18:57:05 +00:00
whimsical-c4lic0 moved this to Done in Development Board on 2026-02-27 00:56:28 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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