Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
487 stars 317 forks source link

Cannot deploy new change of developer portal #2054

Closed titan-khang closed 6 months ago

titan-khang commented 1 year ago

Every bug report should have precise description and reproduction steps; console traces or source code references are appreciated.

For assistance requests, contact Azure support or submit a post on Stack Overflow. We don't provide support through GitHub Issues. Feature requests can be raised on the Azure Feedback Forum.

Bug description

Recently I cannot deploy new change of my developer portal page. I can save it in the customization page but after selecting Public website, it ends up with status Failed and the changed do not applied to production. I'm not sure if it is because of some of my changes or not. I did some changes on text label, navigation menus, added some images,... It displays fine on the customization page but failed to deploy. I don't know if there are some kinds of log that I can check to pinpoint the exact problem.

Reproduction steps

  1. Go to Developer Portal Customization Page
  2. Click on Public Website image
  3. Go to Azure Portal -> Portal overview -> Revisions
  4. The newly created revision will have Failed status image

Expected behavior

The new revision should have status Completed and marked as current.

Is your portal managed or self-hosted?

Managed

API Management service name

myTitanApi

Environment

Additional context

ghost commented 1 year ago

@titan-khang, thank you for opening this issue. We will triage it within the next few business days.

Swegsley commented 1 year ago

Having the exact same issue since Friday 30th. Opened a support ticket via the azure portal already.

ZarTrox commented 1 year ago

Similar issue from me: #2045

Swegsley commented 1 year ago

I have a response from MS support: This might be due to pop-ups being enabled on the developer portal which is available there already but not yet fully supported (breaking the portal bascially).

Solution is to run a content delete call through here: https://learn.microsoft.com/en-us/rest/api/apimanagement/current-ga/content-item/delete?tabs=HTTP#code-try-0

Parameters:

Headers:

I did this as advised by support and I am free to publish again :)

titan-khang commented 1 year ago

I have a response from MS support: This might be due to pop-ups being enabled on the developer portal which is available there already but not yet fully supported (breaking the portal bascially).

Solution is to run a content delete call through here: https://learn.microsoft.com/en-us/rest/api/apimanagement/current-ga/content-item/delete?tabs=HTTP#code-try-0

Parameters:

  • contentItemId* = main-menu-popup
  • contentTypeId = popup
  • resourceGroupName = YourResourceGroupNameHere
  • serviceName = YourServiceNameHere
  • subscription = YourSubscriptionHere
  • api-version = 2021-04-01-preview

Headers:

  • If-Match* = True

I did this as advised by support and I am free to publish again :)

Confirm that it works. I can publish the portal again. Thank you very much, I'm on the verge that reset everything and redo again. This makes me feel it so unreliable when things like this happen though.

malincrist commented 1 year ago

Hello @titan-khang , I'm glad the workaround provided worked for you and we apologize for the inconveniences. There is currently an on-going issue with the "popup" content type and we are working to fix it.

mrcarlosdev commented 6 months ago

This issue is related to managed developer portal. We advise you to create a Azure support request to get assistance on this issue. Please refer to the below link to create a new Azure support request, Please select Problem Type = "Developer Portal" in the request to route it appropriately.

https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request