Skip to main content

Notifications

Announcements

No record found.

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...

  • Suvarna Profile Picture
    on at
    RE: Gateway timeout issue

    Hi Steven,

    Thanks for your reply.

  • Suggested answer
    Steven Renders Profile Picture
    5,500 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,025 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,469 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,066 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans