Setting `strictBounds` to true results in increase in UnknownErrorException in the autocomplete api

未关闭
#1,009 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
java
领域
api

调研方向

从 PlaceAutocompleteRequest.java 开始,重点查看 Response.getError,并追踪 strictBounds=true 是如何转换到 autocomplete 请求中的。通过 ApiException.from 和 OkHttpPendingResult 这条已报告的堆栈路径复现 UnknownErrorException,然后确定原因是请求处理导致的,还是 upstream API 响应导致的。原因得到确认,并且该行为已解决或通过验证得到清晰记录,即表示完成。

由索引模型根据 Issue 内容生成。

描述

com.google.maps.errors.UnknownErrorException: An unexpected error occurred. Status: INTERNAL, Message: null
	at com.google.maps.errors.ApiException.from(ApiException.java:93) ~[google-maps-services-2.2.0.jar!/:?]
	at com.google.maps.PlaceAutocompleteRequest$Response.getError(PlaceAutocompleteRequest.java:234) ~[google-maps-services-2.2.0.jar!/:?]
	at com.google.maps.internal.OkHttpPendingResult.parseResponseInternal(OkHttpPendingResult.java:316) ~[google-maps-services-2.2.0.jar!/:?]
	at com.google.maps.internal.OkHttpPendingResult.parseResponse(OkHttpPendingResult.java:230) ~[google-maps-services-2.2.0.jar!/:?]
	at com.google.maps.internal.OkHttpPendingResult.await(OkHttpPendingResult.java:184) ~[google-maps-services-2.2.0.jar!/:?]
	at com.google.maps.PendingResultBase.await(PendingResultBase.java:61) ~[google-maps-services-2.2.0.jar!/:?]
	...

this is stack trace, i am not able to further identify the cause, what is causing these exception internally. Seeking help to debug these issues and resolve them appropriately.

主要语言
Java
星标
1.8k
派生
972
平均合并
5 小时 7 分钟
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

googlemaps/google-maps-services-java 的其他 Issue

查看 googlemaps/google-maps-services-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。