Skip to content

Publishing APIM Developer portal fails due to sign in and sign up widget #2318

Closed
@oscarbm1998

Description

@oscarbm1998

Bug description

When trying to publish a developer portal created in APIM, it will end up as failed every time. After some debugging i figured out that if you remove the sign-in widget and sign-up widget from the developer portal design, the error subsides and you are allowed to publish the portal.

Reproduction steps

  1. Go to an APIM instance
  2. Try to open the developer portal
  3. Press F12 to capture API requests
  4. See the error described below appear
  5. Try to remove the sign in base page widget and the sign up base page widget
  6. See that the error subsides

Expected behavior

When publishing the developer portal, it should be published without errors.

Is your portal managed or self-hosted?

Managed

API Management service name

Environment

  • Operating system: Tested from Linux VM
  • Browser: Firefox, Safari and Chrome
  • Version: [e.g., 22]

Additional context

The error that is thrown when trying to add the sign-in widget:

The developer portal keeps throwing this exception when going to signin page and signup page:
Uncaught (in promise)
Object { code: "MissingOrIncorrectVersionParameter", message: "API version query parameter is not specified or was specified incorrectly. Supported versions: 2021-04-01-preview,2021-08-01,2021-12-01-preview,2022-04-01-preview,2022-08-01,2022-09-01-preview,2023-03-01-preview,2023-05-01-preview,2023-09-01-preview Example query param format: api-version=SupportedVersion", details: null }

The API call which is sent to produce the error above:

GET
https://bnnweapimdev-test.management.azure-api.net/subscriptions/000/resourceGroups/000/providers/Microsoft.ApiManagement/service/bnnweapimdev-test/tenant/settings?api-version=2019-12-01
[HTTP/1.1 400 Bad Request 16ms]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions