cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
steks62
Frequent Visitor

Web Contents Error - Section=ResponseHeader Detail=CR must be followed by LF

Hi there, can anyone help with the below error. Can't get anything to import or find a workaround. Have tried a couple of things such as adding " cookies="ignore", useUnsafeHeaderParsing="true"  " but no luck. I'm using office 365. 

 

Full error is

 

DataSource.Error: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

 

Code is

 

 

let
    Source = Json.Document(Web.Contents("https://content.sb.danskespil.dk/content-service/api/v1/q/events-by-ids?marketIds=106715310&includeChildMarkets=true&includePriceHistory=false&includeCommentary=false&includeMedia=false", [Timeout=#duration(0, 0, 0, 2), Headers=[Language="en-US", #"User-Agent"="Mozilla/5.0", cookies="ignore", useUnsafeHeaderParsing="true"]]))
in
    Source

 

 

 

 

 

1 REPLY 1
Icey
Community Support
Community Support

Hi @steks62 ,

 

Which version of Power BI Desktop are you using?

 

I test your code with 2.91.701.0 64-bit (March 2021) and 2.91.884.0  64-bit (March 2021)No error occurrs.

 

Please install the latest one and test it again.

 

Web Contents.JPG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors