Skip to content

Handle resp nil case to avoid npd in retryable http client#1474

Merged
MuweiHe merged 1 commit intomainfrom
retry-nil-resp
Oct 20, 2022
Merged

Handle resp nil case to avoid npd in retryable http client#1474
MuweiHe merged 1 commit intomainfrom
retry-nil-resp

Conversation

@MuweiHe
Copy link
Contributor

@MuweiHe MuweiHe commented Oct 19, 2022

Checklist

  1. [CRUCIAL] Is the change for CP or CCloud functionalities that are already live in prod?
    • yes: ok

What

https://confluentinc.atlassian.net/browse/CLI-1657?focusedCommentId=1144768
When response from the retryable client call is nil but err is not nil, cli panic on that line due to npd. add a if check here.

References

Test & Review

@MuweiHe MuweiHe marked this pull request as ready for review October 19, 2022 23:55
@MuweiHe MuweiHe requested a review from a team as a code owner October 19, 2022 23:55
Copy link
Member

Choose a reason for hiding this comment

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

👍

@MuweiHe MuweiHe merged commit 791c9ec into main Oct 20, 2022
@MuweiHe MuweiHe deleted the retry-nil-resp branch October 20, 2022 18:14
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.

2 participants