Doichain/dapp

DOI-Request: strange error message when mixing up alice@ci-doichain.org and bob@ci-doichain.org

Offen

#86 geöffnet am 01.03.2019

 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (13 Forks)auto 404
bountyenhancementgood first issuehelp wantedtest

Repository-Metriken

Stars
 (6 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

when calling: curl X POST -H "X-Auth-Token: hUTFFfeYQSIMJhNobA2P-HsfaQEuCTBlOzK2y_wwpwy" -H "X-User-Id: zSmEzzCEN2x8RMuDJ" http://localhost:3000/api/v1/opt-in -H "Content-Type: application/json" -d '{"recipient_mail":"**alice**@ci-doichain.org", "sender_mail":"bob@ci-doichain.org"}'

instead of:

curl X POST -H "X-Auth-Token: hUTFFfeYQSIMJhNobA2P-HsfaQEuCTBlOzK2y_wwpwy" -H "X-User-Id: zSmEzzCEN2x8RMuDJ" http://localhost:3000/api/v1/opt-in -H "Content-Type: application/json" -d '{"recipient_mail":"**bob**@ci-doichain.org", "sender_mail":"alice@ci-doichain.org"}'

(mixing up alice@ci-doichain.org with bob@ci-doichain.org - Bob must be the recipient!)

a confusing error message appears on Bob when calling manually the receiving txid

curl -X GET http://172.20.0.9:4000/api/v1/walletnotify?tx=4726aa79ef565a4e9a5ee3be90e16bd83fa56b1fc0aecf364b943fad6577b609
{
  "status": "fail",
  "error": "Error: ENOENT: no such file or directory, uv_cwd [doichain.checkNewTransactions.exception]" 

Please see https://bounties.doichain.org/ how to apply for Doichain bounties.

Contributor Guide