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

Provide more intuitive error message when JFrog feed is inactive #1427

Merged

Conversation

anamnavi
Copy link
Member

PR Summary

PR Context

Resolves #1424

PR Checklist

errRecord = new ErrorRecord(
exception: e,
"GetResponsesFromRegistrationsResourceFailure",
if (e.Message.Contains("'<' is an invalid start of a value"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anyway we can check the response so that if it can catch malformed responses more generically? Like using JsonDocument.TryParse() and throwing recording an error if that fails?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also can we check what the type of the exception is. That might be helpful too.

@anamnavi anamnavi merged commit c554e24 into PowerShell:master Oct 4, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Artifactory with v3 endpoint failing
3 participants