Troubleshooting

To help troubleshoot issues with API Assistant

Unable to use API Assistant

Symptoms

After redirected to VS Code, API Assistant displays the following error message: Error unable to fetch user.

Causes

This issue occurs if there is a problem with user authentication or API Assistant configuration.

Resolving the problem

Click IBM API Assistant menu , and select New chat.

API Assistant displays an error

Symptom

You can view an error in the VS Code after entering the following prompt: create an API with order demo purchase order.

Cause

The APIGenerator tool unable to find the source ID from the API Assistant sources section.

Resolving the problem

To resolve the problem, complete the following steps:
  1. Re-enter the prompt create an API with order demo purchase order in the Type something field.
  2. Open API Connect, and go to the API Assistant tab.
  3. From the Database tables sub-section, select the source from the table, and open Network inspector.

  4. Find the source ID.

  5. In VS Code, click Edit plan.
  6. Enter the source ID in the /source_ID field, and click Save.
  7. Click Start.