This project has moved and is read-only. For the latest updates, please go here.

v1.2.4.7 proxy .pac file fails to connect to Google

Apr 13, 2015 at 12:29 AM
Ok, under 1.2.4.6 and earlier, the sync worked fine.
The addition of the proxy changes have broken this for me, it is possibly a setting I can change, but I'll advise all the info I can to see what the story is.

I think the main point here is that my business admin uses the 'automatic configuration script' method to apply the proxy details, i.e. work proxy when I'm connected to work, no proxy when I'm at home (laptop).
So there are no actual proxy settings in the IE settings.

So when I update to 1.2.4.7 I start to get the following error:
Web request to 'https://accounts.google.com/o/oauth2/token' failed.

Obviously, I could hard code in my work proxy, but then the sync won't work when I'm at home, and vice versa.

If I revert back to 1.2.4.6 it works as expected and makes connection to Google.

I have the settings.xml and OGcalsync.log file that can be provided upon request.

My laptop
Win8, Outlook 2013

TIA
Apr 13, 2015 at 2:07 PM
Thanks for reporting this. I've hijacked Issue 41 and posted a hotfix there, if you could give it a try?

Thanks
Apr 14, 2015 at 12:29 AM
Nailed it! Great work.

Migrated to 1.2.4.7 with the hotfix from Issue 41 and it's working as expected, thanks!
Marked as answer by phw198 on 4/15/2015 at 2:52 PM
Apr 14, 2015 at 7:07 AM
I tried both 1.2.4.7 & issue 41, they can work properly if I set with right poxy server. I got same 'https://accounts.google.com/o/oauth2/token' failed error message if I set with 'no proxy or 'inherit IE'
Apr 16, 2015 at 2:44 AM
I am using 1.2.4.8
I also am subject to a proxy.pac file.

In the log I get:
Unable to get the list of Google Calendars. The following error occurred:
Web request to 'https://accounts.google.com/o/oauth2/token' failed.
=> Check your network connection.

Let me know if you want me to start a new thread.
Apr 16, 2015 at 10:51 PM
Hi Tangram

For pac files, I think you just need to make sure you have internet access through Internet Explorer before you use the sync tool.

Open IE and navigate to a web site, then try getting the list of Google Calendars again. Let me know if that works.
Apr 17, 2015 at 9:34 AM
Hi phw,

That does not work. I am looking at this site with IE so can get to external sites easily.

However when I run the app, I need to Retrieve Calendars (this is the first time).

The app triggers the google auth page with the code on it correctly (again, this is successful external navigation), and I can cut and paste it.

However on submission of that code I immediatly get a pop up that says:
"Failed to retrieve Google calendars.
Please check the output on the Sync tab for more details."

The Sync tab still says:
Unable to get the list of Google Calendars. The following error occurred:
Web request to 'https://accounts.google.com/o/oauth2/token' failed.
=> Check your network connection.

Any other thoughts?