Skip to content
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

System.ArgumentOutOfRangeException for DateTime.MinValue #411

Closed
DCdeVilliers opened this issue Jun 24, 2024 · 4 comments
Closed

System.ArgumentOutOfRangeException for DateTime.MinValue #411

DCdeVilliers opened this issue Jun 24, 2024 · 4 comments
Assignees
Labels

Comments

@DCdeVilliers
Copy link

System.ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000. (Parameter 'offset')
at System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset)
at System.DateTimeOffset.op_Implicit(DateTime dateTime)
at MsgReader.Mime.Header.Received..ctor(String headerValue)
at MsgReader.Mime.Header.MessageHeader.ParseHeader(String headerName, String headerValue)
at MsgReader.Mime.Header.MessageHeader.ParseHeaders(NameValueCollection headers)
at MsgReader.Mime.Header.HeaderExtractor.ExtractHeadersAndBody(Byte[] fullRawMessage, MessageHeader& headers, Byte[]& body)
at MsgReader.Mime.Message.ParseContent(Byte[] rawMessageContent, Boolean parseBody, Boolean parseHeaders)
at MsgReader.Mime.Message..ctor(Byte[] rawMessageContent, Boolean parseBody)
at MsgReader.Mime.Message..ctor(Byte[] rawMessageContent)
at MsgReader.Mime.Message.Load(Stream messageStream)
at MsgReader.Reader.ExtractToFolder(String inputFile, String outputFolder, ReaderHyperLinks hyperlinks, Nullable`1 messageType, Stream logStream, Boolean includeReactionsInfo)

@Sicos1977
Copy link
Owner

Sicos1977 commented Jun 25, 2024

Can you send me the EML file that is giving this error? If so, then please ZIP it before sending it to [email protected]

My first guess is that there is an invalid date somewhere in the EML file.

@Sicos1977 Sicos1977 self-assigned this Jun 25, 2024
@Sicos1977 Sicos1977 added the bug? label Jun 25, 2024
@DCdeVilliers
Copy link
Author

Can you send me the EML file that is giving this error? If so, then please ZIP it before sending it to [email protected]

My first guess is that there is an invalid date somewhere in the EML file.

Thank you for your prompt response.

I am unfortunately unable to provide you with the EML file, as this exception occurred on a customer's EML file upon communicating with my API, and I do not have access to the customer's data.

My apologies for not being able to assist in this regard.

@Sicos1977
Copy link
Owner

Without something to debug I'm closing your issue. I can't fix something if I don't know what is going wrong.

@Sicos1977
Copy link
Owner

Sicos1977 commented Jun 26, 2024

Should be fixed in version 5.6.2 . Somebody else did sent me a example message that was giving the exact same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants