cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Getting 404 error on web.contents request

Hi,

 

I am looking at bringing the status of a sight back e.g. 200,404 etc.

 

However the following code works on some sites but not others :

 

let
Source = Web.Contents("https://www.google.com/shopping/ratings/account/metrics?q=hgdstye3.com&c=GB&v=2", [ManualStatusHandling={404}]),
GetMetadata = Value.Metadata(Source)[Response.Status]
in
GetMetadata

 

The above shows 200 but it should be 404

 

Any ideas ?

 

Thank you in advance

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have sorted the problem by adding IsRetry into the code so I do not get the cached value

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I have sorted the problem by adding IsRetry into the code so I do not get the cached value

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

Power BI Dev Camp Session 25 with aka link 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, August 25 at 11a PDT for a great session with Ted Pattison!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors