EndpointUri and 401 (Unauthorized) handling
Hello,
I've tried this module with OData for Citrix Virtual Apps and Desktops controller. It fails to generate modules with error message: Metadata specifed at the URI 'http://CTX-XDC-001.cdz.lan/Citrix/Monitor/Odata/v3/Data/$metadata' does not exist. No output will be written.
After I've started testing your code, it turned out that Invoke-WebRequest returns an error 401 unauthorized: Invoke-WebRequest : The remote server returned an error: (401) Unauthorized.
It would be helpful if in your catch statement in Microsoft.PowerShell.ODataUtilsHelper.ps1 (line 364) you would report access permissions error instead of generic message about endpoint not being found.
Also, there is a typo in Microsoft.PowerShell.ODataUtilsStrings.psd1. For MetadataUriDoesNotExist, it should say "Metadata specified", not "Metadata specifed"
Thanks!