Coder Social home page Coder Social logo

Comments (7)

TheDon79 avatar TheDon79 commented on July 3, 2024 1

It seems to be, that I am running into the same/a very similar problem. When using Version 1.42.2 deviceClient.SendEventAsync runs into a Timeout and throws an IotHubCommunicationException with Transient network error occurred, please retry. Returning to Version 1.4.0 resolves this issue.

from azure-iot-sdk-csharp.

timtay-microsoft avatar timtay-microsoft commented on July 3, 2024 1

We suspect this is related to a .NET 8 bug in DotNetty (the MQTT library we use). The fix for this bug in DotNetty has been merged and we are working on putting out a new DotNetty release. Once we have released DotNetty, we'll put out a release of this SDK with the new DotNetty version which should resolve this issue.

from azure-iot-sdk-csharp.

timtay-microsoft avatar timtay-microsoft commented on July 3, 2024

Do you see this same behavior on .NET 7 as well? And do you see it when using AMQPS as well?

from azure-iot-sdk-csharp.

fabianmeyer avatar fabianmeyer commented on July 3, 2024

Besides NET8, I only have the NET6 SDK installed, for which the issue does not occur (same duration for 1.42.0 and 1.42.2).
The issue also does not occur when using AMQP with 1.42.2 on NET8.

from azure-iot-sdk-csharp.

TheDon79 avatar TheDon79 commented on July 3, 2024
  • deviceClient.SendEventAsync works in .NET7 with 1.42.2
  • it works in .NET8 with AMQP but not with MQTT (or MQTT_TCP_ONLY)
  • it works in .NET8 with 1.42.0

It seems that the client stops to communicate with the IoT Hub after the Server Hello Done.
grafik

from azure-iot-sdk-csharp.

jenscski avatar jenscski commented on July 3, 2024

Looks like DotNetty is out with new version, I have added direct refereces to DotNetty and it looks like it's working now

<PackageReference Include="DotNetty.Codecs.Mqtt" Version="0.7.6" />
<PackageReference Include="DotNetty.Handlers" Version="0.7.6" />

from azure-iot-sdk-csharp.

timtay-microsoft avatar timtay-microsoft commented on July 3, 2024

This behavior should be fixed in the new release:
https://github.com/Azure/azure-iot-sdk-csharp/releases/tag/2024-03-28

from azure-iot-sdk-csharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.