-
Notifications
You must be signed in to change notification settings - Fork 748
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
[Merged by Bors] - fix(validator_client): return http 404 rather than 405 in http api #4758
Conversation
Looks good. Lets see if CI passes. Then I'll do some more manual testing, and we can merge. |
FYI, I ran Hmm, there is CI failure. I am not much sure why. |
We can ignore that failure, it's just a flakiness in the tests. I'll double-check with some manual testing then we can merge |
@michaelsproul @chong-he |
It seems ok to me: 0ba06af Do you see any error? As a side note I will be doing some testing on this and hope to get back to you soon |
Tested both GET and POST HTTP and it is all good. I think we are good to merge this @michaelsproul Details: GET: curl -X GET "http://localhost:5062/lighthouse/testing" -H "Authorization: Bearer api-token-0x02d34c396c87ddcc0690e3f6b8f7fe23fdf5f309f8569fe9147dc3bf5f445db587" | jq POST: DATADIR=/var/lib/lighthouse
curl -X POST http://localhost:5062/lighthouse/testing \
-H "Authorization: Bearer $(cat ${DATADIR}/validators/api-token.txt)" \
-H "Content-Type: application/json" \
-d '[
{
"enable": true,
"description": "validator_one",
"deposit_gwei": "32000000000",
"graffiti": "Mr F was here",
"suggested_fee_recipient": "0xa2e334e71511686bcfe38bb3ee1ad8f6babcc03d"
},
{
"enable": false,
"description": "validator two",
"deposit_gwei": "34000000000"
}
]' | jq With {
"code": 405,
"message": "METHOD_NOT_ALLOWED",
"stacktraces": []
} With this PR {
"code": 404,
"message": "NOT_FOUND",
"stacktraces": []
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, lets merge this.
Sorry for the delay, we had a merge-freeze in effect while v4.5.0 was happening.
bors r+ |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed: |
bors r+ |
Pull request successfully merged into unstable. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page.
|
Issue Addressed
Proposed Changes
Filter::recover
to handle rejections specifically as 404 NOT FOUNDPlease list or describe the changes introduced by this PR.
Additional Info
Similar to PR #3836