-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cloudflare DNS: Bad Request on MX update #8418
Comments
Files identified in the description: If these files are incorrect, please update the |
I just ran into this issue as well and was about the create an issue, so can confirm. Just to add; when |
Can also confirm issue is also in newest version of community.general # /root/.ansible/collections/ansible_collections
Collection Version
----------------- -------
community.general 9.0.0
# /usr/local/lib/python3.10/dist-packages/ansible_collections
Collection Version
----------------- -------
community.general 5.8.3 |
When I got this, I had used A generic 400 made me think it wasn't an authentication failure, rather something wrong in my request. Perhaps this is a case of the "bad request" response taking precedence over the "authentication failure" response. I'm unsure if CloudFlare responded with any messages that could have hinted that the authentication details were provided incorrectly, as I cannot see the raw HTTP responses. Perhaps it would be a good idea for this, and similar, roles to print the raw HTTP request/response when under the highest level of verbosity. |
When I use 'api_account_key' I'm getting:
When I use 'api_token' I get:
MODULE_STDERR: KeyError: 'zone_id'
It seems that even with upgrading to the latest release of ansible and the latest release of community general, still seems to be getting the same error.
and
So strange, this was working everyday for months, but doesn't work anymore... |
Closing since a bugfix release (10.3.1) is on its way. |
@felixfontein It works now. Thanks!!! |
Summary
When attempting an MX update with cloudflare dns, I get "400 Bad Request"
Issue Type
Bug Report
Component Name
cloudflare_dns
Ansible Version
Community.general Version
Configuration
OS / Environment
Ubuntu 22.04
Steps to Reproduce
The first task works, the second does not.
Expected Results
The playbook task should execute successfully
Actual Results
I have made a minor change to cloudflare_dns.py to output the data & headers in the failure output, running the same API call with curl is unsuccessfuly successful, thus:
Code of Conduct
The text was updated successfully, but these errors were encountered: