Automic Workload Automation

 View Only

  • 1.  Authentication Problems Using RA REST Agent

    Posted Oct 22, 2024 01:10 AM

    Hello there,

    can´t connect to an REST Endpoint using Request Sheet.
    You may also know my trouble installing RA Rest Agent No "Web Service" Tab for RA Webservice REST Agent | Automic Workload Automation (broadcom.com)

    Using cURL command works fine
    https://<host>/api/incidents -u <user>:<pass>

    Using same credentials with authentication method basic with the request sheet resolves in Error 401



  • 2.  RE: Authentication Problems Using RA REST Agent

    Posted Oct 22, 2024 08:53 AM

    Are you doing a rest post?  is the json body empty, if so try adding {} in there.  I had this with another application where it seemed like the agent wasn't passing all the login information or headers with an empty post message.




  • 3.  RE: Authentication Problems Using RA REST Agent

    Posted Oct 23, 2024 12:32 AM

    im trying a GET.

    Username and Password are stored in the connection Object.
    Here is my response when using the Request Sheet

    2024-10-23 06:28:20             Connect timeout set to 30 seconds
    2024-10-23 06:28:20             Read timeout set to:60
    2024-10-23 06:28:20             Using connection:<CONNECTIONOBJECT>
    2024-10-23 06:28:20             Authentication type:Basic
    2024-10-23 06:28:20             Request:GET https://<HOSTNAME>/api/incidents
    2024-10-23 06:28:20             Request headers:{}
    2024-10-23 06:28:20             Sending request...
    2024-10-23 06:28:20             Authentication Error. Check the connection information for this job.
    2024-10-23 06:28:20             Connection:<CONNECTIONOBJECT>
    2024-10-23 06:28:20             Auth type:Basic
    2024-10-23 06:28:20             User:AUTOMICAPI
    2024-10-23 06:28:20             Host: port: realm:
    2024-10-23 06:28:20             Response:
    2024-10-23 06:28:20             Status:401 Unauthorized
    2024-10-23 06:28:20             Response headers:[Server:[nginx], Date:[Wed, 23 Oct 2024 04:28:20 GMT], Content-Type:[application/json], Content-Length:[139], Connection:[keep-alive], X-Content-Type-Options:[nosniff], X-XSS-Protection:[1; mode=block], X-Robots-Tag:[noindex,nofollow], Access-Control-Allow-Origin:[*], Cache-Control:[no-store], Strict-Transport-Security:[max-age=31536000]]
    2024-10-23 06:28:20             
    2024-10-23 06:28:20             
    2024-10-23 06:28:20             An error occured - after the request
    2024-10-23 06:28:20             Response error code: 401 (Response family:CLIENT_ERROR), Exception: {"errors":[{"errorCode":"unauthorized","appliesTo":["authentication"],"errorMessage":"The request does not contain valid authentication"}]}:Unauthorized



  • 4.  RE: Authentication Problems Using RA REST Agent

    Posted Nov 19, 2024 01:01 AM

    got it.

    still dont know why it is not possible to use the password tab of the connection object but defning an authorization header did the trick