View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008740 | Taler | wallet-core | public | 2024-04-15 19:46 | 2024-04-15 21:53 |
Reporter | sebasjm | Assigned To | Florian Dold | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | assigned | Resolution | open | ||
Product Version | git (master) | ||||
Target Version | 0.12 | ||||
Summary | 0008740: wallet core should return more meaningful error codes for every operation | ||||
Description | instead of returning [1] WALLET_UNEXPECTED_REQUEST_ERROR with an errorResponse from MERCHANT error codes, wallet-core should return a specific error. In this example [1] the error was produce calling `WalletApiOperation.PreparePayForTemplate` In this case we need a new TalerErrorCode WALLET_TEMPLATE_NOT_FOUND and it should be returned for example when the http request returns 404 or 502. But this may be the case of many wallet operations and we should also document the list of error codes (by operation) so the UI can handle them without a generic handler. With this, UI can create custom and internationalized UI on error. [1] { "code": 7005, "when": { "t_ms": 1713179479173 }, "hint": "Unexpected HTTP status 404 in response", "requestUrl": "https://backend.e.netzbon-basel.ch/instances/test/templates/default", "requestMethod": "POST", "httpStatusCode": 404, "errorResponse": { "code": 2000, "hint": "The backend could not find the merchant instance specified in the request.", "detail": "default" } } | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2024-04-15 19:46 | sebasjm | New Issue | |
2024-04-15 19:46 | sebasjm | Status | new => assigned |
2024-04-15 19:46 | sebasjm | Assigned To | => Florian Dold |
2024-04-15 19:55 | sebasjm | Summary | wallet core should return more meaningful error codes => wallet core should return more meaningful error codes for every operation |
2024-04-15 19:55 | sebasjm | Description Updated | |
2024-04-15 21:53 | MarcS | Relationship added | related to 0008544 |