You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
通过SDK访问服务端返回非200的错误后(Bad Request, Internal Server Error ...), SDK会抛出ApiException, 但是构建该异常的message只使用到了用于描述Http Status Code的message, 这会导致打印到日志的的Exception Stack中只有Http Status Code的信息, 而缺少了上层服务的异常信息, 异常消息如下
com.volcengine.ApiException: Bad Request
at com.volcengine.ApiClient.handleResponse(ApiClient.java:980)
at com.volcengine.ApiClient.execute(ApiClient.java:895)
at com.volcengine.filenas.FilenasApi.createMountPointWithHttpInfo(FilenasApi.java:313)
at com.volcengine.filenas.FilenasApi.createMountPoint(FilenasApi.java:299)
问题描述
通过SDK访问服务端返回非200的错误后(Bad Request, Internal Server Error ...), SDK会抛出ApiException, 但是构建该异常的message只使用到了用于描述Http Status Code的message, 这会导致打印到日志的的Exception Stack中只有Http Status Code的信息, 而缺少了上层服务的异常信息, 异常消息如下
当出现非API契约的问题时, 例如(ResourceLimit, ApiRateLimit ..., 这会加大问题的排查难度)
期望
message需要增加上层服务的异常信息, 这样能够更直观地发现问题
The text was updated successfully, but these errors were encountered: