Troubleshooting unified authoring in IBM App Connect or IBM API Connect
With unified authoring, when you create an API flow in IBM® App Connect Enterprise as a Service, the flow is published automatically to a Product in IBM API Connect Enterprise as a Service. When you try to start or stop an API in App Connect Designer, you might encounter an error in App Connect Designer or API Connect.
Before you begin
- Read about how to enable and use unified authoring to create and start an API flow in Creating flows for an API from scratch.
- To use unified authoring to create API flows that you can manage in IBM API Connect, ensure that you meet the following requirements.
- You must have an instance of IBM API Connect Enterprise as a Service in the same region as your IBM App Connect Enterprise as a Service instance. If you have an existing trial instance of App Connect, you can provision an API Connect trial instance in the same region. To provision a trial instance of API Connect Enterprise as a Service from the App Connect Designer home page, click Manage API flows by using IBM API Connect.
- Your API Connect instance must be configured with at least one registered DataPower API Gateway service.
- Your API Connect instance must contain at least one provider organization that you are authorized to access. The provider organization must include a catalog that contains an application with an owning consumer organization and a client ID.
- You must enable unified authoring for your instance. To enable unified authoring, first provision an instance of API Connect Enterprise as a Service in the same region as your App Connect Enterprise as a Service instance. Then, on the Designer tab of the API editor, click the Change API gateway settings icon , enable unified authoring, then click Save.
About this task
The following sections describe how to resolve errors that you might find when you start or stop
an API in App Connect Designer.
Resolving errors when you start an API in App Connect Designer
About this task
When you create and start an API flow in your Designer instance, the API is added automatically to a Product. That Product is then published in a Catalog that is provided for a provider organization in API Connect. The Product also becomes visible on the API Connect Developer Portal if a site is enabled for the Catalog.
App Connect automatically discovers the provider organizations in
API Connect that the user has access to in the same region as the App Connect instance. You can specify settings for publishing the API to a
preferred API Connect instance and provider organization. You can also
choose Catalog and Gateway targets, the containing Product and Plan for the published API, and a
consuming application.
Note:
- The publishing preferences are based on the user who is logged in.
- If you start an API flow without specifying publishing preferences, the API is published to the Default Plan in an auto-generated Product in a Sandbox Catalog in any of your discovered API Connect instances.
When you try to start an API flow in your App Connect Designer instance,
the API might fail to start. You might see a message that the API can't be published to API Connect.
Your API might not be started for the following reasons.
- One or more of the target applications in the flow in App Connect Designer might have issues.
- The API can't be published to API Connect because one or more of your specified publishing targets were not discovered.
Procedure
To resolve the issue, complete the following steps.
Resolving errors when you stop an API in App Connect Designer
About this task
When you stop the API in App Connect Designer, the Product (and API) in the
API Manager user interface and the Developer Portal site are deleted automatically.
Note: A user who
doesn't have access to API Connect can stop the flow in App Connect. However, the API remains published in API Connect.
When you try to stop an API flow in your App Connect Designer instance, you
might see a message that states that the API was stopped in Designer, but other errors occurred. Or
the message might indicate that the API can't be stopped.
Errors might occur for the following reasons.
- Your login session might be expired.
- The API can't be unpublished (deleted) from your API Connect instance because one or more of your specified publishing targets were not discovered.
Procedure
To resolve the issue, complete the following steps.