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

Errors setting up an HTTP Request flow

Hi Flow experts, I am trying to learn some advanced features in Flow - setting up my own API to upload a file - using some excellent tutorials from John Liu: http://johnliu.net/blog/2017/7/building-non-json-webservices-with-flow

 

When I set up an identical flow as the one in John's post above, it constantly fails.

1) When I specify a header in Postman (Content-Type:Multipart/Form-data the Flow fails in the Compose with the error message:

 

InvalidTemplate. Unable to process template language expressions in action 'Compose' inputs at line '1' and column '1541': 'The template language function 'triggermultipartbody' failed to retrieve multipart contents from outputs. The supported multipart content type is 'multipart/*' and the provided content type is 'multipart/form-data'. '

 

2) If I remove the Content-Type header and resubmit the Flow via Postman, Flow reports that the flow has Succeeded, but I cannot view the status and when I try  to view the status it causes a different error:

It looks like something went wrong

Please try again in a few minutes or refresh the page now.

 

If you contact support, you may be asked to provide the following details:

Time:
Server/Client Correlation ID: [removed]
Error: Unexpected token � in JSON at position 0

 

Any suggestions would be greatly appreciated!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
courtneo
Level: Powered On

Re: Errors setting up an HTTP Request flow

On further investigation this appears to have been a bug in the HttpRequest trigger that was just fixed in the past couple days - was not handling correctly unusual characters in dynamic token values. This would explain why Michael was no longer able to repro this issue when he last tried. Please let us know if you continue having trouble with it.

6 REPLIES 6
Community Support Team
Community Support Team

Re: Errors setting up an HTTP Request flow

Hi @ShaneH,

 

Thanks for the feedback.

Issue could be reproduced from my side.

The error message from my side is the following:

21.PNG

I will forward this from our channel, and if I got any response, I will post back.

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

Re: Errors setting up an HTTP Request flow

Hi @ShaneH,

 

I checked again and now there is no errors when trying to view the flow running details.

Would you please take a check from your side?

37.PNG

 

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

Re: Errors setting up an HTTP Request flow

On further investigation this appears to have been a bug in the HttpRequest trigger that was just fixed in the past couple days - was not handling correctly unusual characters in dynamic token values. This would explain why Michael was no longer able to repro this issue when he last tried. Please let us know if you continue having trouble with it.

Wolfgang
Level: Powered On

Re: Errors setting up an HTTP Request flow

Hello, the bug seems to be back

same as at the OP...

Is there any workaround?

Wolfgang
Level: Powered On

Re: Errors setting up an HTTP Request flow

Hy i m having trpubble with it
RaviChandra
Level: Powered On

Re: Errors setting up an HTTP Request flow

Anybody able to solve this bug? I am still getting this error in my tenant. Please let me know.

 

The template language function 'triggerMultipartBody' failed to retrieve multipart contents from outputs. The supported multipart content type is 'multipart/*' and the provided content type is 'application/x-www-form-urlencoded'. '.

 

Ravi

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fourthImage

Australia Summit

Travel to Melbourne and network with thousands of peers!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 200 members 3,666 guests
Recent signins:
Please welcome our newest community members: