You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
api: dnsIssues related to the googleapis/nodejs-dns API.🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
$TTL 3600
test.com. IN SOA ns.test.com. domains.test.com. (
2016102701 ; sn
1d ; ref
2h ; retry
4w ; expiry
1h ; min
)
test.com. A 1.2.3.4
Throws the error
/home/timw/src/zonefiles/node_modules/string-format-obj/index.js:12
return template.replace(/{([^}]*)}/g, function (match, key) {
^
TypeError: Cannot read property 'replace' of undefined
at interpolate (/home/timw/src/zonefiles/node_modules/string-format-obj/index.js:12:18)
at module.exports (/home/timw/src/zonefiles/node_modules/string-format-obj/index.js:8:10)
at Function.Record.fromZoneRecord_ (/home/timw/src/zonefiles/node_modules/@google-cloud/dns/src/record.js:92:11)
at /home/timw/src/zonefiles/node_modules/@google-cloud/dns/src/zone.js:806:37
at Array.forEach (native)
at /home/timw/src/zonefiles/node_modules/@google-cloud/dns/src/zone.js:805:21
at Array.forEach (native)
at /home/timw/src/zonefiles/node_modules/@google-cloud/dns/src/zone.js:802:17
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
@google-cloud/dns/src/record.js (around 92) doesn't have a record type TTL, hence the error.
The underlying dns-zonefile library understands the $TTL variable, and parses it without issues, we just need to not attempt to make a record from the $TTL variable, and instead use that as the default TTL unless it's overridden by the individual record.
The gcloud dns record-sets import --zone-file-format correctly understands the TTL variable and imports without an issue.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
api: dnsIssues related to the googleapis/nodejs-dns API.🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
From @timwsuqld on August 21, 2017 23:4
Environment details
Steps to reproduce
zonefile
Throws the error
@google-cloud/dns/src/record.js (around 92) doesn't have a record type TTL, hence the error.
The underlying dns-zonefile library understands the $TTL variable, and parses it without issues, we just need to not attempt to make a record from the $TTL variable, and instead use that as the default TTL unless it's overridden by the individual record.
The
gcloud dns record-sets import --zone-file-format
correctly understands the TTL variable and imports without an issue.Copied from original issue: googleapis/google-cloud-node#2550
The text was updated successfully, but these errors were encountered: