Google地方选取器无法获取位置 - 临时阻止例外

时间:2017-05-24 12:21:12

标签: android google-places-api temporary blocked

在尝试使用Google的Place Picker小部件时,我会不时收到以下错误代码:

  

e.android.gms.persistent W / Places:?:onFailure StatusCode:13,原因:   java.util.concurrent.TimeoutException 05-24 14:11:44.969   2166-2749 / com.google.android.gms.persistent E / Volley:[126]   BasicNetwork.performRequest:意外的响应代码500   https://www.googleapis.com/placesandroid/v1/searchByChain?key= ...

然后:

  

.android.gms.persistent W / GCM.HTTP:由于HTTP阻止了HTTP请求   自动退避:   https://www.googleapis.com/placesandroid/v1/getPlaceById?key= ... 05-24   14:11:51.395 2593-2859 / com.google.android.gms W / GoogleURLConnFactory:   被temporary_blocked2阻止:

而且:

   e.android.googlequicksearchbox:搜索E / RequestManagerImpl:制作   位置失败                                                                                                     java.util.concurrent.ExecutionException:   java.util.concurrent.CancellationException:任务已取消。                                                                                                         在b.b.b.get(SourceFile:116)                                                                                                         在com.google.android.apps.gsa.extradex.kato.d.l.a(SourceFile:1154)                                                                                                         在com.google.android.apps.gsa.extradex.kato.d.p.n(SourceFile:75)                                                                                                         在com.google.android.apps.gsa.extradex.kato.d.p.aE(SourceFile:19)                                                                                                         在com.google.common.util.concurrent.p.N(SourceFile:2209)                                                                                                         在com.google.common.util.concurrent.o.run(SourceFile:128)                                                                                                         在com.google.common.util.concurrent.bh $ 1 $ 1.run(SourceFile:988)                                                                                                         在com.google.android.apps.gsa.taskgraph.b.a.l.run(SourceFile:66)                                                                                                         在   java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:428)                                                                                                         在java.util.concurrent.FutureTask.run(FutureTask.java:237)                                                                                                         在   com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(的SourceFile:66)                                                                                                         在   com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(的SourceFile:139)                                                                                                         在   com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(的SourceFile:139)                                                                                                         在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)                                                                                                         在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:607)                                                                                                         在java.lang.Thread.run(Thread.java:761)                                                                                                         在   com.google.android.apps.gsa.shared.util.concurrent.a.ad $ 1.run(的SourceFile:85)                                                                                                      引起:java.util.concurrent.CancellationException:任务是   取消。

所有neccesay api都在Google控制台中启用。地方选择器实际上有效,但无法找到任何地方或地址。这似乎是暂时的,经过一段时间后它再次开始工作。

我很困惑,谷歌的地理位置api有一些限制吗?我无法找到任何信息,我很确定我的应用程序不应超过任何限制,因为它甚至还没有公开。

有什么想法吗?

2 个答案:

答案 0 :(得分:0)

这似乎是一个已知的错误。 https://issuetracker.google.com/issues/35828055Geocoder function is not working有更多信息。

答案 1 :(得分:0)

嗯,答案发现,有限制:https://developers.google.com/places/web-service/usage

  

Google Places API网络服务强制执行默认限制1,000免费   每24小时的请求,计算为客户端和   服务器端请求。如果您的应用超出了初始限制,应用   将开始失败。

但我想知道我的应用程序是如何超出这个限制的。