-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix panic when warn is nil #4782
Conversation
pkg/api/api.go
Outdated
@@ -242,6 +242,9 @@ func Respond(w http.ResponseWriter, data interface{}, warnings []error) { | |||
Data: data, | |||
} | |||
for _, warn := range warnings { | |||
if warn == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But when it can be nil? Which endpoint are you calling to reproduce this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need investigate the root cause too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @GiedriusS @yeya24 @ianwoolf , I found the root cause. #4777 (comment) pr: #4805
A pr has been created to solve this problem #4797 |
bf89673
to
de6822d
Compare
Signed-off-by: ian woolf <btw515wolf2@gmail.com>
de6822d
to
e02d1d4
Compare
I have merged a fix here: #4805 |
Thank you for your work, closing this as a fix has been merged |
Signed-off-by: ian woolf btw515wolf2@gmail.com
fix #4777