RPC host fails name resolution if it contains a path
matt-allan opened this issue · 2 comments
matt-allan commented
Hello,
I'm trying to use a RPC host at rpcpool.com with a URL that looks like this: my-subdomain.rpcpool.com/some-path
When I pass that URL as the rpc host with the -r flag, the pythd daemon fails with the following error:
pythd: failed to resolve host
I traced the source code and confirmed that getaddrinfo is being called with the entire URL and not just the hostname, which is where it's failing.
I'm guessing this is the same underlying issue as #93 but it's hard to tell since they didn't mention where it's failing for them.
hkalirai commented
Hi Matt, as part of the devnet/testnet integration you should be using the P2P rpc endpoints. I will send these over to you in a DM.
tompntn commented
We will add support for this in an upcoming version.