Share via

MS Graph HTTP request failed with status code: GatewayTimeout

Dimitry Decan 0 Reputation points
2025-07-14T13:26:32.0333333+00:00

Hi everyone,

Lately my runbook has been spewing out following errorUser's image

The runbook has been running perfectly fine for the past months, but since last week this started to appear.

Anyone else having similar behaviour?

Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.

{count} votes

1 answer

Sort by: Most helpful
  1. Vinod Pittala 6,410 Reputation points Microsoft External Staff Moderator
    2025-07-14T14:32:16.1666667+00:00

    Hello Dimitry Decan,

    If your runbook is encountering a Gateway Timeout error when trying to make an HTTP request to the Microsoft Graph API. This issue can often be related to network connectivity problems or misconfigured settings.

    Here are a few steps you can take to troubleshoot this error:

    1. Check Network Connectivity:
      • Ensure that the domain ex: gcs.office.com (or the appropriate one for your tenant) is reachable. You can do this by running the following command in PowerShell
             
             tnc gcs.office.com -Port 443
             
        
        You should see TcpTestSucceeded: True. If not, check your firewall or proxy settings.
    2. Test the Endpoint:
      • Run this command to check if the endpoint is responding properly:
             wget https://gcs.office.com/v1.0/admin/AdminDataSetCrawl/healthcheck
        
        A successful response will return StatusCode: 200. If not, you might need to look into proxy/firewall configurations again.
    3. Review Logs:
      • If the above tests pass, check the GCA logs for any potential network issues. Look in these locations:
      • For Windows Server 2016:
              C:\Users\GcaHostService\AppData\Local\Microsoft\GraphConnectorAgent\HostService\logs
        
      • For other supported Windows OS:
              C:\Windows\ServiceProfiles\GcaHostService\AppData\Local\Microsoft\GraphConnectorAgent\HostService\logs
        
      • Open the two most recent log files and check for error messages related to network connectivity.
    4. Check Proxy Settings:
      • If there are network proxy issues indicated in your logs, confirm that the virtual account (NT Service\GcaHostService) has permission to send traffic to the necessary domains.

    If the command helpful, please click upvote it.

    Thanks


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.