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

Parsing errors while DTFx processes the messages from queue in latest version of DurableTask.AzureStorage 2.0.0-rc.2. #1141

Open
Iamjithender opened this issue Jul 17, 2024 · 6 comments

Comments

@Iamjithender
Copy link
Member

Iamjithender commented Jul 17, 2024

Hii,
We started consuming the 2.0.0-rc.2 version of DurableTask.AzureStorage nuget as previous versions contain reference of the deprecated versions of "WindowsAzure.Storage".

After consuming the nuget we deployed in the ECY Canary region for testing. After deployment, we started encountering the Json parsing issues while dtfx processes the queue messages. "Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: e. Path '', line 0, position 0.".

Full exception message with stack trace:

An error occurred while processing messages on springboot-workitems: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: e. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   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[T](JsonReader reader)
   at DurableTask.AzureStorage.Utils.DeserializeFromJson[T](JsonSerializer serializer, String jsonString) in /_/src/DurableTask.AzureStorage/Utils.cs:line 202
   at DurableTask.AzureStorage.MessageManager.DeserializeQueueMessageAsync(QueueMessage queueMessage, String queueName, CancellationToken cancellationToken) in /_/src/DurableTask.AzureStorage/MessageManager.cs:line 176
   at DurableTask.AzureStorage.Messaging.WorkItemQueue.GetMessageAsync(CancellationToken cancellationToken) in /_/src/DurableTask.AzureStorage/Messaging/WorkItemQueue.cs:line 48

We started encountering these issues after updating to the "2.0.0-rc.2", prior to that we didn't observe these issues. We observed that a periodic workflow which we run every 5 mins is not getting executed but there are few successful executions of other workflows as well.

Let me know if you need anything further to debug this issue.

@saurav-microsoft
Copy link

Can you also attach the message from the queue ?

@davidmrdavid
Copy link
Collaborator

There's a known parsing error in the -rc.2 package - in particular, it is unable to de-serialize messages generated by the 1.x package. Can you try upgrading to rc.3, that should be backwards-compatible.

Please note that the -rc packages are not production ready, so I cannot recommend using them in production. The GA package of the 2.x track is about to be released. I'd hold off

@Iamjithender
Copy link
Member Author

Iamjithender commented Jul 19, 2024

Thanks @davidmrdavid for updating us with the details.
Okay sure, we will wait for 2.x GA version package release.

@davidmrdavid Can you share the ETA for the release for 2.x version?

@Iamjithender
Copy link
Member Author

Can you also attach the message from the queue ?

Hey Saurav,
I couldn’t get the message from queue, I took jit access and tried accessing the queue but I couldn’t find any messages in queue.

@saurav-microsoft
Copy link

@Iamjithender I had a similar issue as well. Just wanted to take a look at your message and see if the issue is same,
s
If your queue message was hidden (controlled by visibility timeout config), it will become visible when the timeout happens

@nytian
Copy link
Collaborator

nytian commented Jul 29, 2024

Hey, thanks for using the DTFx package. Just an update that the GA version of DTFx.AzureStorage v2 is published in nuget: https://www.nuget.org/packages/Microsoft.Azure.DurableTask.AzureStorage/2.0.0. Please let me know if you have any problem with the package.

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

No branches or pull requests

4 participants