{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/14682","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/14682/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/14682/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/14682/events","html_url":"https://github.com/home-assistant/home-assistant/issues/14682","id":327326074,"number":14682,"title":"Google Maps Device Tracker CAPTCHA Errors","user":{"login":"bacumings","id":22925813,"avatar_url":"https://avatars0.githubusercontent.com/u/22925813?v=4","gravatar_id":"","url":"https://api.github.com/users/bacumings","html_url":"https://github.com/bacumings","followers_url":"https://api.github.com/users/bacumings/followers","following_url":"https://api.github.com/users/bacumings/following{/other_user}","gists_url":"https://api.github.com/users/bacumings/gists{/gist_id}","starred_url":"https://api.github.com/users/bacumings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacumings/subscriptions","organizations_url":"https://api.github.com/users/bacumings/orgs","repos_url":"https://api.github.com/users/bacumings/repos","events_url":"https://api.github.com/users/bacumings/events{/privacy}","received_events_url":"https://api.github.com/users/bacumings/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-29T13:41:21Z","updated_at":"2018-05-29T15:56:15Z","closed_at":null,"author_association":"NONE","body":"**Home Assistant release with the issue:**\r\n0.70.0\r\n\r\n**Last working Home Assistant release (if known):**\r\n\r\n\r\n**Operating environment (Hass.io/Docker/Windows/etc.):**\r\nUbuntu 16.04\r\nPython3.6\r\n\r\n**Component/platform:**\r\n[Google Maps Device Tracker](https://www.home-assistant.io/components/device_tracker.google_maps/)\r\n\r\n\r\n**Description of problem:**\r\nGoogle is flagging requests from my server as potentially being against usage terms. The request seems to be getting stuck at a CAPTCHA that the component does not know how to respond to. The device tracker entity isn't being updated as a result.\r\n\r\n\r\n**Problem-relevant `configuration.yaml` entries and (fill out even if it seems unimportant):**\r\n```\r\ndevice_tracker:\r\n  - platform: google_maps\r\n    username: !secret gmail_username\r\n    password: !secret gmail_password\r\n\r\n```\r\n\r\n**Traceback (if applicable):**\r\n```\r\nLog Details (ERROR)\r\nTue May 29 2018 09:26:12 GMT-0400 (Eastern Daylight Time)\r\n\r\nUnable to parse response :<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n<html>\r\n<head><meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"><meta name=\"viewport\" content=\"initial-scale=1\"><title>https://www.google.com/maps/preview/locationsharing/read?authuser=REDACTED</title></head>\r\n<body style=\"font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px;\" onload=\"e=document.getElementById('captcha');if(e){e.focus();}\">\r\n<div style=\"max-width:400px;\">\r\n<hr noshade size=\"1\" style=\"color:#ccc; background-color:#ccc;\"><br>\r\n<form action=\"index\" method=\"post\">\r\n<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>\r\n<div id=\"recaptcha\" class=\"g-recaptcha\" data-sitekey=\"REDACTED\"></div>\r\n<input type='hidden' name='q' value='EgRr2jICGPSptdgFIhkA8aeDS_YPKbZxcKt6UKNnJHrFrRajsvFRMgFy'><input type=\"hidden\" name=\"continue\" value=\"https://www.google.com/maps/preview/locationsharing/read?authuser=REDACTED\">\r\n<input type=\"submit\" name=\"submit\" value=\"Submit\" style=\"font-size:18px; padding:4px 0;\"><br><br><br>\r\n</form>\r\n<hr noshade size=\"1\" style=\"color:#ccc; background-color:#ccc;\">\r\n\r\n<div style=\"font-size:13px;\">\r\n<b>About this page</b><br><br>Our systems have detected unusual traffic from your computer network.  This page checks to see if it&#39;s really you sending the requests, and not a robot.  <a href=\"#\" onclick=\"document.getElementById('infoDiv').style.display='block';\">Why did this happen?</a><br><br>\r\n<div id=\"infoDiv\" style=\"display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;\">\r\nThis page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href=\"//www.google.com/policies/terms/\">Terms of Service</a>. The block will expire shortly after those requests stop.  In the meantime, solving the above CAPTCHA will let you continue to use our services.<br><br>This traffic may have been sent by malicious software, a browser plug-in, or a script that sends automated requests.  If you share your network connection, ask your administrator for help &mdash; a different computer using the same IP address may be responsible.  <a href=\"//support.google.com/websearch/answer/86640\">Learn more</a><br><br>Sometimes you may be asked to solve the CAPTCHA if you are using advanced terms that robots are known to use, or sending requests very quickly.\r\n</div>\r\n\r\nIP address: REDACTED<br>Time: 2018-05-29T13:26:12Z<br>URL: https://www.google.com/maps/preview/locationsharing/read?authuser=REDACTED<br>\r\n</div>\r\n</div>\r\n</body>\r\n</html>\r\nTraceback (most recent call last):\r\n  File \"/srv/homeassistant/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py\", line 382, in _get_data\r\n    data = json.loads(response.text.split(\"'\", 1)[1])\r\n  File \"/usr/lib/python3.6/json/__init__.py\", line 354, in loads\r\n    return _default_decoder.decode(s)\r\n  File \"/usr/lib/python3.6/json/decoder.py\", line 339, in decode\r\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n  File \"/usr/lib/python3.6/json/decoder.py\", line 357, in raw_decode\r\n    raise JSONDecodeError(\"Expecting value\", s, err.value) from None\r\njson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\r\n```\r\n\r\n**Additional information:**\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/392830702","html_url":"https://github.com/home-assistant/home-assistant/issues/14682#issuecomment-392830702","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/14682","id":392830702,"user":{"login":"Skaronator","id":2886913,"avatar_url":"https://avatars3.githubusercontent.com/u/2886913?v=4","gravatar_id":"","url":"https://api.github.com/users/Skaronator","html_url":"https://github.com/Skaronator","followers_url":"https://api.github.com/users/Skaronator/followers","following_url":"https://api.github.com/users/Skaronator/following{/other_user}","gists_url":"https://api.github.com/users/Skaronator/gists{/gist_id}","starred_url":"https://api.github.com/users/Skaronator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skaronator/subscriptions","organizations_url":"https://api.github.com/users/Skaronator/orgs","repos_url":"https://api.github.com/users/Skaronator/repos","events_url":"https://api.github.com/users/Skaronator/events{/privacy}","received_events_url":"https://api.github.com/users/Skaronator/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T15:56:15Z","updated_at":"2018-05-29T15:56:15Z","author_association":"CONTRIBUTOR","body":"Try to reduce the update interval"}}
{"actor":{"display_login":"Skaronator"}}