View Issue Details

IDProjectCategoryView StatusLast Update
0008740Talerwallet-corepublic2024-09-17 00:07
Reportersebasjm Assigned ToFlorian Dold  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Product Versiongit (master) 
Target Version1.2 
Summary0008740: wallet core should return more specific error codes for failed HTTP requests [scope-unclear]
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": "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"
  }
}
TagsNo tags attached.

Relationships

related to 0008544 closedavalos better error handling for iOS wallet 

Activities

Florian Dold

2024-08-01 01:22

manager   ~0022895

Not really clear where this is applicable.

If would of course be nice to have more accurate error codes for some situations, but we can't have one wallet-core EC for every server-side EC.

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
2024-08-01 01:22 Florian Dold Summary wallet core should return more meaningful error codes for every operation => wallet core should return more meaningful error codes for every operation [scope-unclear]
2024-08-01 01:22 Florian Dold Note Added: 0022895
2024-08-01 01:23 Florian Dold Summary wallet core should return more meaningful error codes for every operation [scope-unclear] => wallet core should return more specific error codes for failed HTTP requests [scope-unclear]
2024-08-01 01:23 Florian Dold Target Version 0.14 => 1.0 stretch goals
2024-09-17 00:07 Christian Grothoff Target Version 1.0 stretch goals => 1.2