Error: Test was not successful: Failed to post to the server when testing outbound setting to webhook
search cancel

Error: Test was not successful: Failed to post to the server when testing outbound setting to webhook

book

Article ID: 425709

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

You have configured a webhook connection under Operations > Configurations > Outbound Settings to an external platform such as ServiceNow with these settings:

  • HTTP proxy
  • OAuth Authentication credential that uses Password Credentials for the Grant Type that requires Client ID, Client Secret, User name and Password

You may get the following errors when running a Test connection:

  • Test was not successful: Failed to post to the server.
  • Failed to send Webhook: java.lang.RuntimeException 
  • Failed to get OAuth2 access token. Status code: 401 Reason: Unauthorized

 

Environment

Aria Operations 8.18.x

Cause

The configuration for the webhook Outbound Instance and/or the OAuth Authentication credential has missing or invalid values. 

Resolution

  • For the webhook Outbound Instance configured at Operations > Configurations > Outbound Settings, ensure that the Url is correct
  • For the OAuth Authentication credential, validate these fields based on your webhook endpoint configuration:
    • Client ID, User name, Client Secret and Password are correct and do not contain extra whitespace or extra characters
    • Access Token Path, Validity Token Path, Header Name and Prefix must have valid values and should not be blank

Additional Information