View Issue Details

IDProjectCategoryView StatusLast Update
0009703Talerexchangepublic2025-04-07 15:02
Reporterreynir Assigned To 
PrioritynormalSeveritytextReproducibilityalways
Status confirmedResolutionreopened 
Product Version0.14 
Target Versionpost-1.0 
Summary0009703: taler-exchange-wire-gateway-client --debit-history fails with 404
DescriptionI set up libeufin-bank and am working on setting up taler-exchange. In section 7.6.1 <https://docs.taler.net/taler-exchange-manual.html#exchange-bank-account-configuration> I am encouraged to run this snippet to test my setup:

    taler-exchange-wire-gateway-client \
      --section exchange-accountcredentials-1 --debit-history

This fails with 404 not found in my configuration. The libeufin-bank reports that the endpoint is unknown:

Apr 07 09:41:30 taler-exchange libeufin-bank[461]: 07-Apr-2025T09:41:30.385 INFO libeufin-bank - 404 GET /history/outgoing 0ms: GENERIC_ENDPOINT_UNKNOWN There is no endpoint defined for the URL provided by the client. Check if you used the correct URL and/or file a report with the developers of the client software

If I follow the manual more strictly taler-exchagne-wire-gateway-client fails with an assertions because the path in the URL does not end with a slash. I have attempted various paths with no success. The most promising is: /accounts/exchange/taler-wire-gateway/ which fails with 401 and a hint that "Authorization method 'Basic' is not supported". The account I created is called "exchange". This path was guessed by grepping libeufin source code.

The assertion is this:

    2025-04-07T09:42:39.348080+0200 taler-wire-gateway-client-4883 ERROR Base URL `http://taler-bank/taler-wire-gateway/Exchange' does not end with '/', cannot join with `history/outgoing?delta=-10'
    2025-04-07T09:42:39.348094+0200 taler-wire-gateway-client-4883 ERROR Assertion failed at bank_api_debit.c:290.
    Could not request the debit transaction history.
Additional InformationI put the "exchange" category. Other candidate categories are documentation and libeufin-bank
TagsNo tags attached.

Activities

Christian Grothoff

2025-04-07 10:32

manager   ~0024410

Yes, the example is wrong / very outdated. I have now fixed it in 006c3bbe..9017336e:

- WIRE_GATEWAY_URL = https://bank.demo.taler.net/taler-wire-gateway/Exchange
+ WIRE_GATEWAY_URL = https://bank.demo.taler.net/accounts/exchange/taler-wire-gateway/

(Note that it might be "Exchange" still, depending on the username you used at the bank).

Thanks for reporting!

reynir

2025-04-07 10:37

reporter   ~0024411

Hi! Thanks for fixing the documentation quickly. As mentioned I guessed that URL by grepping the libeufin-bank source code. However, it then fails with 401 and a body {
  "code": 40,
  "hint": "Authorization method 'Basic' not supported"
}

Can we address this in the same issue?

Christian Grothoff

2025-04-07 10:44

manager   ~0024412

Hmm. We can address this in the same issue, probably not at the same speed ;-).
Can you try setting the
PWD_AUTH_COMPAT=YES
option in the libeufin-bank configuration (and re-start the bank)? *IF* that is the issue, well, then there are two fixes:
1) put this into the documentation, and
2) eventually we should implement token auth in the taler-exchange-wire-gateway-client.
But it would be great if you could first confirm that that's indeed a fix.

reynir

2025-04-07 10:47

reporter   ~0024413

Thanks! Indeed, that fixed it. For my purposes (just testing) PWD_AUTH_COMPAT=YES is fine. It's unlikely I would have been able to guess this before giving up.

Christian Grothoff

2025-04-07 15:01

manager   ~0024416

taler-docs.git::70d639f6..87ff7614 documents the use of PWD_AUTH_COMPAT=YES. That doesn't *exactly* fix the bug, as we should add support for token auth to the wire gateway client. So I'll leave the bug open for that.

Issue History

Date Modified Username Field Change
2025-04-07 10:18 reynir New Issue
2025-04-07 10:18 reynir Status new => assigned
2025-04-07 10:18 reynir Assigned To => Christian Grothoff
2025-04-07 10:32 Christian Grothoff Note Added: 0024410
2025-04-07 10:32 Christian Grothoff Status assigned => resolved
2025-04-07 10:32 Christian Grothoff Resolution open => fixed
2025-04-07 10:32 Christian Grothoff Fixed in Version => 1.0
2025-04-07 10:32 Christian Grothoff Severity minor => text
2025-04-07 10:32 Christian Grothoff Category exchange => documentation
2025-04-07 10:32 Christian Grothoff Target Version => 1.0
2025-04-07 10:37 reynir Status resolved => feedback
2025-04-07 10:37 reynir Resolution fixed => reopened
2025-04-07 10:37 reynir Note Added: 0024411
2025-04-07 10:44 Christian Grothoff Note Added: 0024412
2025-04-07 10:47 reynir Note Added: 0024413
2025-04-07 10:47 reynir Status feedback => assigned
2025-04-07 15:01 Christian Grothoff Note Added: 0024416
2025-04-07 15:02 Christian Grothoff Assigned To Christian Grothoff =>
2025-04-07 15:02 Christian Grothoff Status assigned => confirmed
2025-04-07 15:02 Christian Grothoff Category documentation => exchange
2025-04-07 15:02 Christian Grothoff Fixed in Version 1.0 =>
2025-04-07 15:02 Christian Grothoff Target Version 1.0 => post-1.0