-
Notifications
You must be signed in to change notification settings - Fork 77
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
gradle mlRestartCluster throws a 415 Unsupported Media Type #80
Milestone
Comments
Thanks @peetkes - sounds like state=restart will work on 8.04 and 8.05. I'll get a fix into 2.1.1 for this. curl -v -X POST --anyauth -u admin:admin --header "Content-Type:application/x-www-form-urlencoded" -d 'state=restart' http://localhost:8002/manage/v2 |
Turned out to be a simple change: client.postForm("/manage/v2", "state", "restart") |
hansenmc
pushed a commit
to hansenmc/ml-gradle
that referenced
this issue
Aug 19, 2016
rjrudin
added a commit
that referenced
this issue
Aug 23, 2024
rjrudin
added a commit
that referenced
this issue
Aug 23, 2024
Info is too chatty when running mlWatch in ml-gradle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
when I execute the command gradle mlRestartCluster I get a 415 Unsupported Media Type error.
I'm running on ML8.0-5
gradle -Penv=dev mlRestartCluster
Applying environment-based build file: env-dev.gradle
:mlRestartCluster
POST request for "http://tradestore-vm-ml1:8002/manage/v2" resulted in 415 (Unsupported Media Type); invoking error handler
Logging HTTP response body to assist with debugging: {"errorResponse":{"statusCode":"415", "status":"Unsupported Media Type", "messageCode":"REST-INVALIDMIMETYPE", "message":"REST-INVALIDMIMETYPE: (rest:INVALIDMIMETYPE) Content-Type must be one of: 'application/x-www-form-urlencoded', Received: application/json"}}
:mlRestartCluster FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':mlRestartCluster'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 6.471 secs
The text was updated successfully, but these errors were encountered: