vmware / vmware/singleton

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

Open
#1,597 3 comments 0 reactions 1 assignee View on GitHub

@tigershi is already working on this.

Since Mar 11, 2022.

area/java-service kind/feature priority/medium
Dominant language
Java
Stars
72
Forks
69
Avg merge
23h 32m
Merged PRs (30d)
4

Description

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
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.