Fix resolve for failed URIs
See original GitHub issueThe Issue
When resolving a list of URIs, an error message should be returned for each failed URI. The app does not expect an empty return and fails to process these cases.
Request: {"jsonrpc":"2.0","method":"resolve","params":{"uris":["lbry://test12"]}}
Before:
{
"jsonrpc": "2.0",
"result": {
"lbry://testing1233": {
"error": "URI lbry://testing1233 cannot be resolved"
}
}
}
Now:
{
"jsonrpc": "2.0",
"result": {}
}
Request: {"jsonrpc":"2.0","method":"resolve","params":{"uris":["lbry://test12","lbry://i-m-angry-and-i-smell-bad-door-monster"]}}
Before:
{
"id": null,
"jsonrpc": "2.0",
"result": {
"lbry://i-m-angry-and-i-smell-bad-door-monster": {
"certificate": {
"address": "bYNbK1Pe4BMryn9FXtdzYTbttYCG54fchF",
"amount": 0.01,
....
},
"lbry://test12": {
"error": "URI lbry://test12 cannot be resolved"
}
}
}
Now:
{
"id": null,
"jsonrpc": "2.0",
"result": {
"lbry://i-m-angry-and-i-smell-bad-door-monster": {
"certificate": {
"address": "bYNbK1Pe4BMryn9FXtdzYTbttYCG54fchF",
"amount": 0.01,
....
}
}
}
System Configuration
- LBRY Daemon version:
- LBRY App version:
- LBRY Installation ID:
- Operating system:
Anything Else
Screenshots
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to Fix the 414 Request-URI Too Large Error - Kinsta
The 414 Request-URL Too Large error is a critical configuration issue somewhere between your browser and a server. Here's how to fix it....
Read more >Failed to send failure response for uri - how to solve ... - Opster
This guide will help you check for common problems that cause the log ” Failed to send failure response for uri ” to...
Read more >How to Fix the 414 Request-URI Too Large Error - YouTube
Ever seen the "414 Request- URI Too Large" error pop up? Tackle it with no fear thanks to this guide Subscribe: ...
Read more >Understanding and fixing the "Cannot resolve a Relative URI ...
I'm noticing that arq from the Jena project handles this fine without feeding it the data file via the --data switch when only...
Read more >How do I resolve a HTTP 414 "Request URI too long" error?
Show activity on this post. I have a simple workaround. Suppose your URI has a string stringdata that is too long. You can...
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
when the claimId is valid (or partial) but does not match the name I get an internal server error
when I add a random character in front of the partial claimId, I get the proper error
This is fixed.