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

http post - header issue?

I have a flow (several actually) where I need to take the data and post it to an external site. You can see how I have it set up here: screenshot-us.flow.microsoft.com-2020.08.12-12_37_39

 

It posts the data to the external site but the flow itself is always marked as "failed" as you can see here: screenshot-us.flow.microsoft.com-2020.08.12-12_38_24

 

After so many "failed" run the flow is automatically disabled which I don't want happening. What am I doing wrong? Thank you in advance for any help!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resident Rockstar
Resident Rockstar

Re: http post - header issue?

@ExtremeLeadProg  You need to access to Windows hosting, I just created a collection in Postman and created a Custom Connector 😊.

 

Yes, you are right just an HTTP and it not working. You can report it to Power Automate support team.

View solution in original post

9 REPLIES 9
Highlighted
Resident Rockstar
Resident Rockstar

Re: http post - header issue?

@ExtremeLeadProg To isolate the problem, can you please try the same request using a REST client such as PostMan or ARC.

 

If you get a successful response(200) in the REST client then the same should work in the Power Automate HTTP action

Highlighted
Regular Visitor

Re: http post - header issue?

@CFernandes It seems to work ok in ARC: screenshot-nimbus-capture-2020.08.12-14_12_38

 

The specific error in flow says: Http request failed: 'The character set provided in ContentType is invalid. Cannot read content as string using an invalid character set.'.

 

This is what I have in there: screenshot-us.flow.microsoft.com-2020.08.12-14_16_32

Highlighted
Resident Rockstar
Resident Rockstar

Re: http post - header issue?

Highlighted
Regular Visitor

Re: http post - header issue?

@CFernandes Does that bug apply here? That is talking about an "HTTP request" trigger. I am talking about an "HTTP" post action. Maybe it is all tied together somehow?

 

Maybe I should have posted a screenshot of the entire flow. As you can see here it is triggered by a "HTTP request" but it posts a row into a google sheet, sends a couple emails and then also posts into another system fine ( though I was able to make those work ok by using GET ) and unfortunately where I want to post this data can't use GET:

 

screenshot-us.flow.microsoft.com-2020.08.12-14_47_58

Highlighted
Resident Rockstar
Resident Rockstar

Re: http post - header issue?

@ExtremeLeadProg 

 

Can you please paste the details of the HTTP request in text(URL, Header, Body) so that I can try it on my tenant with the HTTP trigger.

Highlighted
Regular Visitor

Re: http post - header issue?

@CFernandes Sure, thanks for checking, here you go:

 

Method - Post

URI - https://patrickkellyppl.pw/pk25883/form.php?form=1

Headers:

Enter Key: Content-Type

Enter Value: application/x-www-form-urlencoded

Body: CustomFields[1]=@{triggerOutputs()['relativePathParameters']['Firstname']}&email=@{triggerOutputs()['relativePathParameters']['Email']}&CustomFields[7]=@{triggerOutputs()['relativePathParameters']['Phone']}

 

You can replace body with something like this just to test: CustomFields[1]=Mike&email=test@test.com&CustomFields[7]=1234567890

 

Hopefully that is what you were looking for, thanks again.

Highlighted
Resident Rockstar
Resident Rockstar

Re: http post - header issue?

Howdy @ExtremeLeadProg ,

 

Just checked with HTTP connector getting the same error.

 

CFernandes_0-1597338487895.png

 

So I decided to to create a PostMan collection(v1) exported it and tried creating a custom connector( You can refer my blog - https://clavinfernandes.wordpress.com/2019/11/01/soap-custom-connectors-in-microsoft-flow/)

 

And then used it in the Power Automate I got a response.

 

 
 

Untitled.png

 

The response body I get 

 

<html>
<head>
<style>
body {
margin: 0px;
}

#content {
border: 1px solid #EFECBA;
width: 300px;
height: 150px;
background-color: #FBFAE7;
padding:20px;
top: 50%;
left: 50%;
position: absolute;
}

#container {
width: 100%;
height: 100%;
font: 11px tahoma;
position: absolute;
top: -75px;
left: -150px;
}

</style>
</head>
<body>
<div id="container">
<div id="content"><b>An error has occurred.</b><br /><br /> An error(s) has occurred while trying to subscribe you to our contact list:<br /> <br/>-You are already subscribed to list Big Home Business <br /><br /> <a href="javascript&colon;history.back()">&laquo; Go Back</a></div>
</div>
</body>
</html>

 

Let me know if the above helps... 

 

Highlighted
Regular Visitor

Re: http post - header issue?

@CFernandes Unfortunately, I do not have access to Windows hosting and this seems like a lot of trouble for something that should just work?

 

It's just a simple HTTP post, who do we contact to get extra help? I'm new here, is there a real support channel for Flow?

 

EDIT: I found the support channel and submitted a ticket let's see what they say, thanks for your help so far.

Highlighted
Resident Rockstar
Resident Rockstar

Re: http post - header issue?

@ExtremeLeadProg  You need to access to Windows hosting, I just created a collection in Postman and created a Custom Connector 😊.

 

Yes, you are right just an HTTP and it not working. You can report it to Power Automate support team.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

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.

Top Solution Authors
Top Kudoed Authors
Users online (6,676)