My Oracle Support Banner

Running Exec Script Rest API Fails with the Error "HTTP/1.1 400 Bad Request" (Doc ID 2980010.1)

Last updated on OCTOBER 10, 2023

Applies to:

Oracle WebLogic Server - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

When trying to run a custom script using "Exec Script" option as documented in the below guide:

https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-server/12.2.1.4/wlrdr/op-management-weblogic-version-domainruntime-rolloutservice-execscript-post.html

It fails and below errors are seen:

command:

=======

curl -v -H "Content-Type:application/json" -H "Accept:application/json" -H "X-Requested-By:MyClient" --user weblogic:Welcome1 -X POST http://localhost:<port>/management/weblogic/latest/domainRuntime/rolloutService/execScript -d "{"machineName":"M1","timeoutMillis":100000,"scriptName":"test5.sh"}"

Output:

======

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.