Reputation: 131
We were using Google Maps without key and because of our traffic increase we had to create and add the API key in our JS call. But now, when we are calling the JS we are receiving this error:
RefererDeniedMapError: https://developers.google.com/maps/faq#errorcodes
In the documentation we don't see more information related to this error. With the same API key we don't have any problem to show the map in our other domains, only we have the problem in one.
Playing with the allowed referrers we have discarded problems of configuration and we don't know if maybe our domain could be banned.
The billing information was added too.
Does anyone have an idea?
Thanks!
Upvotes: 11
Views: 8793
Reputation: 13971
Javascript error in Google Maps API v3 (RefererDeniedMapError)
After a detailed research into your issue that you are currently facing,i have come across with some possible answers to your question apart from the other answers.
There are two types of Referer errors :
RefererNotAllowedMapError
The current URL loading the Google Maps JavaScript API has not been added to the list of allowed referrers. Please check the referrer settings of your API key on Google Cloud Console.
RefererDeniedMapError
Your request has not been completed. You may be able to find the more details about the error in the Google Cloud Console(please have a look).
We were using Google Maps without key and because of our traffic increase we had to create......
Requests that constitute page views are applied against the total number of page views purchased with your Google Maps API for Work license. When this limit is reached, you will need to renew your license promptly.
Please read more limitations here
Error message that you are facing may be a clear indication that you have crossed any limitations ,and that would be hard to guess at this point from this end as detailed analysis and configuration report from your account(console) is required.
Keep Checking the limitations , errors in your cloud console.
As a final call you can contact the paid support from google.
Find More references below :
Hope that would be useful .. Thanks
Upvotes: 6
Reputation: 1639
I’ve found an URL to your website in google’s thread and I was able to reproduce this problem locally. I’ve just added your host name in hosts file and addressed it to localhost. I’ve got the same error. It’s definitely domain name related problem.
I was able to make map works only using IP and path to a map page, instead of domain name, like:
<!DOCTYPE html>
<html>
<head>
<title>A page where should be a map</title>
</head>
<body>
<iframe src='http://127.0.0.1/mapa.html'></iframe>
</body>
</html>
You could try to disable IP to domain name redirection (as you have now), and use your IP in the example above. It’s not a pure solution, but at least you can have a map on your website.
Upvotes: 7