ShammyLevva / FTAnalyzer

Family Tree Analyzer - Finds hidden details in your family tree. Install at
http://www.ftanalyzer.com/install
Apache License 2.0
56 stars 23 forks source link

[BUG] Geocoding API errors #153

Closed philphil61 closed 4 years ago

philphil61 commented 4 years ago

Hoping this is understood (I'm no techy (screams HELP!!!!))

Version Number problem appears in 7.4.2.0

Describe the bug getting timeout x3 "Unable to contact https://maps.googleapis.com error was: The operation timed out.

Have contacted eSupport @ Google I quote from them "Thanks for the detailed explanation, I've been running some reports to find what could possibly be causing these errors, according to the information I have you are not hitting any limits with your API key A****c neither getting any error messages from Maps, the error message you are getting is not from Maps but from Family Tree Analyzer"

and (another reply) "Yes, there is usage in the console for Geocoding API however there is no errors, at the moment you are not hitting any limit so you need to check with Family tree Analyzer why is this timeout happening as it's happening internally in your software"

To Reproduce Add API as per the instructions then

  1. Go to 'Maps'
  2. Click on 'Run Google Geocoder to find Locations'

Screenshots 3 - get this message without API 5 - get this message with API - Copy

Additional context After removing API key I still get the same message

philphil61 commented 4 years ago

Does anyone know how to undue/remove the API key (think it's held in the Registry somewhere) or revert back to original software (before entering API key) Just going into options and deleting still causes the same "Unable to contact...." message

Thanks in advance

ShammyLevva commented 4 years ago

Sorry I’ve not been able to get time to look at this. My mother is now terminally ill so my focus on looking at the program has taken a back seat to family.

philphil61 commented 4 years ago

Totally understand and please take your time

ShammyLevva commented 4 years ago

I'm back so able to look at this can you tell me the steps taken to get this error message please. I need to be able to replicate it so I need to know the exact series of steps to replicate it. Lets assume you have the key in place and are doing something for the error to occur. What is the something?

philphil61 commented 4 years ago

I understand fully your situation and it's coming close to Christmas a time for family and peace. Please feel free to leave the error until the New Year if you so wish. That said I state below the actions/process (with key but get the same message without the key) After opening Gedcom (and waiting several minutes for it to load) Click Maps Click Run Google Geocoder to find Locations New window Locations Geocoding Status Report opens Within 2 mins I get new message window image Click OK Within 2 mins I get the same message as above and a 3rd time Then after clicking OK a new message window

Finished Google Geocoding.
Max Google Geolocations exceeded for today. Please wait 24hrs etc etc

Then FTA reverts to status pre Click Run Google Geocoder to find Locations

I have Teamviewer which I've used previously to help others and am prepared to allow access to you, if you so desire, so that you can check settings activate the process and see the results as it happens. All I require, for personal security, is a direct email which is secure and a time/date (especially taking into consideration of your situation) that you wish to connect via Teamviewer if that would help. Thanks

ShammyLevva commented 4 years ago

Hi there,

I'm looking to fix these outstanding issues that have been raised. Is this still a problem with v7.6.6

philphil61 commented 4 years ago

Having exhausted all previous attempts to resolve this issue I stopped using FTAnalyzer and didn't renew my Ancestry subs I tried to restart FTA but it wanted to update which it did but then took me to Microsoft Store to install latest version. After installing version 7.7.1.0 I manually uninstalled the older versions. Added API key to version 7.7.1.0 All I get now is "exceeded for today. Please wait 24hrs" message

ShammyLevva commented 4 years ago

Thanks for feedback it does seem the Google API is doing strange things and refusing connections. I kept getting request denied replies, rather than just exceeded for the day. So I'm struggling to know how it is meant to work. I'll keep plugging away though.

ShammyLevva commented 4 years ago

Further testing it seems it does TWO geocodes then times out and gives the "exceeded for the day" message. Which I've now realised isn't a good message as it's really just Google is going into timeout mode rather than it's actually over daily limit.

What I'd done was see the rate of query and if it timed out then retry with a longer timeout and again if the timeouts keep happening it was taken as a sign it had exceeded daily limit. This was previously the only way of telling if you'd hit the limit as there wasn't a direct way of counting I've done X queries of a daily limit of Y.

I'm now re-evaluating that and seeing if I can actually query the API and say what is the daily limit how close are we to the limit and show that prior to actually starting the geocoding as that I think would be a useful bit of info for all users, those with an API key and those without.

ShammyLevva commented 4 years ago

Right FINALLY - fixed it.

It turns out that the default HTTP handshake protocol had changed from 1.0 to 1.1 with Google API requests - this is more efficient but it allows various things that weren't allowed before. Eg: reusing session streams.

Turns out I'd missed a stream.close() statement so I wasn't closing the old stream before opening the new and as a result the streams were crossing and as all good GhostBusters know you don't cross the streams.

Adding in a simple stream.close() line fixed the issue.

Fixed in v7.7.2

philphil61 commented 4 years ago

Can you please point me to where I can download the latest version v7.7.2?

Microsoft Store says app is installed and version shows as v7.7.1.0 - will not update

Thanks

ShammyLevva commented 4 years ago

It takes time for all 241 Microsoft stores to update. Sometimes all it takes is to refresh the store, to get it to check for updates. I’m planning to add a how to refresh guide soon. Basically in store click Three dots buttons top right From home page and select downloads and upgrades then refresh that page and click get updates button to update.