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

Get Fabric certified for FREE! Don't miss your chance! 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
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.