View Issue Details

IDProjectCategoryView StatusLast Update
0007969Talerwallet-corepublic2023-11-29 00:30
ReporterMarcS Assigned ToFlorian Dold Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PriorityhighSeveritymajorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.9.4 
Target Version0.9.3Fixed in Version0.9.3 
Summary0007969: When the server is down, wallet-core shouldn't throw a JSON error from downloadExchangeKeysInfo
DescriptionPossibly unhandled promise rejection: Error: Couldn't parse JSON format from error response
    at TalerError (/Users/ms/Developer/gnuTaler/quickjs-tart/taler-wallet-core-qjs.mjs:12095)
    at fromDetail (/Users/ms/Developer/gnuTaler/quickjs-tart/taler-wallet-core-qjs.mjs:12104)
    at readTalerErrorResponse (/Users/ms/Developer/gnuTaler/quickjs-tart/taler-wallet-core-qjs.mjs:12471)
    at readSuccessResponseJsonOrErrorCode (/Users/ms/Developer/gnuTaler/quickjs-tart/taler-wallet-core-qjs.mjs:12515)
    at readSuccessResponseJsonOrThrow (/Users/ms/Developer/gnuTaler/quickjs-tart/taler-wallet-core-qjs.mjs:12561)
    at downloadExchangeKeysInfo (/Users/ms/Developer/gnuTaler/quickjs-tart/taler-wallet-core-qjs.mjs:25907)
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Florian Dold

2023-11-14 12:57

manager   ~0020640

Not sure what we should do here, as the server *gives* us a response, and it's not valid JSON. The server (exchange) is down, but the reverse proxy (nginx) still gives us a valid HTTP response.

I guess we could be stricter with the response handling: If the response headers don't indicate it's JSON, we don't parse it and instead report that the server did not even respond with JSON.

@MarcS: Would that fix this bug for you or do you think something entirely different should happen here?

Florian Dold

2023-11-21 10:52

manager   ~0020653

Fixed in wallet-core.git:342df60a.

We now give a better error message when the error response didn't even contain JSON.

Issue History

Date ModifiedUsernameFieldChange
2023-10-26 12:50MarcSNew Issue
2023-10-26 12:50MarcSStatusnew => assigned
2023-10-26 12:50MarcSAssigned To => Florian Dold
2023-11-14 12:57Florian DoldStatusassigned => feedback
2023-11-14 12:57Florian DoldNote Added: 0020640
2023-11-14 13:00Florian DoldAssigned ToFlorian Dold => MarcS
2023-11-15 11:11Florian DoldAssigned ToMarcS => Florian Dold
2023-11-21 10:52Florian DoldStatusfeedback => informing
2023-11-21 10:52Florian DoldResolutionopen => fixed
2023-11-21 10:52Florian DoldNote Added: 0020653
2023-11-29 00:28Christian GrothoffTarget Version0.9.4 => 0.9.3
2023-11-29 00:29Christian GrothoffFixed in Version => 0.9.3
2023-11-29 00:30Christian GrothoffStatusinforming => closed