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

Modifying Kiali Client methods to use getRequestAndUnmarshalInto to avoid masking of errors returned by the server (#6777) #7213

Closed
wants to merge 2 commits into from

Conversation

PrinsonF77
Copy link
Contributor

Describe the change

Kiali client methods would try to unmarshall response from the server without checking the status code. This would mask the actual error sent by the server and make debugging difficult
This PR modifies Kiali Client methods to use getRequestAndUnmarshalInto to avoid masking of errors returned by the server.

Steps to test the PR

Run Integration tests for the backend. Changes in this PR are to methods used by these tests.

Automation testing

N/A

Issue reference

#6777

getRequestAndUnmarshalInto to avoid masking of errors returned by
the server (kiali#6777)
@PrinsonF77 PrinsonF77 closed this Mar 21, 2024
@nrfox
Copy link
Contributor

nrfox commented Mar 22, 2024

@PrinsonF77 this looks good. Was there any reason to close it?

@PrinsonF77
Copy link
Contributor Author

@nrfox The backend integration tests were failing. I closed it so I can make some changes. Tests are passing now but I've raised another pull request here. Didn't realize I could reopen this one

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.

None yet

2 participants