Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*-CosmosDB* Functions Returns Incorrect Exception on PowerShell 5.x or lower #186

Closed
PlagueHO opened this Issue Oct 19, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@PlagueHO
Copy link
Owner

PlagueHO commented Oct 19, 2018

Instead of reporting the correct error, it reports:
Unable to find type [Microsoft.PowerShell.Commands.HttpResponseException]

This is because this class is not available on Windows PowerShell, only PowerShell Core.

Caused by line: https://github.com/PlagueHO/CosmosDB/blob/dev/src/lib/utils.ps1#L566

@PlagueHO PlagueHO self-assigned this Oct 19, 2018

@PlagueHO

This comment has been minimized.

Copy link
Owner Author

PlagueHO commented Oct 24, 2018

This was fixed and released in 2.1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.