Closed AppleMaster closed 2 years ago
preference, exchange = rr['Value'].split(' ')
ValueError: too many values to unpack```
It looks like one of the MX
s in this zone has more than a single space in the value which isn't expected. Can you look through them and see if you can spot it? Don't necessary need the exact value if you don't want to share it, just the "shape", words & spaces, of it would do.
Wow. I've gone through the mx records and checked for rogue spaces, one of them in route53 had a value of: 1 mx1.slgnt.eu.
which is actually a doublespace - removing it and guaranteeing one space resolved the issue.
Thanks a lot for the extra pair of eyes, I guess assuming my source zone was entirely valid was my mistake :)
Wow. I've gone through the mx records and checked for rogue spaces, one of them in route53 had a value of:
1 mx1.slgnt.eu.
which is actually a doublespace - removing it and guaranteeing one space resolved the issue.
Cool. That should probably be handled by octoDNS so we can leave this open to track that. It's likel a problem in a bunch of other places as well.
I agree there are probably a few R53 specific cases - another that comes to mind is CNAME's.
In R53, a CNAME value doesn't need a trailing .
but octodns will expect one when using R53 as a source to another target - which means it fails (as an example).
Hey look at that, been a year since I raised this...Does octodns handle these cases any better yet?
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Here's my config:
When I then run octodns-sync against this config, i recieve the following error:
There are only 8 MX records, and a total of 86 record sets in this zone. I have tested on smaller zones with identical MX records and the error does not occur. Similarly, i have tested on larger zones with no MX records, and the error does not occur.