-
Notifications
You must be signed in to change notification settings - Fork 912
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
cannot force api/21/execution/<id> to respone with json #3131
Comments
what is the full request URL? |
api/21/execution/ ? |
It looks like you are doing it via a web browser. There are a few reasons that might not work:
See: https://grails.github.io/grails2-doc/2.5.6/guide/theWebLayer.html#contentNegotiation
You can try to override the "content negotiation" if you are using a web browser by using this works in CURL: But if i set a "user-agent" header:
-> I get XML. If I add |
so i cannot use the ACCEPT header as it works with the rest of the API? I used ACCEPT: |
not via web browser or with a User-Agent like that |
And you consider that to be NOT a bug? |
It's definitely a bug |
@EugenMayer Could you please help me on how to setup an access control policy for rundeck api token? |
@EugenMayer Thanks for the response. |
Seems like the thread went a different direction. If you are still experiencing the original issue on the current version of Rundeck please let us know by opening a new Issue request with version and steps to reproduce. If you are an Enterprise customer our support personnel are ready to help. |
Sending a request to
api/21/execution/<id>
does always respond with XMLI did set :
Accept: application/json
and the response is always xml
The text was updated successfully, but these errors were encountered: