View Issue Details

IDProjectCategoryView StatusLast Update
0008740Talerwallet-corepublic2024-04-15 21:53
Reportersebasjm Assigned ToFlorian Dold  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Product Versiongit (master) 
Target Version0.14 
Summary0008740: wallet core should return more meaningful error codes for every operation
Descriptioninstead 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": "",
  "requestMethod": "POST",
  "httpStatusCode": 404,
  "errorResponse": {
    "code": 2000,
    "hint": "The backend could not find the merchant instance specified in the request.",
    "detail": "default"
TagsNo tags attached.


related to 0008544 assignedavalos better error handling for iOS wallet 


There are no notes attached to this issue.

Issue History

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