question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting Unprocessable Entity when calling transactions/unconfirmed

See original GitHub issue

Expected 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vasildcommented, Dec 5, 2019

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 as id is everything that follows the last / and before ? - that is just get 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.

0reactions
ghostcommented, Dec 5, 2019

This issue has been closed. If you wish to re-open it please provide additional information.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found