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

problem with deleting records (with the record_type option) #21

Open
ezrubaal opened this issue Aug 9, 2021 · 0 comments
Open

problem with deleting records (with the record_type option) #21

ezrubaal opened this issue Aug 9, 2021 · 0 comments

Comments

@ezrubaal
Copy link

ezrubaal commented Aug 9, 2021

Hi,
I've been trying to delete MX records using this code line:

client.delete_records(domain, name='@', record_type='MX')

The long error message ends wtih:
godaddypy.client.BadResponse: Response Data: {'code': 'INVALID_RECORDS', 'fields': [{'code': 'INVALID_RECORDS', 'message': 'Invalid [ipaddress] provided for record data, [Parked].', 'path': 'records'}], 'message': 'One or more of the given records is invalid', 'errors': ['Invalid [ipaddress] provided for record data, [Parked].']}

I can't really see what I'm doing wrong, the code line is simple enough and all I did is to add the record_type='MX' which should work according to the documentation.

ALSO, I this line DOES work:
mx_records = client.get_records(domain, record_type='MX')
(which means that there's nothing wrong with "record_type='MX'")

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