Announcement

Collapse
No announcement yet.

No Authorization for me

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    No Authorization for me

    I just installed the Google Calendar app and looking forward to using it. I followed the install sticky and YouTube video but I cannot get the PI to connect me to my Google account.

    I do not get the pop up when I first run it as in the video as per the install and video instructions. my gmail and calendar are open on the same browser. I tried manually entering my client id and secret as well but still a no go. Plenty of errors filling the log every 5 seconds. Any idea what I did wrong?

    Code:
    9/6/2022 7:44:04 PM AK GoogleCalendar Error [3899] 'Google Calendar': GetCalendars 'Google Calendar': (#0) GCal Authorise: System.AggregateException: One or more errors occurred. ---> System.PlatformNotSupportedException: Operation is not supported on this platform.
    at System.Net.HttpListener..ctor()
    at Google.Apis.Auth.OAuth2.LocalServerCodeReceiver.StartListene r()
    at Google.Apis.Auth.OAuth2.LocalServerCodeReceiver.d__13.MoveNe xt()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task)
    at Google.Apis.Auth.OAuth2.AuthorizationCodeInstalledApp.d__8.M oveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task)
    at Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.d__4.Mo veNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task)
    at Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.d__1.Mo veNext()
    --- End of inner exception stack trace ---
    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
    at System.Threading.Tasks.Task`1.get_Result()
    at GoogleCal.GCal.Authorise()
    ---> (Inner Exception #0) System.PlatformNotSupportedException: Operation is not supported on this platform.
    at System.Net.HttpListener..ctor()
    at Google.Apis.Auth.OAuth2.LocalServerCodeReceiver.StartListene r()
    at Google.Apis.Auth.OAuth2.LocalServerCodeReceiver.d__13.MoveNe xt()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task)
    at Google.Apis.Auth.OAuth2.AuthorizationCodeInstalledApp.d__8.M oveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task)
    at Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.d__4.Mo veNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification(Task task)
    at Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.d__1.Mo veNext()<---

    #2
    It looks like .NET version error. Please post output from Tools => Help.

    Comment


      #3
      Thanks Alex


      Code:
      Date/time=9/6/2022 9:55:03 PM Eastern Daylight Time
      Version=HS4 Pro Edition 4.2.15.0 (Windows)
      License=Registered
      Confguration File=C:\Program Files (x86)\HomeSeer HS4\Data\HomeSeerData_19_9.json
      In Virtual Machine=No MFG: asrock
      Antivirus=Windows Defender
      OS=Microsoft Windows 10 Pro - Work Station
      OS Version=10.0.19041
      Uptime=0 Days 1 Hour 34 Minutes 12 Seconds
      Lan IP=10.17.0.3 (DESKTOP-1CBSNT4)
      Device Count=1604
      Event Count=776
      Processor:=Intel64 Family 6 Model 165 Stepping 5 at 3.54 GHz
      Modules/Threads=139 Modules, 210 Threads
      Available Threads=1023
      System Load=340 Processes, 11% Load
      Free/Total Memory=21.48 GBytes / 31.90 GBytes (67% free)
      Free/Total Virtual Memory=23.56 GBytes / 36.65 GBytes (64% free)
      HomeSeer Memory Used=207 Mbytes
      Plugin Memory Used=29 EXE Plug-Ins using 1 Gbytes
      Plugins Installed=AK GoogleCalendar 4.0.4.0,APCUPSD 3.3.2.3,Arduino 4.0.2.7,BLBackup 2.0.63.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,DeviceCompare 1.0.6890.36333,EasyTrigger 3.0.0.75,Honeywell WiFi Thermostat 3.1.0.4,HSBuddy 4.33.906.1,IFTTT 3.0.2.1,NetCam Plugin 1.0.0.6,PHLocation2 3.0.0.64,Pushover 3P 0.0.0.52,Restart 1.0.0.7,rnbWeather 4.4.0.0,SDJ-Health 3.1.0.9,Sonos 3.1.0.57,Tesla Vehicles 1.9.0.1,Twilio Messaging 0.2.3.0,UltraCID3 3.0.6681.34300,UltraECM3 3.0.6678.32449,UltraLighting3 3.0.7806.24993,UltraM1G3 3.0.6922.16073,UltraNetCam3 3.0.6413.20219,UltraWeatherWU3 3.0.7806.23606,X10 3.0.0.61,Z-Wave 4.0.3.0

      Comment


        #4
        Thank you, can you please also check .NET version:

        (1) To check the version of the .NET Framework with Command Prompt, use these steps:
        1. Open Start.
        2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
        3. Type the following command
        Code:
        reg query "HKLM\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4" /s
        (2) To check the .NET version with PowerShell, use these steps:
        1. Open Start.
        2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
        3. Type the following command
        Code:
        Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name version -EA 0 | Where { $_.PSChildName -Match '^(?!S)\p{L}'} | Select PSChildName, version

        Comment


          #5
          Or may be just install .NET 4.7.2

          https://dotnet.microsoft.com/en-us/d...-web-installer

          Comment


            #6
            Here is list .NET versions using powershell

            PSChildName Version
            ----------- -------
            v2.0.50727 2.0.50727.4927
            v3.0 3.0.30729.4926
            Windows Communication Foundation 3.0.4506.4926
            Windows Presentation Foundation 3.0.6920.4902
            v3.5 3.5.30729.4926
            Client 4.8.04084
            Full 4.8.04084
            Client 4.0.0.0

            .NET Framework 4.7.2 or a later update is already installed on this computer

            Comment


              #7
              Hmm... The exception comes from Google library Google.Apis.Auth.OAuth2, not my code, so I need to Google...

              Comment


                #8
                Some posts suggest Firewall issues, do you have any specific network or Firewall configuration?

                Comment


                  #9
                  not that I know of. I haven't made any firewall changes since HS3 last weekend. I disabled all Windows Defender firewall but the same issue. Its strange. Thanks for looking, I will keep working on it.

                  Comment


                    #10
                    Can you try HS3 plugin version for now?

                    Comment


                      #11
                      I must have tried that one in the past as it won't run? I can't win today

                      9/7/2022 8:34:50 AM HomeSeer Info Plugin AK Google Calendar has connected. IP:127.0.0.1:28402
                      9/7/2022 8:34:50 AM HomeSeer Error Cannot load plugin AK Google Calendar, no license or trial expired

                      Comment


                        #12
                        Ok, I'll keep Googling. But you can ask HST support to reset trial license.

                        Comment


                          #13
                          Alex I just installed HS4 on my laptop and successfully ran AK Google Calendar so I can say it definitely has to do with something on my Homeseer desktop PC. I am going to try and move my existing HS files to the laptop, with exception of your PI files, and try again. I'll report back.

                          Comment


                            #14
                            By any chance you run HS as a service?

                            Comment


                              #15
                              no. I have the app in my startup folder and loads each time my system reboots.

                              Comment

                              Working...
                              X