Azure-iot-sdk-csharp: Module/Device using v1.21.0 cannot connect to EdgeHub over AMQP

Created on 31 Jul 2019  路  1Comment  路  Source: Azure/azure-iot-sdk-csharp

Description of the issue:

If a module or a device uses the C# SDK v1.21.0 to connect to EdgeHub over AMQP or AmqpWs, the connection fails with the error "Cbs message missing audience property". This seems to be a regression from 1.20.3 (where the issue does not repro).

Code sample exhibiting the issue:

var mc = ModuleClient.CreateFromConnectionString(connStr, TransportType.Amqp_Tcp_Only);
await mc.OpenAsync();

Console log of the issue:

IotHubException: Put token failed. status-code: 400, status-description: Cbs message missing audience property.

bug

Most helpful comment

Looks like this was a bad SDK nuget cached on my machine. Clearing the cache fixed the issue. Closing it.

>All comments

Looks like this was a bad SDK nuget cached on my machine. Clearing the cache fixed the issue. Closing it.

Was this page helpful?
0 / 5 - 0 ratings