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

Record Content Parser Error Message Unspecific #603

Open
nils-wisiol opened this issue Mar 16, 2022 · 0 comments
Open

Record Content Parser Error Message Unspecific #603

nils-wisiol opened this issue Mar 16, 2022 · 0 comments

Comments

@nils-wisiol
Copy link
Contributor

When trying to create an MX record with record content 10 $url., which deSEC consideres invalid, the error message is less specific than it should be:

http POST https://desec.io/api/v1/domains/parse-test.dedyn.io/rrsets/ \
    Authorization:"Token $TOKEN" subname="" type="MX" \
    records:='["10 $url."]' ttl:=300 
HTTP/1.1 400 Bad Request
# [...]

{
    "non_field_errors": [
        "Cannot parse record contents: invalid exchange: \\$url."
    ]
}

Specifically, the error should be a records error and not a non_field_error.

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

No branches or pull requests

1 participant