Repository navigation
Default RPC pool: add techcoderx.com and hiveapi.actifit.io back; SSR route: tag upstream failures UPSTREAM - #126
Conversation
Both were removed for serving accounts with posting_json_metadata stripped. Re-checked 2026-11-19: metadata identical to api.hive.blog across 113 accounts, 32 with wallet tokens. Listed last; a wider pool spreads the host's per-IP request rate. Closes #125
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
PR Summary by QodoRestore two reverified Hive RPC nodes to the default pool
AI Description
Merge Risk
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can describe a rule in plain language on the Rules page and Qodo drafts it for you |
[Medium impact] The PR appears safe to merge; no new blocking issues were found. SummaryExpands the default RPC pool and separates node failures from proxy failures in SSR responses.
The earlier malformed-reply finding is addressed. No new actionable issues were found. Reviews (4) · Last reviewed commit: "Treat a node reply without a result as a..." · Reviewed by Greptile |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…n failures A lookup that fails because every node failed (timeout, unreachable, HTTP error, unusable body) now answers 502 X-Ssr-Cache: UPSTREAM. The proxy's own failures (fill queue full, fill expired in the queue, an unexpected exception) keep 502 UNAVAILABLE, so a consumer's breaker can open on an overloaded proxy without opening on a partly down pool. Closes #127
A node answering valid JSON that is not a JSON-RPC object ([], 5, null) threw InvalidOperationException while the reply was read, and an error with a non-string message or a bare string error threw too. Neither was a node failure, so the SSR route tagged them UNAVAILABLE (the proxy's own failure) instead of UPSTREAM. A non-object body is now a node failure; an error in any shape is the node's own RPC error. Unexpected local exceptions stay separate.
{} or an envelope with neither error nor result read as a null result,
which the SSR fill cached as a successful answer and no other node was
asked. A missing result is now a node failure; an explicit
"result": null is still an answer. Both malformed shapes skip the
same-node retry, as the existing malformed-result path does.
Closes #125. Closes #127.
What
Adds
https://techcoderx.comandhttps://hiveapi.actifit.ioback to the end ofHiveClients.DefaultNodes, which is also the SSR read-through cache's pool. The code comment keeps the history and the check to run.Also (#127): a lookup that fails because the node pool failed now answers
502taggedX-Ssr-Cache: UPSTREAM. That covers every node exhausted by a timeout, an unreachable node, an HTTP error or an unusable body. The proxy's own failures keep502 UNAVAILABLE: fill queue full, fill expired in the queue, or an unexpected exception. Before, both answeredUNAVAILABLE, so the SDK breaker (ecency/vision-web#2150) could not open on an overloaded proxy without also opening on a partly down pool. Stats still count both undererror. Until the SDK change ships, the new tag is counted as a plain 502, as today.Malformed node replies now count as node failures, so they get
UPSTREAMrather thanUNAVAILABLE:[],5,null) used to throwInvalidOperationExceptionwhile the reply was read.errornorresult({}) used to be read as anullresult. The SSR fill cached that as a successful answer, and no other node was asked. An explicit"result": nullis still an answer.errorin any shape (non-stringmessage, bare string) is the node's own RPC error, relayed as before instead of throwing.Why
Three of the six nodes answer a busy host's calls with 429 almost every time, so its per-IP rate falls on the other three. Two more nodes spread it.
Both were removed for stripping
posting_json_metadata. Re-checked 2026-11-19 against api.hive.blog:tokensRisk
GetAccounts, which still prefers a node that serves metadata (a bounded probe).condenser_api.get_accountsandbridge.get_profile(s)reads carry no such preference. If either node regressed, rendered profile pages would show blank metadata. A preference there costs extra calls on accounts that have no metadata, and those calls go to an already throttled pool, so it is left out on purpose.Tests (test first)
HiveRpcFailoverTests.DefaultPool_CarriesTheReverifiedNodeswas red before the change (dotnet test --filter DefaultPool: 1 failed) and is green after.SsrRpcTests.A_failed_node_pool_answers_502_UPSTREAM_and_the_proxys_own_failure_502_UNAVAILABLEandUnreachable_node_is_reported_as_an_upstream_failurefailed to compile before (noUpstreamoutcome) and pass after.SsrRpcTests):A_well_formed_JSON_answer_that_is_not_an_RPC_envelope_is_an_upstream_failure(6 cases)An_RPC_error_in_an_unexpected_shape_is_still_the_nodes_own_error(2 cases)An_explicit_null_result_is_still_an_answerandA_node_that_stalls_mid_body_is_an_upstream_timeoutguard the neighbouring cases.AllNodesMalformed_ThrowsNamingTheNodenow asserts "unusable" plus the node URL, since the result-less reply is caught before validation.