cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Stef
Level: Powered On

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
Stef
Level: Powered On

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

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
Community Support Team
Community Support Team

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

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.
Stef
Level: Powered On

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

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

vishchandra
Level: Powered On

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

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


 

jiwanovski
Level: Powered On

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

@Stef

Can you explain how you added the body?

I do have the same issue...

Stef
Level: Powered On

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

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?

 

jiwanovski
Level: Powered On

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

@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"
                }
              }
            }
          }
        }
      }
Stef
Level: Powered On

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

Hi 

 

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

 

 

jiwanovski
Level: Powered On

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

I just wonder where I have to add this body.

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

Stef
Level: Powered On

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

vishchandra
Level: Powered On

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

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.

Highlighted
lee2
Level: Power Up

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

it to setup email for work states post office not found

 

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (4,298)