Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
steirx
New Member

DataSource.Error : The server committed a protocol violation.

Hi,

 

The REST API I am trying to connect to is protected by a WAF (incapsula) that introducte wrongly formated cookies (for protection purpose, and I can't disable this protection). With a standar browser it works well but with Power BI Desktop I got this error "DataSource.Error : The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF".

 

How can enable the parsing of unsafe header with the Web.Content query ?

 

Thanks.

1 ACCEPTED SOLUTION

Thanks Lydia,

I have actually used a local transparent web proxy on my Window server to remove the cookies and it works now.

Regards,

Eric

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

@steirx,

I am afraid that Power BI Desktop doesn’t work with such REST API, for more details, please review the following similar threads.

https://stackoverflow.com/questions/37838007/power-bi-power-query-web-request-results-in-cr-must-be-...
https://social.technet.microsoft.com/Forums/en-US/b10b16d1-8eea-4b52-8aeb-f96ea87135fa/sectionrespon...

In your scenario, check if you can export data to other data sources, then connect to the data source in Power BI.

Regards,
Lydia

Thanks Lydia,

I have actually used a local transparent web proxy on my Window server to remove the cookies and it works now.

Regards,

Eric

Hi @steirx,

 

I have the same issue. This morning when I was setting up the connection it worked properly and I was able to get the data in Power BI, but didn't save the pbix. Now I want to re-establish the connection and I get the issue: "The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF". 

Could you give more details on your solution, please? 

 

Thanks!

Hi @pdacheva,

I have actually used a local web proxy (www.charlesproxy.com) to remove the wrongly formated Incapsula cookies.

Thanks

Hi is there somewhere I can find out how to do this please

 

Hi,

 

Is there anywhere I can find out how to do this?

 

Regards,

 

Shylo

Hi,

 

Is there anywhere I can find out how to do this?

 

Regards,

 

Shylo

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors