Open jdoe-concentrix opened 4 weeks ago
I'm also facing this issue. Clearly something happened we are not aware of? The management API URL is just wrong. It should be the one configured in the portal on the APIM instance:
The current secret object contains:
{ "managementApiUrl": "https://dev-developer.xxxxxxx.eu/developer", "apiVersion": "2022-04-01-preview", "token": "" }
@jdoe-concentrix , @Vipersoft-01 you are better of creating a support ticket via the Azure portal, since they won't handle managed portal issues here (unless you're lucky).
Every self-hosted developer bug report should have precise description and reproduction steps; console traces (or) source code references are appreciated.
Bug description
I'm encountering an issue with my custom React widget in the Azure API Management portal. The widget uses an unmodified secrets hook to retrieve secrets from the portal through a postMessage() method. Previously, the managementApiUrl attribute returned a URL pointing to the management API, which the widget used successfully. However, this attribute now returns a URL with a different structure, leading to failures in interacting with the management API.
Previous managementApiUrl format:
Current managementApiUrl format:
Reproduction steps
Expected behavior
The managementApiUrl attribute should return the actual management API URL
Is self-hosted portal?
No
Environment
Additional context
I've tried creating new widgets, trying different Azure API-M instances, validating the config.json endpoint, and even calling config.json directly (unable to because of CORS). Screenshots of the issue and related console traces are attached below.