Google maps javascript api 503 when loading tiles (with captcha) - javascript

My company's app is using google maps javascript api (v3) and today some people in the office have started seeing missing tiles in our app's map.
I checked the console and there's indeed a 503 error. When opening the failing url from the browser I see a page with a captcha and a message by google saying that there's too much traffic from my ip and offers a captcha.
Clicking on the captcha doesn't solve the problem in my app though...
My question is:
I understand what the problem is, but is there anyway to get around it? Why does google think i'm a bot? I checked our quotas on the api console and we're not passing them..
Thanks,
Uri

Chances are that this 503 http error is indeed your quota exceed, it's just that google statistics have not been updated yet... or you fired to many per second
Another reason it could be that you made too many incorrect requests or some other reason that got you blocked.
Try again tomorrow and chances are it will work again just don't fire to many requests.

Related

set checkStorageTask to null in analytics.js

I am working on a chrome extension and I want to use google analytics to track user data. I am trying to implement analytics.js/Universal Analytics in the same fashion as this tutorial and this tutorial and spent days trying to figure out why it wasn't working for me. Countless articles and online forums have suggested the only modifications I needed to make were setting the checkProtocolTask to null and setting the page when sending a pageview. Running analytics_debug.js, it gives me the error "Cookie write failed. Storage not available, aborting hit." All of the answers to this error online suggest a problem with the cookieDomain, but I tried various different possibilities and nothing worked for me. It was only when I tried setting checkStorageTask to null as well that it finally worked for me. But why did I need to do this, when I haven't found any other evidence of anyone else needing to do this to get analytics to work in an extension?
The checkStorageTask aborts the request if the tracker is configured to use cookies but the user's browser has cookies disabled. After some more research I discovered it is possible for a chrome extension to have it's own cookies, with the domain pointing to the extension ID, as shown in the answer to this question. Is it a problem with my browser individually, then? Or is it a larger problem that I just can't see? Any ideas are greatly appreciated!

Firebase Javascript network error

I have a Firebase app and have started playing around with the quickstart examples. I have created apps in Facebook, Google and Twitter and filled in the necessary clientId/secret information.
When testing the example pages facebook-credentials.html and google-credentials.html, everything works fine.
I am using Firebase 3.6.4 JS also.
When trying out the facebook-popup.html and facebook-redirect.html, and in fact the popup/redirect examples for Google and Twitter, I always get the following error in the Javascript console:
firebase.js:191 Uncaught Error: Network Error
at firebase.js:191
(anonymous) # firebase.js:191
This seems to happen fairly quickly, but the HTTP request is still pending. After maybe 30 seconds, I then get another message in the console:
GET https://XXXXXXX.firebaseapp.com/__/auth/iframe?apiKey=YYYYYYY&appName=%5BDEFAULT%5D&v=3.6.4&usegapi=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_GB.1grkUO4uZ2s.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Frs%3DAGLTcCMXwBvX3_duAb3Vw22ujByEbXKdJA net::ERR_TIMED_OUT
(note I have masked out my application name as XXXXXXX and API key as YYYYYYY).
Does anyone know why this is happening?
I really want to get Twitter working, but there is no twitter-credentials method, so I'll need to get the popup or redirect working.
It appears that this was a lower level issue on my PC. I haven't gotten to the bottom of it yet but the Twitter examples work on another PC. At this point I am thinking it might be my antivirus or Firewall, so I am closing this topic.
I think you're also being blocked. My application quit working, and another one that was using firebase also quit working, so we called IT. There was new security software blocking the network request. Similar errors, blank popup, that's how I ended up here.

Cannot connect to Youtube Data API V3 with javascript

So I'm building a Phonegap app and I need to access Youtube's Data API. I managed to access the simple API (The one that requires an API key) yet I'm having trouble connecting with OAuth.
I did everything the walkthrough guides told me to do, I have generated a Client ID for Web application from https://console.developers.google.com.
I'm using the auth.js file from their example at the google developers website
The main issue is that every time I try to log in, I get this error:
Refused to display
'https://accounts.google.com/o/oauth2/auth?client_id=' in
a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
I tried clearing my cookies but to no avail.
I run this on localhost with Visual Studio, maybe this has something to do with that?
Ok, so after spending some time on it I finally figured out what the problem was.
On https://console.developers.google.com when I created my OAuth 2.0 client ID there was the "Authorized JavaScript origins" field which I left blank. Since I was running it from my localhost, I added http://localhost:28299 to the list of safe origins and everything worked fine.
Of course this is just for the development phase.

Check Connectivity to Google Maps API (China Great Firewall)

I'm currently working on a platform that will be launched all over the world and I am working in Shanghai China and as you might know there is a very big Firewall policy here.
The site contains a custom map view created with the Google Maps API this is because Google allows a lot of nice features to change the look and feel of the map.
But now I'm running into a problem where if a user wants to access the site without VPN the whole page where the map is located slows down,crashes and breaks my login procedure.
Here are the errors showing in the Console View:
GET https://maps.googleapis.com/maps/api/js?key=1010101010101&sensor=true net::ERR_CONNECTION_TIMED_OUT
Uncaught ReferenceError: google is not defined
I want to know if there is a way to check if I have a connection to the Google Maps API before executing the code?
Cheers,
Koen
Checking if the API is loaded, as Keith links above, is a good way to see if the loading has had any trouble.
To minimize problems loading the API in China the Maps API FAQ recommends loading the API from http://maps.google.cn/maps/api/js and not using https.

Google Maps - sometimes tiles not loading when dragging

In general my Google Maps API V3 / Javascript application is working fine. I only have noticed one issue:
From time to time - I can not really tell when - the (new) tiles are not loaded when I drag the map. This is a bit disturbing. Since my application is used with the API V3, I do no longer use a Google Key. Closing the browser usually solves the issue.
Currently the application is in development with, so there should be no restriction due too much traffic from Google. I do not see any JavaScript issues in the console.
Any idea what this could be?
Remarks added -
My Internet connectivity seems to be OK when this happens, also I am at a proper zoom factor and in a "well defined area" where titles are available.
well I have seen this issue is mostly with the internet connectivity on the client side. Please make sure that you are not being disconnected of the net when the requests are being sent. I would watch out for that..
you can monitor your connection with some tool like : http://www.connectionmonitor.net/
FYI I am not advertising the tool, first result from google search

Categories

Resources