Skip to content

payjoin-cli receiver returns a 500 error after a successful payjoin. #1154

Closed

Description

@benalleng

Is there an existing issue for this?

  • I have searched the existing issues

Which crate is this issue for?

payjoin-cli

How did you obtain this crate?

Compiled from source

What version of the selected crate are you using?

payjoin 1.0.0-rc

Current behavior

The cli receiver returns a 500 internal server error possibly related to the bitcoind error pointed out in the discord

i think it is a bitcoin rpc error: https://github.com/alpenlabs/bitcoind-async-client/blob/2f3f655d212202babc39e73d5a25c41a631a792a/src/error.rs#L40
[11:46 AM]
not the most helpful display representation... can you check your bitcoind logs?

Expected behavior

The receiver should stop polling gracefully once a payjoin is completed.

Steps to reproduce

complete a payjoin-cli v2-to-v2 send receive flow

Relevant log output

...
Response successful. Watch mempool for successful Payjoin. TXID: 872fec8edc0e63c925c9251687d54e4237
b676a6d0586ba4b03eb3a808928592
Error: Transient error: Implementation error: Obtained failure status(500): Internal Server Error

Stack backtrace:
   0: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
             at /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.99/src/b
acktrace.rs:27:14
   1: <core::result::Result<T,F> as core::ops::try_trait::FromResidual<core::result::Result<core::c
onvert::Infallible,E>>>::from_residual
             at /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust
/library/core/src/result.rs:2174:27
   2: payjoin_cli::app::v2::App::monitor_payjoin_proposal::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:741
:17
   3: payjoin_cli::app::v2::App::send_payjoin_proposal::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:732
:66
   4: payjoin_cli::app::v2::App::finalize_proposal::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:713
:57
   5: payjoin_cli::app::v2::App::apply_fee_range::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:697
:53
   6: payjoin_cli::app::v2::App::contribute_inputs::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:688
:51
   7: payjoin_cli::app::v2::App::commit_outputs::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:674
:53
   8: payjoin_cli::app::v2::App::identify_receiver_outputs::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:665
:50
   9: payjoin_cli::app::v2::App::check_no_inputs_seen_before::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:649
:61
  10: payjoin_cli::app::v2::App::check_inputs_not_owned::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:636
:63
  11: payjoin_cli::app::v2::App::check_proposal::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:620
:58
  12: payjoin_cli::app::v2::App::read_from_directory::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:601
:50
  13: payjoin_cli::app::v2::App::process_receiver_session::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:558
:67
  14: <payjoin_cli::app::v2::App as payjoin_cli::app::App>::receive_payjoin::{{closure}}
             at /home/user/Documents/Coding/Projects/rust-payjoin/payjoin-cli/src/app/v2/mod.rs:274
:14
  15: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust
/library/core/src/future/future.rs:133:9
  16: payjoin_cli::main::{{closure}}

Operating system and version

NixOS 25.05

Activity

  1. added
    bug
    on Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions