11

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!

7
  • 1
    The error is posted here, but it's not very descriptive. I suggest you check your credentials in the developer console and make sure you have added the domain which you experience the issue on.
    – Andy
    Jun 22, 2015 at 17:43
  • Thank you Andy. I already do it and the credentials are ok with the allowed domains introduced. We didn't found any information about this error and there is no way to speak with anybody from Google maps :(
    – GusB
    Jun 23, 2015 at 9:34
  • Hi! Is there any news regarding this? I'm facing the same problem. Thanks!
    – Ivo
    Jul 21, 2015 at 11:56
  • 1
    Can you provide the URL of the site your having the issue with? that would help. Jul 22, 2015 at 1:29
  • 1
    @GusB Make sure you have the correct domains. If your domain name is like mydomain.com then Google recommends to add them like *.mydomain.com/*. Jul 24, 2015 at 12:13

2 Answers 2

7

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.

6
+500

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 :

  1. 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.

  2. 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......

  1. What are the usage limits for the Google Maps JavaScript API v3?
  2. What are the usage limits for the Google Earth API?

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 :

  1. Google terms

  2. Keys FAQ

  3. SO post on multiple APIs

Hope that would be useful .. Thanks

2
  • Just to be clear: I posted that solution (IP instead of domain name) into the google thread 3 days ago. Then I posted it here. It's a second time for today, when I saw a link to my solution in the google thread here. Jul 28, 2015 at 12:05
  • The current URL loading the Google Maps JavaScript API has not been added to the list of allowed referrers. is it mean we have to add each url of the domain where we have map? Jul 18, 2016 at 14:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.