question

80783689 avatar image
0 Votes"
80783689 asked MayankBargali-MSFT edited

Logic App error in HTTP GET request InvalidPartialContent



I created a Logic App Standard Consumption where I would like to download a file by chunk. I customized the host file by adding Runtime.FlowRunRetryableActionJobCallback.MaximumContentLengthInBytesForPartialContent. The problem is that the connector seems ignoring the header I sent though HTTP request. As you can see from screenshot the server is sending the correct Content-Range header, but Logic App is not reading correctly. From postman I dont have same issue,

InvalidPartialContent. The response is not a valid partial content response. A subsequent partial content response should contain a valid content-range header. The starting range index '5000' in the response is not equal to starting range index requested in the request '0'.

194723-screenshot-2022-04-20-134808.jpg


azure-logic-apps
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@EmanueleBaratelliC-1555 Thanks for reaching out and apology for the inconvenience due to this issue.
As per the screenshot I can see you are passing the Range header whereas you need to pass the content-range header. I have tested the same at my end and couldn't observe any issue.

194371-image.png

Feel free to get back to me if you need any assistance.

0 Votes 0 ·
image.png (28.0 KiB)
80783689 avatar image 80783689 MayankBargali-MSFT ·

Thanks for feedback. From my knowledge Content-Range is an header of the response and not in the request. Infact if I put in the request, the I get 200 status and not 206 as partial response. At the same time if I put both range and content-range I still have the same issue.

0 Votes 0 ·

@EmanueleBaratelliC-1555 My bad and thanks for your response. The response code should be 206 for partial content. Let me review it and will get back to you.

0 Votes 0 ·

0 Answers