web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / On premises API for we...
Power Apps
Unanswered

On premises API for web service Custom Connector - 404

(0) ShareShare
ReportReport
Posted on by

I have a web service installed on a server where I can pull API data via XXX.XXX.com/REST/...

 

It is limited to on premises access and I'm able to use the API via Postman so long as I'm on the corporate wifi but not when off.

 

I'm trying to create a custom PowerApps connector which utilizes the API. I've installed the On-Premises data gateway onto my server but not sure what I need to configure. 

 

My connector settings are:

 

  1. General
    1. Connect via on-premises data gateway - Checked
    2. Scheme - HTTP
    3. Host - xxx.xxx.com
    4. Base URL - /REST/
  2. Security
    1. Windows Authentication
  3. Definition - Configured for API
  4. Test
    1. Selected connection - Gateway connection
      1. Connection Settings:
        1. Authentication Type: Windows
        2. Username/Password: local admin account
        3. Choose a gateway: API Gateway

 

 

Results:

 

Status - (404)

 

Headers
{
"strict-transport-security": "max-age=31536000; includeSubDomains;,max-age=31536000; includeSubDomains",
"x-content-type-options": "nosniff,nosniff",
"date": "Thu, 05 Sep 2019 20:55:47 GMT",
"x-frame-options": "SAMEORIGIN,DENY",
"content-type": "application/json; charset=utf-8",
"x-ms-request-id": "82355ed7-9af3-4540-84ba-b095-c70d0431",
"cache-control": "private,no-store",
"content-length": "527"
}

 

Body

{
"Status": 404,
"URL": "/rest/server/authenticationtokens",
"Method": "POST",
"Exception": {
"Name": "NotFoundException",
"Message": "Exception of type 'MFWS.NotFoundException' was thrown."
},
"Stack": "Error reference ID: ea3ac03b-72c5-40a3-9583-6cc867373058",
"Message": "Exception of type 'MFWS.NotFoundException' was thrown.\r\nclientRequestId: 82355ed7-9af3-4540-84ba-b095-c70d0431",
"IsLoggedToVault": false,
"IsLoggedToApplication": false,
"ExceptionName": "NotFoundException"
}

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Did you follow steps in below documentation correctly?

    https://powerapps.microsoft.com/en-us/blog/on-premise-apis/

     

    Regards,

    Mona

  • Community Power Platform Member Profile Picture
    on at

    I have. With the exception of creating a web application in VS since I already have a platform running the api (M-Files). 

     

    Do I need to create a separate application in VS?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard