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

dns from http resolved the domain with appended dot '.' cause getApiDescriptionFor error when getWellKnownBaseUrl #10

Open
klouskingsley opened this issue Dec 16, 2021 · 0 comments

Comments

@klouskingsley
Copy link

code here https://github.com/moneybutton/paymail-client/blob/master/src/dns-client.js#L87

for example

response from https://dns.google.com/resolve?name=_bsvalias._tcp.semo3d.com&type=SRV&cd=0

{
    "Status": 0,
    "TC": false,
    "RD": true,
    "RA": true,
    "AD": true,
    "CD": false,
    "Question": [
        {
            "name": "_bsvalias._tcp.semo3d.com.",
            "type": 33
        }
    ],
    "Answer": [
        {
            "name": "_bsvalias._tcp.semo3d.com.",
            "type": 33,
            "TTL": 1112,
            "data": "10 10 443 nemo.azure-api.net."
        }
    ]
}

get domain value: nemo.azure-api.net.
will cause error

nodejs.FetchError: request to https://nemo.azure-api.net.:443/.well-known/bsvalias failed, reason: read ECONNRESET\n at ClientRequest.

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

1 participant