microsoft / vscode-apimanagement

VS Code extension for Azure API Management.
MIT License
60 stars 40 forks source link

Debugging APIM policy in VS Code fails #265

Open ghost opened 1 year ago

ghost commented 1 year ago

Does this occur consistently? Repro steps:

  1. Save APIM policy in vs code
  2. Upload the changes
  3. It times out and gives an error "underlying system updates" (Uh huh sure🙄)

Action: azureApiManagement.apiPolicyEditor.onDidSaveTextDocument Error type: Error Error Message: Failed to connect to management endpoint poc09-apim01-apiman.management.azure-api.net:3443 for Developer SKU service which will have inherent downtime during underneath platform upgrades. Please refer to SLA at https://aka.ms/apimsla and considering upgrading to a SKU Tier with higher SLA.

Version: 1.0.5 OS: win32 OS Release: 10.0.19042 Product: Visual Studio Code Product Version: 1.71.2 Language: en

Call Stack ``` ApiPolicyEditor. extension.bundle.js:16:370772 rejected extension.bundle.js:16:369403 ```
mikaelsand commented 1 year ago

I am not in the APIm team in any way but I remember this error from a TEST environment a while back.

Does your APIm instance respond? Can you edit the APIs using the portal? Does the https://youinstancename.azure-api.net/status-0123456789abcdef call return a 200?

If not, you probably have the same issue I had. The backend is stuck in an endless loop when updating. My personal opinion is that this is due to the DEV SKU not being monitored within Azure so therefor they simply do not know.

I submitted a ticket and about 12 hours later the instance was up and running again.

ghost commented 1 year ago

Thanks, I think they did the same thing for me as a bit later it worked. But yes, vscode wasn’t connecting up to APIM in any way saving changes to policy/ refreshing subscription in the explorer. Etc. But seems to be resolved now.

From: Mikael Sand @.> Sent: Friday, September 23, 2022 3:01 AM To: microsoft/vscode-apimanagement @.> Cc: McClain, Justin @.>; Author @.> Subject: EXTERNAL EMAIL: Re: [microsoft/vscode-apimanagement] Debugging APIM policy in VS Code fails (Issue #265)

EXTERNAL EMAIL: Do not click any links or open any attachments unless you trust the sender and know the content is safe.

I am not in the APIm team in any way but I remember this error from a TEST environment a while back.

Does your APIm instance respond? Can you edit the APIs using the portal? Does the https://youinstancename.azure-api.net/status-0123456789abcdef call return a 200?

If not, you probably have the same issue I had. The backend is stuck in an endless loop when updating. My personal opinion is that this is due to the DEV SKU not being monitored within Azure so therefor they simply do not know.

I submitted a ticket and about 12 hours later the instance was up and running again.

— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fmicrosoft%2fvscode%2dapimanagement%2fissues%2f265%23issuecomment%2d1255860683&umid=9cdca228-761c-458c-9a9f-c74fc6d64a20&auth=732345bef31a784e2798e5a08f43be53a71196f3-3cddfa29748b85bcb28f14f3edd67ab5caa071f7, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fAW2F3PPMSUJHLWKYXVQLBFLV7VITPANCNFSM6AAAAAAQTK3MU4&umid=9cdca228-761c-458c-9a9f-c74fc6d64a20&auth=732345bef31a784e2798e5a08f43be53a71196f3-06d8100aaa10637b69e567769c7761af03b60d85. You are receiving this because you authored the thread.Message ID: @.***>