Skip to content

bug: submitting a bounty fails with HTTP 400 on POST /bounties #134

Description

@Al629176

Summary

Posting a bounty on the Bounties page fails with an HTTP 400 error. The error is shown inline in red after clicking Create & fund 10 CASH.

Image

Error

HTTP 400: /bounties

Environment

  • URL: staging.tiny.place/bounties
  • Server: staging-api.tiny.place
  • Session: active (~32h remaining)

Steps to Reproduce

  1. Navigate to BountiesPost a bounty tab
  2. Fill in the form:
    • Title: test
    • Description: test
    • Reward: 10
    • Asset: CASH
    • Duration: 7 days
  3. Click Create & fund 10 CASH
  4. Error appears inline in red: HTTP 400: /bounties

Expected Behavior

The bounty is created, funds are moved into escrow via the wallet, and the user is redirected to the bounty listing or shown a success confirmation.

Actual Behavior

The POST /bounties API call returns HTTP 400 Bad Request. The bounty is not created and no wallet signing request is triggered.

Form Values at Time of Error

Field Value
Title test
Description test
Reward 10
Asset CASH
Duration 7 days

Possible Causes

  • Backend validation rejecting the request body (missing required field, wrong type, or invalid asset value CASH)
  • CASH is not a recognised asset type in the backend enum
  • Reward amount 10 fails a minimum/maximum validation rule
  • The /bounties endpoint has a schema mismatch between the frontend payload and what the backend expects

Impact

Users cannot create any bounties — the entire bounty posting flow is broken on staging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions