KB Article #186960

Unknown MimeType supplied

Problem

- When importing a swagger definition, API Manager returns the following error:

Failed to import API
Failed to import Swagger. Unknown MimeType supplied


Resolution

- The unknown mime type can be found in the trace of the instance (.trc files under {apigateway_home}/groups/topologylinks/{group_name}-{instance_name}/trace/ folder), as example:

Failed to import Swagger. Unknown MimeType supplied: "application/json+stream"



- To fix this error, you can add the missing mime type in your API Gateway configuration under Server Settings > General > Mime:
https://docs.axway.com/bundle/axway-open-docs/page...



- Or disable the mime type validation in API Manager settings (from API Manager > Settings > Api Manager Settings > Api Import > Mime Validation):
https://docs.axway.com/bundle/axway-open-docs/page...