-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running list of http RPC bugs #1721
Comments
Using this issue to track the work on the endpoints that haven't been refactored to use save
remove
OKAY TO NewHTTPRequestHandler-ize PeerList
Pull UnpackHandler
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Known RPC bugs:
Get - rpc doesn't error but no response
Problem:
The http api is expecting a
GetResponse
over the wire (since that is the return type of thedataset.get
method). However, our api handler does further adjustments to theGetResponse
depending on what the user requested in their inital request. Eg, if "meta" is selected, only the meta section is returned. There is pagination if the body was requested, etc. So, unlike most of our endpoints, our api response is not the same as our lib response params. When Dispatch tries to decode the response into aGetResponse
, it can't because the response isn't shaped likeGetResponse
.Potential solution: We may need to unify the possible get responses & figure out how to represent all variations in a
GetResponse
, and have thelib.Get
method return only what is needed, rather than returning the entire dataset and having the api and cmd layers narrow down what needs to be shown.The text was updated successfully, but these errors were encountered: