cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Bob0
Level: Powered On

Connecting to API: Unable to match incoming request to an operation

Like other people have reported, I'm Trying to connect PowerApps to an api that uses Bearer token authorization scheme. It can't find the endpoint. The OPEN api spec can be found here: OPEN API Spec

It can only be imported by first downloading it to the file system. Any ideas?

 

{
"error": {
"code": 404,
"message": "Unable to match incoming request to an operation.",
"source": "msmanaged-na.azure-apim.net",
"path": "",
"clientRequestId": "f6d325ec-6f85-4c19-ae94-afa7-e3e04ac2"
}
}

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Connecting to API: Unable to match incoming request to an operation

Hi @Bob0,

 

Do you create your OpenAPI based on swagger 2.0?

 

The error message told that the URl that you request doesn't match to any Api or Operation, it is a configuration error. More details about the OpeationNotFound error, please check the following article:

https://docs.microsoft.com/en-us/azure/api-management/api-management-error-handling-policies#predefi...

 

I found that you don't define schemes and host within your OpenAPI, the Basic structure of an standard Swagger specification (OpenAPI definition) as below:

 

swagger: "2.0"
info:
  title: Sample API
  description: API description in Markdown.
  version: 1.0.0

host: api.example.com
basePath: /v1
schemes:
  - https

paths:
  /users:
    get:
      summary: Returns a list of users.
      description: Optional extended description in Markdown.
      produces:
        - application/json
      responses:
        200:
          description: OK

 

Please modify your Swagger specification (OpenAPI file) based on the following article to check if the issue is solved:

https://swagger.io/docs/specification/2-0/basic-structure/

 

More details about an sample of the OpenAPI definition, please check the following article:

OpenAPI definition 

 

More details about connecting to a custom connector in PowerApps, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Community Support Team
Community Support Team

Re: Connecting to API: Unable to match incoming request to an operation

Hi @Bob0,

 

Do you create your OpenAPI based on swagger 2.0?

 

The error message told that the URl that you request doesn't match to any Api or Operation, it is a configuration error. More details about the OpeationNotFound error, please check the following article:

https://docs.microsoft.com/en-us/azure/api-management/api-management-error-handling-policies#predefi...

 

I found that you don't define schemes and host within your OpenAPI, the Basic structure of an standard Swagger specification (OpenAPI definition) as below:

 

swagger: "2.0"
info:
  title: Sample API
  description: API description in Markdown.
  version: 1.0.0

host: api.example.com
basePath: /v1
schemes:
  - https

paths:
  /users:
    get:
      summary: Returns a list of users.
      description: Optional extended description in Markdown.
      produces:
        - application/json
      responses:
        200:
          description: OK

 

Please modify your Swagger specification (OpenAPI file) based on the following article to check if the issue is solved:

https://swagger.io/docs/specification/2-0/basic-structure/

 

More details about an sample of the OpenAPI definition, please check the following article:

OpenAPI definition 

 

More details about connecting to a custom connector in PowerApps, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Bob0
Level: Powered On

Re: Connecting to API: Unable to match incoming request to an operation

 I was using swagger 2.0. I ended up bypassing using the swagger doc produced by api manamement. I think their was a CORS error that could have been preventing my underlying api's from being called. Anyway works now...thanks for the help

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 156 members 3,741 guests
Please welcome our newest community members: