Job fails with "Authorization header is missing." error when using multi-line cURL command in REST Agent.
search cancel

Job fails with "Authorization header is missing." error when using multi-line cURL command in REST Agent.

book

Article ID: 429839

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine Automic SaaS

Issue/Introduction

A REST job using a multi-line cURL command fails with the following message on Windows:

 

2026-02-18 02:01:22             Standard error end   ===========
2026-02-18 02:01:22             Standard out start ===========
2026-02-18 02:01:22             { "code" : 45229, "error" : "Authorization header is missing.", "details" : "No detail information available." }401
2026-02-18 02:01:22             Standard out end   ===========
2026-02-18 02:01:22             curl command done
2026-02-18 02:01:22             RESTful job complete

Example of working syntax (Linux):

curl --request GET -k --url "https://<hostname>:8088/ae/api/v1/0000/system/health" \
-u "<username>:<password>"

Example of failing syntax (Windows):

curl --request GET -k --url "https://<hostname>:8088/ae/api/v1/0000/system/health" ^
-u "<username>:<password>" 

This behavior is specific to the Integration REST agent on Windows and does not occur on Linux.

Environment

 

  • Product: Automic Workload Automation - Automation Engine

  • Component: Integration REST Agent

  • Release: 24.1.3, 24.2.0

  • OS: Windows

 

Cause

The issue is caused by how the updated agent parses line continuation characters (\ or ^) followed by a newline in the command field.

While these commands work correctly when executed directly in the OS command line, the Agent's interpretation fails to parse them correctly, resulting in a "Authorization header is missing." error.

 

Resolution

This issue is currently under investigation by Engineering.

 

Additional Information

Defect-ID: DE182704

Article title: How to register to Broadcom Software Product updates and Critical Alerts

https://knowledge.broadcom.com/external/article?articleId=133819