cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EswarPrakash
Regular Visitor

Asynchronous Pattern - "404 - Resource Not Found"

Hi All,

 

 Trying to get a custom connector to  support "Asynchronous Action" pattern using "202 Accepted" and a location header. Reading up on this in various blogs and Microsoft articles, all I needed to do was to return 202 and have a location header / retry-after sent back. While Flow does to retry, it always throws a 404 Resource Not Found error. Question is, do I need to define the URL in the location header in the OpenAPI definition as well? Strangely if I send a relative URL back, then Flow is fine, but doesn't wait to retry and just carrys on. What am I doing wrong? 

2 REPLIES 2
v-yamao-msft
Community Support
Community Support

Hi @EswarPrakash,

 

Could you share more details on the error message?

How is your custom API configured?

I assume that you need to define the URL in the Open API definition so that the connector can use the base URL to determine how to call the API.

Hope the following doc could be your reference:

https://docs.microsoft.com/en-us/connectors/custom-connectors/define-openapi-definition

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Andy1
Advocate I
Advocate I

Make sure the location URL is pointing to an api in your swagger definition (the api can be marked as 'internal' if don't want to expose it to users)

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,682)