web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Gateway timeout issue

(0) ShareShare
ReportReport
Posted on by

Hello,

I am trying to do some customization in my Production Environment. After running in VS then I am facing error for Time out.

The request for path /v2.0/Production/dev/metadata?tenant=tenantid failed with code GatewayTimeout. Reason: Gateway Timeout

Please help...

I have the same question (0)
  • Suvarna Profile Picture
    on at
    RE: Gateway timeout issue

    Hi Steven,

    Thanks for your reply.

  • Suggested answer
    Steven Renders Profile Picture
    5,608 Moderator on at
    RE: Gateway timeout issue

    Are you sure you have a Sandbox with the name Production?

    Usually this:

     "environmentType""Sandbox",
     "environmentName""Production",
    Is:
     "environmentType""Sandbox",
     "environmentName""Sandbox",
    And you should create/use a sandbox for development. VScode can only connect to a sandbox, not a production environment.
  • Suvarna Profile Picture
    on at
    RE: Gateway timeout issue
    Hi Inge,
    Thanks for your reply. Please check my below code. It's giving error -
    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Microsoft cloud sandbox",
                "request": "launch",
                "type": "al",
                "tenant": "................(tenant id).............",
                "environmentType": "Sandbox",
                "environmentName": "Production",
                "startupObjectId": 22,
                "startupObjectType": "Page",
                "breakOnError": true,
                "launchBrowser": true,
                "enableLongRunningSqlStatements": true,
                "enableSqlInformationDebugger": true
            }
        ]
    }
    ERROR : The request for path /v2.0/Production/dev/metadata failed with code GatewayTimeout. Reason: Gateway Timeout
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,035 Moderator on at
    RE: Gateway timeout issue

    It can look like you have the wrong tenant defined in your launch json file.

    Make sure you use the correct tenant and environment name.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,737 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,577

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,251

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans