Local Weather: Receiving Error 403

My code retreived the user’s geolocation when testing earlier. Now with the same code I am getting a 403 error.

Codepen: https://codepen.io/Ag_Yog/pen/wqgzNE.

Is there a limit on how many times the code:
if(navigator.geolocation){ navigator.geolocation.getCurrentPosition(getLocation, errorHandler); } else { errorHandler('Gelocation not supported'); }
can be used?

Thanks for any help

this seems to be a problem for at least several people at the moment. It’s very strange. in trying to help the last person that posted the same problem I found that my solution wasnt working anymore on chrome on a windows 10 laptop (geolocation wasnt working correctly, that is). are you on win10 too by any chance?

not sure whats wrong yet, but my guess is its not your fault. :stuck_out_tongue:

How many requests are you doing? Might be quote limit, read here Google MAP Api usage limits

There are two types of quotas that limit the usage of Google Maps APIs web services: long term (per day quota) and short term (request rate quota). If you exceed the usage limits or otherwise abuse the service, the web service will return a specific error message. If you continue to exceed limits, your access to the web service may be blocked. It is also possible to receive 403 Forbidden responses.

Seems to be well known issue.

The problem seems to have been fixed overnight. It was apparently a problem in chrome. on my computer mine works, yours works, and the poster of the other thread’s project works too.

Good luck!
your project looks pretty good btw

1 Like