singleton
singleton copied to clipboard
[REQUIREMENT][service] Optimize CommandLine script debug(--verbase) being able to display more specific error info
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 }
The issue in jira: https://jira.eng.vmware.com/browse/VIP-2757
this issue has fixed in PR https://github.com/vmware/singleton/pull/1538
Since the changes have been reverted by PR https://github.com/vmware/singleton/issues/1599, move it to backlog.