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

MX record priority error #22

Open
khromov opened this issue Aug 10, 2023 · 1 comment
Open

MX record priority error #22

khromov opened this issue Aug 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@khromov
Copy link

khromov commented Aug 10, 2023

👋 I was using this script to migrate a domain but ran into this error mid-way:

Error: couldn't create record: unmarshaling JSON body: invalid character '<' looking for beginning of value Usage:

When checking in the Porkbun admin it seemed to be a faulty MX record that got created but had priority 0. After manually changing the priority from PB admin panel the script could proceed.

Here is a snippet from my yaml:

  - type: MX
    host: "x.domain.com"
    content: mxa.eu.mailgun.org.
    ttl: 600
    priority: 10

As an aside, for some reason Bacon can't seem to detect that this particular DNS entry is already created:

  - type: TXT
    host: "bun-verify.khromov.se"
    content: "127d8e80396db8b58b2f236991f5e715c5431df0763ccaef0d2edd516220308a"
    ttl: 300

Every time i re-run it it says:

./bacon deploy khromov.se.yaml --delete --create
Deleting 1 records...
- {344101976 bun-verify.khromov.se TXT 127d8e80396db8b58b2f236991f5e715c5431df0763ccaef0d2edd516220308a 600 0 }
Creating 1 records...
- {bun-verify.khromov.se TXT 0xc0000b9450 127d8e80396db8b58b2f236991f5e715c5431df0763ccaef0d2edd516220308a}
Deployment complete!

Thanks for a great tool!

@jungaretti jungaretti added the bug Something isn't working label Aug 10, 2023
@jungaretti
Copy link
Owner

Bacon has trouble de-serializing and comparing numerical properties such as TTL and priority. I suspect that both of these problems relate to flakiness in Bacon's conversion to/from string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants