Closed dtjensen closed 5 years ago
@dtjensen Thanks for reporting the issue. Currently we limited the gateway host name length to 64. The error happens since your FQDN(iotedge-devtest.4d4.................) length is 67. So the setup failed. We will investigate and try to figure out the new max length.
In the mean while. You could work around the issue by specify a gateway host name when setting up iotedgehubdev through command line:
iotedgehubdev setup -g
I am aware why I got the error. The error message is clear. I am logging the error because the host name "iotedge-devtest.4d4p0pcxyg0unojsbvyrqks2zd.bx.internal.cloudapp.net" is the default value. I did not set that value. So, by default, it errors. I also stated that when I use the "-l" option to set the hostname to "localhost", it resolves the issue. So, I am only logging the fact that the default hostname is invalid and that causes some of the tooling to error initially.
Thanks @dtjensen , we will update the hostname validation rule in the next release. And will keep you updated when it is released.
@dtjensen The hostname issue was fixed in the latest version. Please pip install --upgrade iotedgehubdev
and try if it works for you now.
When I attempt to setup my local simulator environment, I start by right clicking on my edge device in Azure IoT Toolkit extension and Selecting "Setup IoT Edge Simulator". I get the following error:
Note - I have followed these steps: https://docs.microsoft.com/en-us/azure/iot-edge/how-to-develop-csharp-module. Specifically, I have run the command to set the module credentials to user settings.
The error is avoided if I specify the "-l" option on the CLI which sets the hostname to localhost, but there is not a way to specify that command in the VS Code tooling.
So, I ignore the error and attempt to debug the module. When the debugger launches, I get the following error:
What is the underlying issue here and how can I resolve this?
UPDATE: That host name is shown as the default host name on the usage screen: