Forum Discussion

Digger's avatar
Digger
Icon for Post Patron rankPost Patron
5 years ago

web contents return 302

Desktop version retur error, not always but most of time

 

DataSource.Error: Web.Contents failed to get contents from 'https://www.lb.lt/' (302): Found

 

but directly in browser it working always and very well, where is problem?

https://www.lb.lt/lt/currency/buhalteriniaiexport/?csv=1&class=Lt&type=day

 

 

let
Source = Csv.Document(
Web.Contents( "https://www.lb.lt/lt/currency/buhalteriniaiexport/?csv=1&class=Lt&type=day" ),
[Delimiter=";", Columns=4, Encoding=65001, QuoteStyle=QuoteStyle.None]
),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true])

in

#"Promoted Headers"

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Digger ,

     

    302 means that the server believes the URL to have been redirected, temporarily, to an alternative address.

    I tried serval times to load the data from the provided link and didn't meet same error.

     

    Best Regards,

    Jay