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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,550)