dusk-network / dusk-network/explorer
explorer: Invalid public account address throws 500 error on TX fetch
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When entering an invalid BLS public account address on the explorer, the balance component handles it correctly and displays "N/A", indicating the account doesn't exist or is malformed. However, the transaction retrieval still proceeds and results in a HTTP 500 error.
This happens because the frontend still attempts to fetch transactions for an invalid account.
To Reproduce
- Open the account page on the explorer by using a malformed BLS key.
- Observe the 500 error being propagated to the web page in the transaction overview, and the balance shown correctly as
N/A.
Expected behaviour
If the input is not a valid BLS public key we should:
- Not attempt to fetch transactions
- Show a clear message like: "Invalid Public Account Address"
Logs/Screenshot
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the explorer account page using the malformed BLS key from the reproduction steps and trace the transaction request separately from the balance handling. Confirm that invalid input avoids the transaction fetch, displays an "Invalid Public Account Address" message, and no longer propagates a 500 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100