Page 1 of 1

Action and Execution work but the return is weird

PostPosted: Fri Jun 26, 2015 9:01 am
by gemx
Hello,
Wher i try this command :
Code: Select all
curl -X EXECUTE http://127.0.0.1:8176/actions/test --digest -u login:password


It's work (i see in the log windows and the action is executed), but the curl commannd return "This resource can be found at <a href='http://127.0.0.1:8176/actions/test'>http://127.0.0.1:8176/actions/test</a>."


For example in the terminal :

Code: Select all
gemx:~ gemx$ curl -X EXECUTE http://127.0.0.1:8176/actions/test --digest -u login:password
This resource can be found at <a href='http://127.0.0.1:8176/actions/test'>http://127.0.0.1:8176/actions/test</a>.

Re: Action and Execution work but the return is weird

PostPosted: Fri Jun 26, 2015 2:40 pm
by jay (support)
Is that a problem?

Re: Action and Execution work but the return is weird

PostPosted: Fri Jun 26, 2015 3:02 pm
by gemx
Hello,

yes, because i don't know if the command is successful or not.

best regards,

Re: Action and Execution work but the return is weird

PostPosted: Fri Jun 26, 2015 6:41 pm
by jay (support)
That API doesn't return success/failure messages because an action group execution can't fail. Individual actions might eventually fail depending on what they are, but the action group doesn't know.

Re: Action and Execution work but the return is weird

PostPosted: Thu Jul 02, 2015 4:52 am
by gemx
Ok thanks.