Closed theghost5800 closed 2 years ago
Thanks for the report. It looks like this is a bug, according to the Process Stats object, the mem_quota
and disk_quota
fields can be null when the data is unavailable so these should likely be removed from the check.
+1 seems like we're being overly strict in our validations. Thanks for the report.
@theghost5800 - Did you want to submit a PR for this? I know you've submitted in the past. If not, that's OK too, and we can queue this up to be fixed.
I find out that if execute http request to start application and after that get stats for application. CF API can return the following response[1] and due to check here it throws the following error[2]. This could be occur for short time during startup of application, after some time if http request is retried, then required fields are properly set but during startup it looks like this fields can be null. Is this check necessary at all? The issue was reproduced using cf-java-client 4.16.0 and CF environment is at API version 3.111.0
[1]
[2]