Azure / Azure/azure-iot-hub-node

Started receiving 'error trying to connect' issue creating new device in IoTRegistry

Open
#41 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Hey, we had some code that was previously working against our IoT Hubs that had minTlsVersion set to 1.2, but we had to remove that in order to support more regions with our product. After removing the minTlsVersion setting, now the IoTRegistry client isn't working.

here is our simple code that previously worked:
```
const iotHubConnStr =
`{primaryConnStrFromAzurePortal}`;

const iotRegistry = IoTRegistry.fromConnectionString(iotHubConnStr);


await iotRegistry.get('sim000001');
```

And the error that we are now getting is:
```
error: TypeError: error sending request for url (https://{iot-hub-name}.azure-devices.net/devices/sim000001?api-version=2021-04-12): error trying to connect: An existing connection was forcibly closed by the remote host. (os error 10054)
```

Thanks for any help on what we might be missing!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.