mercredi 7 novembre 2018

How to detect the error : This page did not load Google Maps correctly?

Let's say I have a website to check every now and then to see if it works properly and I want to do it automatically with the help of coding in R.

As an example, I might do the following every hour to check whether it gives me 404 Not Found error.

library(httr)

r <- GET("http://httpbin.org/status/404")
http_error(r)
[1] TRUE

status_code(r)
[1] 404

But my webpage uses Google Maps and sometimes I detect the following error:

This page did not load Google Maps correctly.

Is there anyone who knows how to detect such an error in a way without needing to browsing the webpage and in the same manner as explaind above?




Aucun commentaire:

Enregistrer un commentaire