In some scenarios when you use Tanzu Mission Control (TMC) you may encounter API errors when accessing objects on the webpage. This KB outlines how to collect information required for Broadcom Support to troubleshoot further when you create a support case.
Below is the required information to provide to Broadcom Support for API errors on TMC:
Tanzu Mission Control Deployment Type: Tanzu Mission Control SaaS or Tanzu Mission Control Self Managed
Tanzu Mission Control URL and Long Org ID (TMC SaaS only): Example formats - URL: example.tmc.cloud.vmware.com, ID: ########-####-####-####-############ (Note: you can use the following docs to find your Long Org ID.)
Error Verbiage: Typically API errors have red banners at the top of your browser that show a message with error info when you try to access specific objects in the TMC User Interface (UI). Example - API Error: Failed to list management clusters: Error
Generate and collect a HAR file from your browser: HAR file generation can vary depending on your browser, typically the process is similar to what is documented for Google Chrome in the browser docs. (Note: In most cases you would export a HAR file after logging into TMC, ensure that you preform the exact steps to reproduce the error in the TMC UI, and ensure that you have the `Preserve log` option enabled on your browser.)
Request URL and RequestID: This information can typically be accessed when looking at the HAR file export for the failure.
The Request URL field will show a URL to your TMC instance with some extra sub directories in the URL. Example - https://<TMC-URL>.tmc.cloud.vmware.com/v1alpha1/managementclusters?sort_by=status.kubeServerVersion:ascending,fullName...
The RequestID or X-Request-ID field will show a large number separated by dashes. Example format - ########-####-####-####-###########
After collecting this information you can proceed with opening a Broadcom Support case to investigate and troubleshoot the API error.
Warning: Recording a HAR file or generating a HAR file while passing credentials has the potential to capture access tokens or passwords in plain text. Refrain from capturing HARs during login operations.
For any issues generating this file, see this article from Google's Help Center: Capture web session traffic.
To retrieve console logs in Chrome
To retrieve console logs in Firefox
For any issues generating a HAR file in Safari, see this article from Safari Developer website: Web Inspector.
To retrieve console logs in Safari
For any issues generating a HAR file in Safari, see this article from Microsoft Edge website: Inspect network activity.
To retrieve console logs in Edge