llamanodes / web3-proxy

Fast loadbalancing and caching proxy for Ethereum or chains with similar JSON-RPC methods
https://llamanodes.com
GNU General Public License v3.0
153 stars 34 forks source link

Handle 404s on protected rpcs #204

Closed BlinkyStitt closed 1 year ago

BlinkyStitt commented 1 year ago

https://github.com/llamanodes/web3-proxy/blob/df12b3dc73587f47923ffadb2f727d59e3b4e994/web3_proxy/src/app/mod.rs#L1104

we currently send the user a 404. If we get a 404, we should instead send publicly

BlinkyStitt commented 1 year ago

right now we don't get to the point of having a 404. the health check fails. i think this means app.private_rpcs is not empty though and so we don't try to send to publicly. need to think about how to structure this