singleton icon indicating copy to clipboard operation
singleton copied to clipboard

[REQUIREMENT][service] Optimize CommandLine script debug(--verbase) being able to display more specific error info

Open tigershi opened this issue 2 years ago • 3 comments

According to the investigation result from Yi Wang (c) and Nannan Yan (c), the issue is caused by inconsistent response object structures from Singleton Service. Please refer to below detailed message:

Singleton Service API: POST/i18n/api/v2/translation/products/{productName}/versions/{version}/locales/{locale}/components/{component}/keys (Post a set of sources)

Inconsistent responses from backend:

Successful response:

{ “response”:{“code”:200,“message”:“OK”,“serverTime”:“”}, “signature”:“”, “data”:“Recieved the sources and comments(please use translation-product-component-api to confirm it).” }

Failed response:

{ “code” : 400, “message” : “The product ‘Testing’ is NOT supported yet!“, “serverTime” : “” }

Please check this issue and make sure the responses from Singleton service are consistent. Expert: { "response": { "code": 400, "message": “The product ‘Testing’ is NOT supported yet!“, "serverTime": "" }, "signature": "", "data": null }

tigershi avatar Mar 11 '22 10:03 tigershi

The issue in jira: https://jira.eng.vmware.com/browse/VIP-2757

tigershi avatar Mar 11 '22 10:03 tigershi

this issue has fixed in PR https://github.com/vmware/singleton/pull/1538

tigershi avatar Mar 11 '22 10:03 tigershi

Since the changes have been reverted by PR https://github.com/vmware/singleton/issues/1599, move it to backlog.

lyiyu66 avatar Apr 20 '22 10:04 lyiyu66