【发布时间】:2013-02-15 20:13:56
【问题描述】:
我一直在我的应用程序中使用 Google Places API。客户端代码是用 Java 编写的。几周前它工作正常,突然在调用 API 时开始抛出以下异常:
javax.net.ssl.SSLException: hostname in certificate didn't match: <maps.googleapis.com/209.85.175.95> != <*.googleapis.com> OR <googleapis.com> OR <*.googleapis.com>
我正在使用以下 URL 进行 API 调用:https://maps.googleapis.com/maps/api/place/search/json?
还尝试使用从 Google API 控制台生成的不同 Google API 密钥。
有人可以指出我在这里缺少什么吗?
非常感谢
【问题讨论】:
-
请提供您用于执行 API 请求的代码示例。
-
我也遇到了同样的问题,你解决了吗?