Skip to content

Transferring suggested min or max amount to spending results in Client error: Invalid request format #424

@piotr-iohk

Description

@piotr-iohk

Observed while testing on the backend from e2e tests (see: bitkit-e2e-tests/docker).

Steps to reproduce:

  1. Have a fresh wallet and fund it with, say, 1 000 000 btc.
  2. Try to transfer suggested min or max amount to spending. (Or some other amount close to min or max)

Actual:
Transfer results with an error toast message:

DataException='errorDetails=Failed to create order with Blocktank client: Client error: Invalid request format'

In the log there is:

2025-10-01 13:19:49.420 UTC] INFOℹ️: Buying channel with lspBalanceSat: 6232, channelExpiryWeeks: 6, options: CreateOrderOptions(clientBalanceSat=3116, lspNodeId=null, couponCode=, source=bitkit-android, discountCode=null, zeroConf=true, zeroConfPayment=false, zeroReserve=true, clientNodeId=039d9fd563228cdd6fcd6019e743200e5f41783e2c54600f677627c2899411f36d, signature=d6ee198bdcqwaeeksnu81fj5crhatu5pspoqyf8npn6qz8n5hr3eqyhnekwwx6msgnfgr8pt5a37g1sdws6fo13dcq4pp3aqdahdiyn9, timestamp=2025-10-01T13:19:49Z, refundOnchainAddress=null, announceChannel=false) - BlocktankRepo [BlocktankRepo.kt:225]
[2025-10-01 13:19:49.473 UTC] ERROR❌️: ServiceQueue.CORE error [DataException='errorDetails=Failed to create order with Blocktank client: Client error: Invalid request format'] [ServiceQueue.kt:50]
[2025-10-01 13:19:49.474 UTC] ERROR❌️: Failed to create order [AppError='DataException='errorDetails=Failed to create order with Blocktank client: Client error: Invalid request format''] - BlocktankRepo [BlocktankRepo.kt:240]

Expected:
Successful transfer.

See video:

transfer-errors.webm

See exemplary logs:

logs_invalid_requests.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions