cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Regular Visitor

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

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.
Highlighted
Regular Visitor

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

Highlighted
Advocate II
Advocate II

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


 

Highlighted
Advocate II
Advocate II

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

Highlighted
Regular Visitor

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?

 

Highlighted
Advocate II
Advocate II

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"
                }
              }
            }
          }
        }
      }
Highlighted
Regular Visitor

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

 

 

Highlighted
Advocate II
Advocate II

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.

Highlighted
Regular Visitor

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

Highlighted
Advocate II
Advocate II

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
New Member

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
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Kudoed Authors
Users online (6,723)