Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 249smWSW0HXbrc25qDjXQy
Power Apps - Building Power Apps
Unanswered

Custom API - Works when testing, but not from App

Like (0) ShareShare
ReportReport
Posted on 28 Sep 2020 14:48:46 by 4

Hi,

I've got a simple API hosted on the internet, with no authentication, and a single endpoint which returns a JSON array of objects.

I've managed to create the Custom Connector, and a new Connection, and "Test" it successfully:

Successful Test from the Custom Connectors UISuccessful Test from the Custom Connectors UI

From my personal computer, I'm able to hit this endpoint with postman, cURL and any web browser.

But when I try to add this connection to a new Power App, I get the following error:

Error message on failure to add connection to new Power AppError message on failure to add connection to new Power App

I don't see any logs in my application server showing that this connection was attempted.

Any ideas?

  • agon-man Profile Picture
    4 on 05 Oct 2020 at 16:59:23
    Re: Custom API - Works when testing, but not from App

    As a hail-mary attempt, I opened up the network inspector on my browser, and tried adding the connection to a blank canvas app.

     

    There I saw a couple of GET requests to https://api.businessappdiscovery.microsoft.com/api/invoke, which failed with the response:

    {"error":{"code":"AuthorizationFailed","message":"A client certificate or authorization header was not provided."}}

     

    I don't know if this is a red herring, but I ended up configuring my web server with SSL, which made no difference. I then added Basic Authentication to my API and configured that in my custom connector.

     

    Again, it worked fine when using the "Test" functionality in the Custom Connector editor, but failed when I tried adding it to the app.

     

    Any and all help would be greatly appreciated 🙏

  • agon-man Profile Picture
    4 on 02 Oct 2020 at 09:54:52
    Re: Custom API - Works when testing, but not from App

    Bumping for visibility; is there any way to debug or trace what's happening?

     

    Or are there any resources to explain the difference between "testing" a custom connection, and adding it to an app? It seems odd that one would work, but the other would fail.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 60

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard