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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply

Web.Content DataSource Error

Hello, there!

 

I try to get data from web service and get an error:

let
            data = Json.FromValue([token="token",dateFROM="2020-08-01",dateTo="2020-09-01",format="JSON"]),
            headers = [#"Content-Type"="application/json"],
            web = Web.Contents("https://online.petrolplus.ru/public-api/v1/transaction-list", [ Content = data, Headers = headers, ManualStatusHandling = {404, 400}]),
            result = Json.Document(web),
            #"Converted to Table" = Record.ToTable(result)
        in
            #"Converted to Table"

DataSource.Error: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
Details:
https://online.petrolplus.ru/public-api/v1/transaction-list

 

Can somebody explain me what i can do to exclude this error?

Try to uwrap VPN and block cookies, without result:(

1 ACCEPTED SOLUTION

Solution:

 

1. Download СharleskProxy, run it.

2. Set SSL Proxying settings for yours site

Bessonnizza1992_0-1600439387155.png

3. Block cookies setting for you site

Bessonnizza1992_1-1600439416228.png

 

4. Enjoy data 🙂

 

View solution in original post

2 REPLIES 2

Solution:

 

1. Download СharleskProxy, run it.

2. Set SSL Proxying settings for yours site

Bessonnizza1992_0-1600439387155.png

3. Block cookies setting for you site

Bessonnizza1992_1-1600439416228.png

 

4. Enjoy data 🙂

 

Fiddler Web Debbuger tell me than request returns me data (2654) and http code 200 (ok):

Bessonnizza1992_0-1600347749559.png

But PQ can't transform it.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.