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 摘要。