We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Azure spoke issue

AshishS25940620
Tera Contributor

We are getting this issue , when try to test azure spoke 

{
    "Action Status": {
        "code": 1,
        "message": "Request not sent to uri= https://stamiddlewarewe.blob.core.windows.net/package-request/test567 : org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 10000"
    }
}

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @AshishS25940620 

 

1)The default 10000ms (10 seconds) is often too short for Azure cloud APIs, which may have higher session wait times. 

  • Navigate to Connections & Credentials > Connection & Credentials Aliases in your ServiceNow instance.
  • Open the Alias record used by your Azure Spoke and go to the Connection Attributes related list.
  • Click New and create an attribute with the name http_timeout and a value of 30000 or 60000 (representing 30 or 60 seconds)

2)If the timeout occurs while using an on-premise network or a MID Server, ensure the firewall is not dropping the packets. 

3)The connection may drop during the handshake if Azure denies the request. 

  • Verify that you are using the actual Azure Client Secret Value (not the Secret ID) in your ServiceNow OAuth Credential record.
  • Ensure that you have granted the proper API permissions in the Azure portal
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti