Announcement

Collapse
No announcement yet.

Plugin crashing/reloading constantly

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

    Plugin crashing/reloading constantly

    Hi,

    The plugin has started crashing out and constantly restarting over the last few days. Here is what I am seeing in the log:
    2/11/2024 11:21:47

    HomeSeer
    Info
    Plugin LG ThinQ with ID: LG_ThinQ and Instance: has disconnected
    2/11/2024 11:21:45

    LG ThinQ
    Info
    Unhandled exception: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: . Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() at Newtonsoft.Json.Linq.JToken.ReadFrom(JsonReader reader, JsonLoadSettings settings) at Newtonsoft.Json.Linq.JToken.Parse(String json, JsonLoadSettings settings) at HSPI_LG_ThinQ.LG_ThinQ.LG_GetDevices() at HSPI_LG_ThinQ.LG_ThinQ.LG_Start(Object Restart) at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionConte xt executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart(Object obj)

    ​Do you have any thoughts on what the issue might be?

    Thanks!

    #2
    I see the same here. I was already suprised no-one else complained about this. Not sure if everyone is affected.

    However, it does not seem there is an easy fix. Since I am out of the country for another two weeks, it might be a while before I can investigate and hopefully fix this. Sorry!
    stefxx

    Comment


      #3
      Thanks for the speedy reply!

      I was hoping it was just a temporary issue that would resolve itself so had been holding off reporting it just in case.

      Hope you have a good trip! Fingers crossed it’s not too tricky to resolve when you get back.


      Comment


        #4
        I rely heavily on this PI and I'm not seeing this behavior. I would note that when I DO have problems with this PI it is because LG has done something stupid and unnecessary on their end. Since the current complainants are in Europe, it may be geographically specific. Those outside Europe probably need to keep an eye on this as LG may have us in their sights next,
        HomeSeer Version: HS4 Pro Edition 4.2.19.0 (Windows - Running as a Service)
        Operating System: Microsoft Windows 11 Pro - Desktop
        Z-Wave Devices via two Z-Net G3s
        Zigbee Devices via RaspBee on RPi 3b+
        WiFi Devices via Internal Router.

        Enabled Plug-Ins
        AK SmartDevice 4.0.5.1,AK Weather 4.0.5.174,AmbientWeather 3.0.1.9,Big6 3.44.0.0,BLBackup 2.0.64.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 4.5.1.0,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 4.50.128.5,JowiHue 4.1.3.0,LG ThinQ 4.0.25.0,ONVIF Events 1.0.0.5,SDJ-Health 3.1.1.9,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 4.1.0.3

        Comment


          #5
          I agree with you both. It seems an error on the LG side, since the response (which is normally a valid JSON) is now a totally corrupted string. So either they implemented some kind of encryption (which would be really bad) or it is indeed an LG API server choking and needs a reboot or something. But I see this issue for a week now on my end already...
          stefxx

          Comment


            #6
            If someone likes a puzzle, here it is. The plugin makes a call to https://route.lgthinq.com:46030/v1/s...on/gateway-uri

            I expect an answer like this:

            Code:
            {
                "resultCode": "0000",
                "result": {
                    "countryCode": "CA",
                    "languageCode": "en-CA",
                    "thinq1Uri": "https://aic.lgthinq.com:46030/api",
                    "thinq2Uri": "https://aic-service.lgthinq.com:46030/v1",
                    "empUri": "https://ca.m.lgaccount.com",
                    "empSpxUri": "https://ca.m.lgaccount.com/spx",
                    "rtiUri": "aic.lgthinq.com:47878",
                    "mediaUri": "aic-media.lgthinq.com:47800",
                    "appLatestVer": "3.0.2100001",
                    "appUpdateYn": "N",
                    "appLink": "market://details?id=com.lgeha.nuts",
                    "uuidLoginYn": "N",
                    "lineLoginYn": "N",
                    "lineChannelId": "",
                    "cicTel": "1-888-542-2623",
                    "cicUri": "",
                    "isSupportVideoYn": "N",
                    "countryLangDescription": "Canada/English",
                    "googleAssistantUri": "https://assistant.google.com/services/invoke/uid/000000d26892b8a3",
                    "smartWorldUri": "",
                    "racUri": "ca.rac.lgeapi.com",
                    "cssUri": "https://aic-common.lgthinq.com",
                    "cssWebUri": "http://s3-an2-op-t20-css-web-resource.s3-website.ap-northeast-2.amazonaws.com",
                    "iotssUri": "https://kic-iotservice.lgthinq.com",
                    "amazonDrsYn": "N",
                    "features": {
                        "amazonDrs": "N",
                        "disableWeatherCard": "N",
                        "thinqCss": "N",
                        "cicSupport": "Y"
                    },
                    "serviceCards": []
                }
            }

            However, this is what I get (hex converted as it is an unreadable string):

            Code:
            1F 3F 08 00 00 00 00 00 00 03 3F 56 6D 6F 3F 38 0C 3F 2F 3F 70 3F 3F 3F 49 3F 3F 2B 50 0C 7D 3F 6E 05 3F 6E 6B 3F 05 3F
            3F 30 28 32 6B 0B 3F 25 4F 3F 3F 3F 3F 3F 7B 24 2B 4E 3F 3F 70 05 0A 3F 24 45 3D 24 1F 3F 79 3F 19 3F 3F 74 3F 3A 3F 3F
            69 2F 3F 5F 3F 1F 65 3F 3F 1E 3F 72 3F 77 54 3F 4E 3F 3F 4C 15 0D 2B 28 3F 4C 3F 3F 42 3F 1A 3F 1B 01 37 3F 73 3F 3D 4D
            53 12 7C 20 3F 3F 19 70 5D 3F 1E 3F 3F 3F 59 3F 6A 01 37 41 3A 7A 65 3F 58 32 6B 3F 3F 7B 3F 21 3F 51 55 1F 3F 51 72 50
            3F 3F 3F 00 3F 3F 3F 5A 3F 3F 3F 3F 33 4C 6D 3F 08 63 3F 44 6B 3F 0A 3F 3F 3F 3F 09 0C 2A 3F 05 3F 4C 3F 3F 79 3F 3F 3F
            24 3F 3F 3F 3F 39 3F 3F 3B 19 3F 61 32 3F 06 E3 3F 3F 14 3F 3F 3A 3F 3F 3F 47 2B 3F 0A 3F 3F 57 3F B0 1C 3F 63 42 3F 0F
            22 3F 43 1C 78 3F 4A 36 50 3F 3F 30 57 70 3B 6B 3F 5A 1B 77 5E 3F 3F 03 10 37 3F 3F 3F 10 2A 3F 3F 3F 44 0A 45 3F 25 3F
            25 53 3F 3F 4D 3F 3F 60 3F 05 3F 3F 3F 39 7B 3F 65 3F 3F 68 3F 3F 3F 51 3F 68 23 3F 59 3F 3F 3F 77 3F 3F 3F 1E 3F 3F 3F
            3F 07 57 64 3F 11 3F 13 3F 47 75 4B 39 19 3F 23 4F 3F 3F 47 3F 3F 3F 3F 54 3F 55 39 3F 40 3F 16 3F 5A 32 3F 3F 4D 15 3F
            57 68 5D 48 3A 3F 56 58 75 3B 3F 3F 3F 41 6B 3F 3F 36 36 15 6A 3F 57 3F 22 2D 3F 67 73 3F 3F 77 27 3F 47 3F 13 36 06 3F
            3F 3F 42 1B 3F 77 51 1A 3F 3F 33 3F 3F 3F 3F 3A 18 1A 3F 70 3F 02 36 38 3F 3F 4A 3F 7D 06 3F 3F 59 3F 3F 3F 0E 29 3F 69
            3F 09 53 3F 44 3F 1B 65 09 0C 3F 0D 2D 13 34 3F 6E 0C 18 0E 35 3F 3F 70 34 60 75 3F 50 3F 3F 75 3F 68 3F 2A 3F 3F 56 6C
            63 23 0A 3F 3F 5B 38 3F 3F 75 3F 78 2C 25 73 17 3A 3F 0D 3F 71 3F 3F 41 71 66 3F 3F 33 53 68 3F 2E 1F 4C 3F 4A 5D 3F 42
            15 3F 48 7B 3F 3F 3F 3F 49 4F 19 38 3F 3F 3F 15 3F 47 64 3A 3F 32 3F 3F 3F 3F 28 3F 3F 3F 3F 40 3F 35 3F 3F 4F 16 3F 72
            79 3F 3F 3F 3F 19 3F 20 3F 75 3F 5B 5F 22 0F 3F 3F 3F 3F 79 3F 3F 3F 3F 3F 3F 7D 3F 3F 3F 5F 7F 3F 3F 47 3F 12 3F 48 3D
            08 53 75 3F 35 19 3F 3F 49 04 3F 10 3F 4D 55 1B 3F 3F 45 75 3F 72 21 1E 3F 37 13 09 3F 3F 65 3F 3F 5E 3F 3F 3F 3F 3F 3F
            13 3F 6C 3F 3F 3F 3F 3F 3F 3F 16 6F 1C 70 55 3F 7F 3F 21 66 78 3F 7D 3F 29 77 3F 7E 01 3F 3F 3F 26 3F 3F 3F 0D 73 51 3F
            6E 1C 14 43 3F 52 28 0B 3F 3F 1A 3F 38 3F 65 3F 20 3F 3F 3F 3F 57 3F 38 7D 04 3F 77 13 3F 3F 3F 16 3F 3F 20 3F 1F 3F 3F
            01 5A 23 4C 0F 75 3F 3F 65 3F 66 3F 68 6F 3F 3F 6E 2B 10 3F 3F 3F 0B 3F 3F 3F 36 3F 10 3F 76 38 78 49 7C 3F 28 41 3F 29
            7A 32 3F 7D 72 72 61 19 4A 3F 3F 3F 3F 25 33 7E 3F 78 45 08 3F 3F 3F 62 79 5C 6E 7D 6F 3F 07 3F 5F 3F 3F 3E 3F 3F 3F 05
            0F 1B 3F 42 0E 3F 3F 3F 59 53 14 20 1F 52 3C 45 6C 3F 7E 3F 3F 77 65 3F 01 75 38 3F 2D 3F 62 7E 67 6A 3F 3D 3F 77 3E 3F
            5C 0A 00 3F 5A 76 3F 6E 3F 3F 03 29 32 3F 3F 7B 3F 3F 3F 3F 38 3F 3F 3F 3F 3F 3F 3F 49 7F 34 3F 27 3F 09 3F 59 3F 1F 3F
            3F 58 6F 3F 03 3F 2D 43 5E 3F 3F 52 3F 3F 3F 3F 3C 3F 2B 3F 3F 3F 3F 3F 3F 34 3F 4C 2D 3F 4B 3F 48 3F 1A 3F 34 3F 30 3F
            3F 06 3F 74 78 31 3F 23 67 63 66 7F 3F 3B 2A 50 3F 3F 3F 3F 52 5B 3F 3F 2B 3F 3F 3F 03 3F 3F 3F 3F 3F 01 3F 0E 0C 5F 29
            24 3F 3F 49 23 70 7A 3F 3F 3D 63 3F 5B 1B 19 3F 2B 3F 51 52 3F 38 4E 3F 3F 3F 2A 3F 3C 6A 5F 3F 4A 3F 56 74 3E 3F 14 6C
            07 47 77 6B 3F 50 33 3F 3F 3F 3F 27 3F 55 1C 50 3F 71 3F 3F 38 3C 1C 3F 3F 46 63 7B 3E 3F 3F 51 59 4E 3F 3F 4D 2A 3F 4D
            3F 4E 30 53 2C 3F 3F 3F 3F 3F 3F 74 3F 04 3F 42 3F 25 3F 5F 3F 3F 3F 4D 3F 37 3F 0D 40 3F 55 3F 3F 3F 55 3F 3F 29 7D 16
            3F 3F 3F 3F 3F 3F 3F 3F 3F 54 67 3F 5B 6C 3F 55 10 71 56 3F 4C 14 3F 6C 3F 3F 46 3F 3F 25 33 3F 3F 3F 3F 7F 3F 1F 45 3F
            3F 2F 3F 3F 3F 20 4A 3F 65 3F 70 3F 76 3F 05 3F 7E 08 3F 3F 40 61 23 3F 3F 3F 6A 3F 48 02 3F 3F 43 67 3F 3F 3F 3F 30 45
            44 70 70 3F 3F 3F 54 1E 5D 1C 7A 3F 3F 2D 3F 6F 72 66 68 3F 3F 40 3F 37 5C 3F 65 3F 5F 3F 3F 3F 3F 3F 3F 3F 56 4B 0D 3F
            1C 3F 2D 3F 28 3F 3F 24 67 3F 0C 46 3F 0E 5A 3F 61 3F 3F 40 42 18 77 04 52 76 3F 3F 07 3F 3F 3F 3F 3F 3F 05 00 00 3F 3F
            03 00 7A 3F 3F 0A 00 00
            stefxx

            Comment


              #7
              I just noticed this behavior this morning. Glad to hear you're aware of it and its not just me! I'll watch the forum for an update

              Time
              From
              Type
              Message

              2/12/2024 10:37:52 AM
              HomeSeer
              Info
              Plugin LG_ThinQ with instance LG ThinQ has connected. IP:127.0.0.1:50439

              2/12/2024 10:37:52 AM
              HomeSeer
              Warning
              I/O interface LG ThinQ is down, executable is not running, restarting ...

              2/12/2024 10:37:37 AM
              LG ThinQ
              Info
              Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_LG_ThinQ.LG_ThinQ_v2.LG_MqttStart() at HSPI_LG_ThinQ.LG_ThinQ_v2.LG_Start(Object Restart) at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionConte xt executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart(Object obj)

              2/12/2024 10:37:37 AM
              LG ThinQ
              Warning
              Original error: System.Net.WebException: The operation has timed out at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at System.Net.WebClient.DownloadString(String address) at HSPI_LG_ThinQ.LG_ThinQ.LG_API(String Url, String GetOrPost, String Data, String Accept)

              2/12/2024 10:37:37 AM
              LG ThinQ
              Warning
              API error during error catch: Object reference not set to an instance of an object.


              Comment


                #8
                Same issue here- let us know when the fix is ready !!

                Comment


                  #9
                  Seeing this problem, now, too...

                  [edit]
                  I went to the phone app and nothing seems amiss. All is working there and no TOS nonsense. It offers me an opportunity to set a schedule (I just don't remember that).
                  [/edit]
                  HomeSeer Version: HS4 Pro Edition 4.2.19.0 (Windows - Running as a Service)
                  Operating System: Microsoft Windows 11 Pro - Desktop
                  Z-Wave Devices via two Z-Net G3s
                  Zigbee Devices via RaspBee on RPi 3b+
                  WiFi Devices via Internal Router.

                  Enabled Plug-Ins
                  AK SmartDevice 4.0.5.1,AK Weather 4.0.5.174,AmbientWeather 3.0.1.9,Big6 3.44.0.0,BLBackup 2.0.64.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 4.5.1.0,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 4.50.128.5,JowiHue 4.1.3.0,LG ThinQ 4.0.25.0,ONVIF Events 1.0.0.5,SDJ-Health 3.1.1.9,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 4.1.0.3

                  Comment


                    #10
                    I'm also seeing this error

                    Comment


                      #11
                      Do you all think this is the same error?
                      2/15/2024 9:38:59 AM

                      LG ThinQ
                      Warning
                      Failed to refresh token: The remote server returned an error: (406) Not Acceptable.
                      2/15/2024 9:37:59 AM

                      LG ThinQ
                      Warning
                      Failed to refresh token: The remote server returned an error: (406) Not Acceptable.

                      ​This is happening all the time with the plugin today

                      Comment


                        #12
                        I may have been having this since last weekend. I discovered it today. When we did laundry Sunday, none of the plug in driven Events ran.
                        HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                        Comment


                          #13
                          I see the URL to request access no longer works.

                          This login URL does not respond anymore. It feels like LG changed the authentication method, and these API keys are no longer valid. It seems the login process for the plugin needs to change. Or just an outage on the LG side. I am no expert here, but showing what errors I am seeing in the connection process.

                          https://kr.m.lgaccount.com/spx/login/signIn?country
                          Click image for larger version

Name:	image.png
Views:	97
Size:	42.9 KB
ID:	1656378

                          If we cannot auth, then it makes sense the plugin is not going to work

                          Comment


                            #14
                            As of today, my LG ThinQ plugin is also constantly disconnecting and connecting.

                            2/15/2024 12:54:21 PM HomeSeer Info Plugin LG ThinQ with ID: LG_ThinQ and Instance: has disconnected
                            2/15/2024 12:54:21 PM LG ThinQ Info Unhandled exception: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: . Path '', line 0, position 0.
                            at Newtonsoft.Json.JsonTextReader.ParseValue () [0x002b3] in :0
                            at Newtonsoft.Json.JsonTextReader.Read () [0x0004c] in :0
                            at Newtonsoft.Json.Linq.JToken.ReadFrom (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x0001e] in :0
                            at Newtonsoft.Json.Linq.JToken.Load (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x00000] in :0
                            at Newtonsoft.Json.Linq.JToken.Parse (System.String json, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x0000c] in :0
                            at Newtonsoft.Json.Linq.JToken.Parse (System.String json) [0x00000] in :0
                            at HSPI_LG_ThinQ.LG_ThinQ.LG_GetDevices () [0x00045] in :0
                            at HSPI_LG_ThinQ.LG_ThinQ.LG_Start (System.Object Restart) [0x00038] in :0
                            at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00025] in :0
                            at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in :0
                            at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in :0
                            at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in :0
                            at System.Threading.ThreadHelper.ThreadStart (System.Object obj) [0x0000f] in :0
                            2/15/2024 12:54:19 PM HomeSeer Info Done rebuild of device references cache
                            2/15/2024 12:54:19 PM HomeSeer Info Starting rebuild of device references cache...
                            2/15/2024 12:54:18 PM HomeSeer Starting Plug-In Plugin LG ThinQ started successfully in 277 milliseconds
                            2/15/2024 12:54:18 PM LG ThinQ Info Initialization of LG ThinQ version 4.0.25.0 complete
                            2/15/2024 12:54:18 PM LG ThinQ Info mono version detected: 6.10.0.104 (tarball Fri Jun 26 19:59:14 UTC 2020)
                            2/15/2024 12:54:18 PM HomeSeer Starting Plug-In Initializing plugin LG ThinQ ...
                            2/15/2024 12:54:18 PM HomeSeer Starting Plug-In LG ThinQ loaded in 15029 milliseconds
                            2/15/2024 12:54:04 PM HomeSeer Info Plugin LG_ThinQ with instance LG ThinQ has connected. IP:127.0.0.1:60908
                            2/15/2024 12:54:03 PM HomeSeer Warning I/O interface LG ThinQ is down, executable is not running, restarting ...
                            2/15/2024 12:53:36 PM HomeSeer Info Plugin LG ThinQ with ID: LG_ThinQ and Instance: has disconnected
                            2/15/2024 12:53:36 PM LG ThinQ Info Unhandled exception: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: . Path '', line 0, position 0.​

                            Comment


                              #15
                              I have the same problem (constant connecting and disconnecting every minute). Started around 12am Feb 15.

                              Comment

                              Working...
                              X