I'm attempting to connect to a local WebAPI in VS 2017 to test that i can retrieve information in PowerApps using a custom connector.
My base host is formatted as: 'localhost:<port_no>'
I have set the base URL as simply '/'.
It all just seems that PowerApps is having a hard time locating the localhost. I have also tried connecting to the API with a simple MVC application and it's just a case of configuring a simple HTTPClient.
Does anybody know how i can connect to a localhost via PowerApps?
Solved! Go to Solution.
Just to confirm a few things, have you installed the on-premises gateway on your local machine (this is because URI that you specify in your custom connector works relative to where the on-premises is installed)? Do you have a Plan 1 or 2 license (or are within a valid trial period) to enable you to use custom connectors?
When you created your custom connector, did you check the option on the first page to use 'on-premises data gateway'?
Also, on your local machine, do you have any firewall/antivirus software installed? What we're looking for here is anything that could block the traffic between the gateway and your WebAPI.
Yes, because you're trying to connect to a web service that's running on your local machine, it's necessary to install the on-premises gateway. Without it, you can only connect to web services that are accessible via the public internet.
Just to clarify one of my previous points, here's the checkbox you'll need to check when you create your custom connector.
Sorry for the delayed reply but i tried creating an On-Premise Gateway but still had trouble connecting to my localhost port. Do you have any experience or have any examples of connecting to a localhost web api via Custom Connectors?
We're excited to announce our first cross-community 'Can You Solve These?' challenge!
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
We are excited for the next Super User season.
FIll out a quick form to claim your community user group member badge today!
Features releasing from October 2020 through March 2021