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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.