Connect-APS fails with "Autodesk Platform Service (APS) Connection failed"
Issue
When using Connect-APS the connection fails with
Autodesk Platform Service (APS) Connection failed: One or more errors occurred. (Error loading discovery document: Error connecting to https://developer.api.autodesk.com/.well-known/openid-configuration. No such host is known. (developer.api.autodesk.com:443).)
Cause
This can happen if there are port conflicts on the local machine between the callback URL and another program. A common issue would be powerGateServer, which uses 8080 per default.
Solution
You have to resolve the port conflict. The easiest way to do so is to change your callback URL.
Open https://aps.autodesk.com/hubs/
Login to the Autodesk account that hosts your APS app
Change the port in your call back URL to something else than 8080 like 8081
Update the URL in your Connect-APS call and try again