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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.