Skip to content
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

RPC host fails name resolution if it contains a path #246

Open
matt-allan opened this issue Aug 11, 2022 · 2 comments
Open

RPC host fails name resolution if it contains a path #246

matt-allan opened this issue Aug 11, 2022 · 2 comments

Comments

@matt-allan
Copy link

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
Copy link

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
Copy link
Contributor

tompntn commented Aug 17, 2022

We will add support for this in an upcoming version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants