Shared-Reality-Lab / IMAGE-server

IMAGE project server components
Other
2 stars 7 forks source link

Google maps inconsistently returns valid lat/lng for a placeID #871

Open jeffbl opened 2 months ago

jeffbl commented 2 months ago

Jeremy tried getting renderings for this map: https://www.permatex.com/contact/

But received no renderings, just a "IMAGE cannot interpret" message. This is likely because the autour preprocessor failed (log below), and there seems to be a separate issue with OSM, so it doesn't return results for this map either (#870).

autour-preprocessor-1          | 2024-08-19T13:34:05.388097115Z [2024-08-19 13:34:05 +0000] [7] [DEBUG] POST /preprocessor
content-categoriser-1          | 2024-08-19T13:34:05.388099599Z DEBUG:root:Received request
autour-preprocessor-1          | 2024-08-19T13:34:05.388260984Z DEBUG:root:Received request
content-categoriser-1          | 2024-08-19T13:34:05.395010364Z INFO:root:Request is not a graphic. Skipping...
autour-preprocessor-1          | 2024-08-19T13:34:05.403767399Z DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): maps.googleapis.com:443
autour-preprocessor-1          | 2024-08-19T13:34:05.724819685Z DEBUG:urllib3.connectionpool:https://maps.googleapis.com:443 "GET /maps/api/place/textsearch/json?query=PermatexInc.(HQ)6875ParklandBlvd,Solon,OH44139&key=AIzaSyCGPAOw7BspKyHcT8PTz5uxH05nLpk9fWI HTTP/11" 200 80
autour-preprocessor-1          | 2024-08-19T13:34:05.725361847Z ERROR:root:No results found for placeID
autour-preprocessor-1          | 2024-08-19T13:34:05.725373399Z ERROR:root:{'html_attributions': [], 'results': [], 'status': 'ZERO_RESULTS'}
autour-preprocessor-1          | 2024-08-19T13:34:05.725377767Z ERROR:root:Invalid map place received. Unable to find Lat/Lng
orchestrator-1                 | 2024-08-19T13:34:05.725976265Z Error occured on fetch from http://autour-preprocessor:5000/preprocessor

But then a short time later, it seems to succeed for the same query:

autour-preprocessor-1          | 2024-08-19T13:36:57.203879883Z DEBUG:root:Received request
content-categoriser-1          | 2024-08-19T13:36:57.204325613Z INFO:root:Request is not a graphic. Skipping...
autour-preprocessor-1          | 2024-08-19T13:36:57.205042133Z DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): maps.googleapis.com:443
autour-preprocessor-1          | 2024-08-19T13:36:57.606878640Z DEBUG:urllib3.connectionpool:https://maps.googleapis.com:443 "GET /maps/api/place/textsearch/json?query=PermatexInc.(HQ)6875ParklandBlvd,Solon,OH44139&key=AIzaSyCGPAOw7BspKyHcT8PTz5uxH05nLpk9fWI HTTP/11" 200 2118
autour-preprocessor-1          | 2024-08-19T13:36:57.607734884Z DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): isassrv.cim.mcgill.ca:443
autour-preprocessor-1          | 2024-08-19T13:36:59.828569735Z DEBUG:urllib3.connectionpool:https://isassrv.cim.mcgill.ca:443 "GET /autour/getPlaces.php?framed=1&times=1&radius=250&lat=41.3730466&lon=-81.4510732&condensed=0&from=transit%7Cosmxing%7Cosmsegments%7Cfoursquare&as=json&fsqmulti=1&font=9&pad=0 HTTP/11" 200 None
autour-preprocessor-1          | 2024-08-19T13:36:59.861582305Z DEBUG:root:Sending response

Is this just the Google maps API being janky? Network issue on our end? Unsure why this service would work sometimes and not others... Note that there is a difference in the two maps request log lines, in terms of the (I assume port numbers) at the end.

jaydeepsingh25 commented 3 weeks ago

@jeffbl I am unable to reproduce the issue. Can you please retry if you are still facing this issue?

jeffbl commented 2 weeks ago

This morning I cannot reproduce either, from McGill. However, I get a zero-length audio file, and the debug section is all messed up, but those are separate issues (#903)