获取“提供的 API 密钥已过期".使用 Places API 时出错

问题描述:

我已经从 Google 控制台为 Places API 密钥生成了服务器密钥.但是每当我点击服务时,我都会收到提供的 API 密钥已过期"错误.

I have generated Server key from Google console for Places API key. But whenever i am hitting the service i am getting " The provided API key is expired " error.

我尝试重新生成密钥,但仍然出现相同的错误.

I have tried regenerating the key but still got same error.

我也遇到了同样的问题...但最终得到了解决.Google 地方服务需要 10 分钟才能为创建的新 API 密钥提供服务.服务将在 10 分钟后开始工作,直到那时我们收到错误消息提供的 API 密钥已过期".

I have faced same issue... But finally got resolved. Google place services will take 10 minutes to make the services available for new API KEY created. Services will start working after 10 minutes, till then we get error as "The provided API key is expired."