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

Custom Connector Post Action always endsup with Resource Not Found (404)

Hi 

 

I want to create a custom connector which is working perfectly fine with a GET action.

But as soon as i use PUT the test fails with the message: 

{
  "statusCode": 404,
  "message": "Resource not found"
}

 

for testing purpos i tried ii with request.bin, but still same behavior. I can post to that ressource with postman.

 

is there something i'm missing?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @v-micsh-msft

 

I found the solution. I have to add a body, nevertheless the API doesnt need one. And then its working.

 

Best Regards

 

Stefan

View solution in original post

11 REPLIES 11
v-micsh-msft
Community Support
Community Support

Hi @Stef,

 

How you define the PUT (I think you mean POST here? ) action in the OpenAPI file?

Take a try to perform the corresponding actions in PostMan, then export the collection and import it into Custom connector builder.

Follow the article below:

Describe a custom connector with PostMan

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-micsh-msft

 

I found the solution. I have to add a body, nevertheless the API doesnt need one. And then its working.

 

Best Regards

 

Stefan

View solution in original post

Anonymous
Not applicable

What do you mean when you said I have to add a body? I'm facing the same issue.


@Stef wrote:

Hi @v-micsh-msft

 

I found the solution. I have to add a body, nevertheless the API doesnt need one. And then its working.

 

Best Regards

 

Stefan


 

@Stef

Can you explain how you added the body?

I do have the same issue...

Hi Jiwanovski,

its quite a long time ago, since i had this isse. i dont really remember anymore. have you tried to just put {} in the body?

 

@Stef I haven't tried this yet... 

I am new to this. Where can I put this empty body to?

Here is my Get Action of the swagger file..

 

      "get": {
        "summary": "GetContacts",
        "description": "GetContacts",
        "operationId": "GetContacts",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "type": "string",
            "default": " application/json",
            "description": "Content-Type"
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "schema": {
              "type": "object",
              "properties": {
                "@odata.context": {
                  "type": "string",
                  "description": "@odata.context"
                },
                "value": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "@odata.etag": {
                        "type": "string",
                        "description": "@odata.etag"
                      },
                      "knk_ID": {
                        "type": "string",
                        "description": "ID"
                      },
                      "No": {
                        "type": "string",
                        "description": "No"
                      },
                      "Name": {
                        "type": "string",
                        "description": "Name"
                      }
                    }
                  },
                  "description": "value"
                }
              }
            }
          }
        }
      }

Hi 

 

I really dont have a clue what you are trying to accomplish...

 

 

I just wonder where I have to add this body.

I don't know where to put this information to custom connector.

Anonymous
Not applicable

I was getting this error too but my API was working fine on browser and postman. What worked for me was I just waited for 15 minutes and the error was gone. PowerApps takes some time to update the connector so if your API works on browser and still you're getting 404 then don't make any changes to your connector, don't delete and re create the connector, just wait for 15 minutes and it will work.

lee2
New Member

it to setup email for work states post office not found

 

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (66,480)