View Issue Details

IDProjectCategoryView StatusLast Update
0009243Talerwallet-corepublic2025-01-14 23:42
ReporterMarcS Assigned ToMarcS  
PrioritynormalSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
Target Version1.0 
Summary0009243: When an Exchange is not reachable, wallet-core should return "not reachable" instead of some JSON error
DescriptionHEAD was down, I tried to get the ToS, but got this error:
WalletBackendResponseError(code: 7002, when: Optional(taler_swift.Timestamp.milliseconds(1727801238236)), hint: "Couldn\'t parse JSON format from error response", requestUrl: Optional("https://exchange.head.taler.net/terms"), httpStatusCode: Optional(502), errorResponse: nil, message: nil)

wallet-core should return that the Exchange couldn't be reached, but not some obscure JSON error.
TagsNo tags attached.

Activities

Florian Dold

2025-01-14 23:41

manager   ~0023984

The wallet now throws the right GANA code (WALLET_EXCHANGE_UNAVAILABLE = 7032) with {exchangeBaseUrl: string, innerError?: TalerErrorDetail} instead.

commit f119f4aae40623bb0c15f61f58a65a40ce233eab (HEAD -> master, origin/master, origin/HEAD)
Author: Florian Dold <florian@dold.me>
Date: Tue Jan 14 23:40:43 2025 +0100

    wallet-core: use proper GANA error code when ToS download fails

Issue History

Date Modified Username Field Change
2024-10-02 16:25 MarcS New Issue
2024-10-02 16:25 MarcS Status new => assigned
2024-10-02 16:25 MarcS Assigned To => Florian Dold
2024-10-02 17:05 Florian Dold Target Version => 1.0
2025-01-14 23:41 Florian Dold Note Added: 0023984
2025-01-14 23:41 Florian Dold Status assigned => feedback
2025-01-14 23:42 Florian Dold Assigned To Florian Dold => MarcS