API Key Required
Closed this issue · 0 comments
magikid commented
It looks like Google now requires an API key in order to hit their services so this plugin is effectively broken.
I followed the instructions to install the plugin. When I tried to issue the command "time in London, UK", I got back "I can't find the time at London." That seemed weird so I added some debugging statements in the code locally looking for the actual issue. Here's what I found:
Json response from Google
{
error_message: 'You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account',
results: [],
status: 'REQUEST_DENIED'
}
Error fetching time
[Error: no address found
at /app/node_modules/hubot-timezone/src/timezone.coffee:48:9, <js>:39:18
at IncomingMessage.<anonymous> (/app/node_modules/scoped-http-client/src/index.js:95:22)
at IncomingMessage.emit (events.js:323:22)
at endReadableNT (_stream_readable.js:1204:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
]
This plugin should be updated to have the API key passed into the URL.