encountered JAVA com.google.apphosting.api.ApiProxy$CallNotFoundException when using geocoding in GCP app-engine
還沒有人認領這個 Issue。
評估
研究方向
從堆疊追蹤中的 GaePendingResult.await 以及報告中展示的 GaeRequestHandler.Builder 用法開始。在所述的 App Engine 環境中重現反向地理編碼呼叫,然後比較 issue 672 中的行為和指引。完成的標準是確定這種用法是否受支援,並記錄或修正相關用戶端程式庫行為。
由索引模型根據 Issue 內容生成。
描述
I need to call GeocodingApi.reverseGeocode from with a java app running in an GCP app-engine. My code looks like:
context = new GeoApiContext.Builder(new GaeRequestHandler.Builder())
.apiKey("").build();
LatLng location = new LatLng(posLat, posLong);
GeocodingApiRequest request = GeocodingApi.reverseGeocode(context, location);
GeocodingResult[] results = request.await();
Running this code gives the exception:
A 2020-05-14T17:42:52.557941036Z com.google.maps.errors.UnknownErrorException: Unexpected exception from com.google.apphosting.api.ApiProxy$CallNotFoundException: Can't make API call urlfetch.Fetch in a thread that is neither the original request thread nor a thread created by ThreadManager
A 2020-05-14T17:42:52.559374731Z at com.google.maps.internal.GaePendingResult.await(GaePendingResult.java:128)
A 2020-05-14T17:42:52.559425995Z at com.google.maps.PendingResultBase.await(PendingResultBase.java:58)
A 2020-05-14T17:42:52.559438799Z at de.bit.daimler.vehicletripanalyzer.geocoding.VTA_GeoCode.getCityName(VTA_GeoCode.java:42)
A 2020-05-14T17:42:52.559526039Z at de.bit.daimler.vehicletripanalyzer.analyzer.TripAnalyzer.buildResponse(TripAnalyzer.java:50)
A 2020-05-14T17:42:52.559550842Z at de.bit.daimler.vehicletripanalyzer.analyzer.TripAnalyzer.analyseTrip(TripAnalyzer.java:43)
A 2020-05-14T17:42:52.559557289Z at de.bit.daimler.vehicletripanalyzer.rest.VTA_RestController.analyzeTrip(VTA_RestController.java:32)
A 2020-05-14T17:42:52.561769118Z at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
A 2020-05-14T17:42:52.561810065Z at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
A 2020-05-14T17:42:52.561891356Z at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
A 2020-05-14T17:42:52.561902134Z at java.lang.reflect.Method.invoke(Method.java:498)
I updated all my recources (especially google-dependencies) to the latest available versions. I also use the latest image for the GCP app engine. But still the error persists.
I guess that this issue is related to https://github.com/googlemaps/google-maps-services-java/issues/672, but there another language and API-call is used. Therefor I'm raising a new issue.
Help is urgently appreciated... Thanks a lot!
- 主要語言
- Java
- 星號
- 1.8k
- 分支
- 972
- 平均合併
- 5 小時 7 分鐘
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
googlemaps/google-maps-services-java 的其他 Issue
-
PlacesApi.placeDetails(context, placeId).await() interface error可能已有人在做 @madtriceps 於 99 天前認領。 未關閉triage me type: bug
難度 3/5 1-2 天 新手友好度 48/100
-
triage me type: feature request
難度 5/5 一週以上 新手友好度 10/100
-
Bagg hacm未關閉
難度 5/5 一週以上 新手友好度 5/100
googlemaps/google-maps-services-java#1059 · 1 個 reaction ·
-
Issue in java da未關閉
難度 5/5 一週以上 新手友好度 10/100
-
Issue in java da未關閉
難度 5/5 一週以上 新手友好度 10/100
查看 googlemaps/google-maps-services-java 的全部 Issue
相似的 Issue
-
Area-UIUX Issue-Bug Issue-Easy (good first issue)
難度 2/5 1-3 小時 新手友好度 67/100
TeamAmaze/AmazeFileManager#4769 ·
維護者通常 7 天內回覆
-
Expose SManga.memo & SChapter.memo fields in GraphQL APIs to support source-specific client features未關閉enhancement
難度 2/5 1-3 小時 新手友好度 72/100
Suwayomi/Suwayomi-Server#2551 ·
維護者通常 9 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
weaviate/java-client#631 ·
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 2 天內回覆