encountered JAVA com.google.apphosting.api.ApiProxy$CallNotFoundException when using geocoding in GCP app-engine
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 20/100
Hướng nghiên cứu
Bắt đầu với GaePendingResult.await trong stack trace và cách sử dụng GaeRequestHandler.Builder được nêu trong báo cáo. Tái hiện lệnh gọi reverse geocoding trong môi trường App Engine đã nêu, sau đó so sánh hành vi và hướng dẫn từ issue 672. Được xem là hoàn thành khi xác định được cách sử dụng này có được hỗ trợ hay không, đồng thời ghi lại hoặc sửa hành vi liên quan của thư viện client.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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!
- Ngôn ngữ chính
- Java
- Star
- 1.8k
- Fork
- 972
- Merge trung bình
- 5 giờ 7 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googlemaps/google-maps-services-java
-
PlacesApi.placeDetails(context, placeId).await() interface errorCó thể đã có người làm @madtriceps đã nhận 99 ngày trước. Đang mởtriage me type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
-
[email protected]Đang mởtriage me type: feature request
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
-
Bagg hacmĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
googlemaps/google-maps-services-java#1059 · 1 reaction ·
-
Issue in java daĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
-
Issue in java daĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
Tất cả issue của googlemaps/google-maps-services-java
Issue tương tự
-
Area-UIUX Issue-Bug Issue-Easy (good first issue)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
TeamAmaze/AmazeFileManager#4769 ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Expose SManga.memo & SChapter.memo fields in GraphQL APIs to support source-specific client featuresĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Suwayomi/Suwayomi-Server#2551 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
weaviate/java-client#631 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày