Page 24 of 25

Re: PlaneAlerter 2.0

Posted: Thu Sep 26, 2019 10:00 am
by G0ISW
malachi wrote:
Thu Aug 15, 2019 10:50 pm
kiwikieran wrote:
Thu Aug 08, 2019 9:01 pm
Hi Dom,
Thank you for the latest update,
How ever still throwing errors left right and centre,
1: Can't load newton json
2: planealerter.setting threw an exception error
3: Can not load the JSON, throwing a time out or abort error
I moved the executable into the lib folder where newton json resides and it's working perfectly now.
Thanks for this programme executable fix, I had the same problem and this resolved it. However I am now getting the same Twitter 'Tweetinvi.AuthFlow' error others have recently mentioned so am stuck for now.

Re: PlaneAlerter 2.0

Posted: Fri Sep 27, 2019 12:49 am
by darrylcn
Anyone else lose Google Maps in their alert emails? I haven’t had a map the last few days (it just says Loading Map in the email where the image should be.. Tried older versions but no change, and my old emails no longer work either. I can load google maps on my VRS site though so I think my key is ok.

Re: PlaneAlerter 2.0

Posted: Fri Sep 27, 2019 9:37 am
by G0ISW
darrylcn wrote:
Fri Sep 27, 2019 12:49 am
Anyone else lose Google Maps in their alert emails? I haven’t had a map the last few days (it just says Loading Map in the email where the image should be.. Tried older versions but no change, and my old emails no longer work either. I can load google maps on my VRS site though so I think my key is ok.
I only started using this software yesterday, however whilst testing the e-mail alerts I also had exactly the same as you, no map just 'loading map' instead

Re: PlaneAlerter 2.0

Posted: Sun Sep 29, 2019 1:49 pm
by darrylcn
Yeah the fact that even old email maps don’t work makes it look like Googles fault but my API key is still valid and working on my plane map in VRS. I don’t know what else to do to troubleshoot it other than that. Hopefully someone here will know.

Re: PlaneAlerter 2.0

Posted: Thu Oct 03, 2019 5:11 pm
by darrylcn
I MAY have found the issue, although I don’t know a whole lot about this stuff.

I pulled the URL for the map out off the “Loading Map...” error in my email and pasted it into a browser. The message from Google in the resulting page load was

“The Google Maps Platform server rejected your request. Invalid request. Missing the 'size' parameter.“

I noticed that there IS a size parameter but it has & in front of it. When I changed that &amp to just say & I got a new error:

“The Google Maps Platform server rejected your request. You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account

Since I was getting somewhere I switched the &amp in front of the API key in the URL to also just say &, and that generates the error


“The Google Maps Platform server rejected your request. You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/projec ... ing/enable Learn more at https://developers.google.com/maps/gmp-get-started



So from what I’m seeing my issue is twofold - one being the formatting of the URL in PlaneAlerter (“$amp;” instead of “&” signs in the URL isn’t working, at least anywhere I’ve pasted it) and the second is the API Key that Dom placed in the PlaneAlerter email output code isn’t attached to a billing account in Google and is being blocked from loading. If I change the URL to only contain & and replace Dom’s key with my own, I get a map.

Just my findings, I’m no Java guru but wanted to pass along the info if it helps troubleshoot.

Re: PlaneAlerter 2.0

Posted: Fri Oct 04, 2019 12:50 am
by darrylcn
Me again..

So the core.cs has (as could be expected) correctly formatted things like "&size=800x800", meaning something else is adding the &amp stuff. The API key's there too in that file.

Re: PlaneAlerter 2.0

Posted: Fri Oct 04, 2019 1:27 pm
by darrylcn
Last post on this for a bit. It’s really my own notes at this point heh.

Anyway the issue is Dom’s hardcoded Maps API Key expiring, if expiring is the correct word. I was editing the URL as html, which was adding the amp. So the only issue is his key. Hopefully he will read this and update it or whatever needs to happen. It looks like it’s no longer associated with an account.

Re: PlaneAlerter 2.0

Posted: Sun Oct 06, 2019 1:01 am
by darrylcn
Ok just a heads up - I learned a bit about C# and after a ton of headaches got Visual Studio running on what was just a VRS/PlaneAlerter pc hehehe. I edited the core.js and replaced Doms API key with my own and am now receiving emails with maps as normal. If you read this Dom I Hope I’ve helped with the troubleshooting at least.

Re: PlaneAlerter 2.0

Posted: Sun Oct 06, 2019 8:20 am
by Dom2364
Just added billing to my google account and it seems like the maps are fixed! Thanks darrylcn for the help, saved me a bunch of time troubleshooting. Luckily google has a $200 free credit per month so I won't have to pay each time a map loads in an email. I'm working on fixing the Tweetinvi.AuthFlow error at the moment, I'm thinking its an issue with Tweetinvi not being able to find the Autofac.dll file, one of its dependencies.

Re: PlaneAlerter 2.0

Posted: Sun Oct 06, 2019 9:09 am
by Dom2364
New update, added the PlaneAlerter.exe.config file to the zip which is the file that tells the program that the dll's are in the lib folder (Should fix most of the issues). Also fixed the aircraft photos in emails, the radar url warning and added error handling for when it can't decode the AircraftList.json response.

Download: https://github.com/Dom2364/PlaneAlerter/releases/latest