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

MQTT Channel is Closed / Migrating Sample to .net8 caused an issue #3440

Closed
codeputer opened this issue Mar 9, 2024 · 5 comments
Closed
Labels
bug Something isn't working. .NET 8

Comments

@codeputer
Copy link

codeputer commented Mar 9, 2024

See attached screen shot of the repo that I'm using.

image

i did have some stable code, running for at least 8 months, in which I was using DPS (ProvisioningClient) to provision an IOT device. when I upgraded to .Net8, my testing revealed an error.

I got this sample working as is (.net6) , but used my DPS and IOT service credentials. Then I upgraded the transport and the provisioning client to current versions, and .Net8, and got the following error without any other changes made to the repo.

image
image

I then downgraded to versions in this repo (not sure which NUGET, as I ran out of time) the error disappeared!

Following is a more detailed shot the call stack and error generated - it takes at least 40 seconds or so before it fails.

image

I'm on production issue, and I'm now rolling back to get this working.

@codeputer codeputer added the bug Something isn't working. label Mar 9, 2024
@codeputer
Copy link
Author

Using the sample project from the repo, I made two changes. changed the project to .Net8, and updated the Microsoft.Azure.Devices.Client library from 1.41.2 to 1.42.2 - and it broke the RegisterAsync() method - MQTT Socket Closed after about 40 seconds. Change it back to 1.41.2, and it worked
image

image

@codeputer
Copy link
Author

Need help on this one as its a production issue for me - will try to work around by downgrading my application.

@timtay-microsoft
Copy link
Member

This is likely a dup of #3413. The latest dotnetty library has some compatibility issues with .NET 8 that we are aware of and are working on

@timtay-microsoft
Copy link
Member

Closing as dup

@codeputer
Copy link
Author

codeputer commented Mar 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. .NET 8
Projects
None yet
Development

No branches or pull requests

2 participants