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?
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: