Getting Unprocessable Entity when calling transactions/unconfirmed
See original GitHub issueExpected Behavior
Get the unconfirmed tx or something that tells me that tx is confirmed instead.
Current Behavior
Getting error:
{"statusCode":422,"error":"Unprocessable Entity","message":"child \"id\" fails because [\"id\" must only contain hexadecimal characters]"}
Steps to Reproduce
curl -X GET “https://ark-server.io/api/transactions/unconfirmed/get?id=5f2936a50f283cd6f05dea73c25c10e1172a4d172e6f8855752330341413e1d5” -H “API-Version: 2”
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Why I receive 422( Unprocessable Entity) error when trying to ...
422 - unprocessable entity means that the data you are posting to the server is considered malformed or otherwise invalid. · We see...
Read more >How to Resolve Failed Payments - LoveAdmin - Zendesk
This error occurs when the payer bank is unable to process the payment for various reasons such as account closed, or the mandate...
Read more >How To Deal With Unconfirmed Blockchain Transactions?
Crypto transactions are recorded in a ledger and confirmed by miners for validity. But sometimes a failed crypto transaction can happen.
Read more >Orders API - PayPal Developer
If the order is already paid, the order cannot be canceled and the request returns the HTTP 422 Unprocessable Entity status code with...
Read more >Solved: Getting an unprocessable entity - Shopify Community
Solved: We are trying to refund with the admin API, but we are getting an unprocessable entity error $result = $shopify->call([ 'METHOD' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Indeed according to the docs the usage is wrong: https://api.ark.dev/public-rest-api/endpoints/transactions#endpoint-4
However the returned error message is extremely confusing. The reason for this is that in the mistaken url:
.../unconfirmed/get?id=5f2936a50f...
the part that is interpreted asid
is everything that follows the last/
and before?
- that is justget
and it is not only hex chars.I have opened a draft PR to include the input in the error message in the hopes to make it more clear: https://github.com/ArkEcosystem/core/pull/3326, I have been confused myself in other occasions by those validation messages that lack the “wrong” input.
This issue has been closed. If you wish to re-open it please provide additional information.