Announcement

Collapse
No announcement yet.

Connetion Error

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

  • Connetion Error

    spud

    Would you be able to help diagnosis some connection errors?

    For awhile now I have been getting errors in my log as you can see below. When I run the command "wget http://10.1.80.11:8735/api/v1/sources" from my Homeseer Linux machine I get the following. Therefore, I don't believe it is a connection issue as this appears to be the valid JSON response.

    Code:
    [{"Hidden":false,"IsShared":true,"Name":"Unknown Source","MediaTypesSupported":61696,"Type":1,"SourceType":6,"SourceID":
    0,"ExternalDeviceType":0},{"Hidden":false,"IsShared":false,"Name":"Adults","MediaTypesSupported":61696,"Type":1,"SourceT
    ype":6,"SourceID":1,"ExternalDeviceType":0},{"Hidden":false,"IsShared":false,"Name":"Background","MediaTypesSupported":6
    1696,"Type":1,"SourceType":6,"SourceID":2,"ExternalDeviceType":0},{"Hidden":true,"IsShared":false,"Name":"Source4","Medi
    aTypesSupported":0,"Type":0,"SourceType":0,"SourceID":3,"ExternalDeviceType":0},{"Hidden":false,"IsShared":false,"Name":
    "SoundMachine","MediaTypesSupported":0,"Type":4,"SourceType":9,"SourceID":4,"ExternalDeviceType":0,"ExternalDeviceImageI
    D":"Unknown","AndroidLaunchURL":"","iOSLaunchURL":""},{"Hidden":true,"IsShared":false,"Name":"Source6","MediaTypesSuppor
    ted":0,"Type":0,"SourceType":0,"SourceID":5,"ExternalDeviceType":0}]
    The following are the errors from my logs.

    In addition it might be a nice feature to have a device that shows the status of the plugin. Some of my other plugins have a device that shows the connection status to the device (Alarm Panel, Irrigation controller, etc.) Therefore, I can setup an alert when the connection goes down or if there is an error with the plugin.



    Code:
     
    Aug-15 12:43:11 PM CasaTunes DEBUG System.NullReferenceException: Object reference not set to an instance of an object at HSPI_CasaTunes.CasaTunesApp.PollZones (System.Object source, System.Timers.ElapsedEventArgs e) [0x0002b] in :0
    Aug-15 12:43:11 PM CasaTunes ERROR PollZones Object reference not set to an instance of an object
    Aug-15 12:43:11 PM CasaTunes ERROR URL=http://10.1.80.11:8735/api/v1/sources
    Aug-15 12:43:11 PM CasaTunes ERROR System.Net.WebException: The operation has timed out. at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in :0 at System.Net.HttpWebRequest.GetResponse () [0x00016] in :0 at HSPI_CasaTunes.CasaAPI`1[T].Execute (System.String MethodType, System.String BaseURL, System.String Method, System.Collections.Generic.Dictionary`2[TKey,TValue] Parameters, System.String Payload) [0x000ce] in :0
    Aug-15 12:43:09 PM CasaTunes DEBUG System.NullReferenceException: Object reference not set to an instance of an object at HSPI_CasaTunes.Zone+<>c__DisplayClass70_0. b__0 (HSPI_CasaTunes.RESTSource src) [0x00006] in :0 at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in <7b0d87324cab49bf96eac679025e77d1>:0 at HSPI_CasaTunes.Zone.PollZone (System.Object sender, System.Timers.ElapsedEventArgs e) [0x00232] in :0
    Aug-15 12:43:09 PM CasaTunes ERROR PollZones Object reference not set to an instance of an object
    Aug-15 12:43:09 PM CasaTunes ERROR URL=http://10.1.80.11:8735/api/v1/zones/3/status
    Aug-15 12:43:09 PM CasaTunes DEBUG System.NullReferenceException: Object reference not set to an instance of an object at HSPI_CasaTunes.Zone+<>c__DisplayClass70_0. b__0 (HSPI_CasaTunes.RESTSource src) [0x00006] in :0 at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in <7b0d87324cab49bf96eac679025e77d1>:0 at HSPI_CasaTunes.Zone.PollZone (System.Object sender, System.Timers.ElapsedEventArgs e) [0x00232] in :0
    Aug-15 12:43:09 PM CasaTunes ERROR System.Net.WebException: The operation has timed out. at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in :0 at System.Net.HttpWebRequest.GetResponse () [0x00016] in :0 at HSPI_CasaTunes.CasaAPI`1[T].Execute (System.String MethodType, System.String BaseURL, System.String Method, System.Collections.Generic.Dictionary`2[TKey,TValue] Parameters, System.String Payload) [0x000ce] in :0
    Aug-15 12:43:09 PM CasaTunes ERROR PollZones Object reference not set to an instance of an object
    Aug-15 12:43:09 PM CasaTunes ERROR URL=http://10.1.80.11:8735/api/v1/zones/1/status
    Aug-15 12:43:09 PM CasaTunes ERROR System.Net.WebException: The operation has timed out. at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in :0 at System.Net.HttpWebRequest.GetResponse () [0x00016] in :0 at HSPI_CasaTunes.CasaAPI`1[T].Execute (System.String MethodType, System.String BaseURL, System.String Method, System.Collections.Generic.Dictionary`2[TKey,TValue] Parameters, System.String Payload) [0x000ce] in :0
    Aug-15 12:43:06 PM CasaTunes DEBUG System.NullReferenceException: Object reference not set to an instance of an object at HSPI_CasaTunes.Zone+<>c__DisplayClass70_0. b__0 (HSPI_CasaTunes.RESTSource src) [0x00006] in :0 at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in <7b0d87324cab49bf96eac679025e77d1>:0 at HSPI_CasaTunes.Zone.PollZone (System.Object sender, System.Timers.ElapsedEventArgs e) [0x00232] in :0
    Aug-15 12:43:06 PM CasaTunes ERROR PollZones Object reference not set to an instance of an object
    Aug-15 12:43:06 PM CasaTunes ERROR URL=http://10.1.80.11:8735/api/v1/zones/105/status
    Aug-15 12:43:06 PM CasaTunes ERROR System.Net.WebException: The operation has timed out. at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in :0 at System.Net.HttpWebRequest.GetResponse () [0x00016] in :0 at HSPI_CasaTunes.CasaAPI`1[T].Execute (System.String MethodType, System.String BaseURL, System.String Method, System.Collections.Generic.Dictionary`2[TKey,TValue] Parameters, System.String Payload) [0x000ce] in :0
    Aug-15 12:42:58 PM CasaTunes DEBUG System.NullReferenceException: Object reference not set to an instance of an object at HSPI_CasaTunes.Zone+<>c__DisplayClass70_0. b__0 (HSPI_CasaTunes.RESTSource src) [0x00006] in :0 at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in <7b0d87324cab49bf96eac679025e77d1>:0 at HSPI_CasaTunes.Zone.PollZone (System.Object sender, System.Timers.ElapsedEventArgs e) [0x00232] in :0
    Aug-15 12:42:58 PM CasaTunes DEBUG System.NullReferenceException: Object reference not set to an instance of an object at HSPI_CasaTunes.Zone+<>c__DisplayClass70_0. b__0 (HSPI_CasaTunes.RESTSource src) [0x00006] in :0 at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in <7b0d87324cab49bf96eac679025e77d1>:0 at HSPI_CasaTunes.Zone.PollZone (System.Object sender, System.Timers.ElapsedEventArgs e) [0x00232] in :0
    Aug-15 12:42:58 PM CasaTunes ERROR PollZones Object reference not set to an instance of an object
    Aug-15 12:42:58 PM CasaTunes ERROR PollZones Object reference not set to an instance of an object
    Aug-15 12:42:58 PM CasaTunes ERROR URL=http://10.1.80.11:8735/api/v1/zones/4/status
    Aug-15 12:42:58 PM CasaTunes ERROR URL=http://10.1.80.11:8735/api/v1/zones/1002/status
    Aug-15 12:42:58 PM CasaTunes ERROR System.Net.WebException: The operation has timed out. at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in :0 at System.Net.HttpWebRequest.GetResponse () [0x00016] in :0 at HSPI_CasaTunes.CasaAPI`1[T].Execute (System.String MethodType, System.String BaseURL, System.String Method, System.Collections.Generic.Dictionary`2[TKey,TValue] Parameters, System.String Payload) [0x000ce] in :0
    Aug-15 12:42:58 PM CasaTunes ERROR System.Net.WebException: The operation has timed out. at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in :0 at System.Net.HttpWebRequest.GetResponse () [0x00016] in :0 at HSPI_CasaTunes.CasaAPI`1[T].Execute (System.String MethodType, System.String BaseURL, System.String Method, System.Collections.Generic.Dictionary`2[TKey,TValue] Parameters, System.String Payload) [0x000ce] in :0
    Aug-15 12:42:57 PM CasaTunes DEBUG System.NullReferenceException: Object reference not set to an instance of an object at HSPI_CasaTunes.Zone+<>c__DisplayClass70_0. b__0 (HSPI_CasaTunes.RESTSource src) [0x00006] in :0 at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in <7b0d87324cab49bf96eac679025e77d1>:0 at HSPI_CasaTunes.Zone.PollZone (System.Object sender, System.Timers.ElapsedEventArgs e) [0x00232] in :0
    Aug-15 12:42:57 PM CasaTunes ERROR PollZones Object reference not set to an instance of an object
    Aug-15 12:42:57 PM CasaTunes ERROR URL=http://10.1.80.11:8735/api/v1/zones/0/status
    Aug-15 12:42:57 PM CasaTunes ERROR System.Net.WebException: The operation has timed out. at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in :0 at System.Net.HttpWebRequest.GetResponse () [0x00016] in :0 at HSPI_CasaTunes.CasaAPI`1[T].Execute (System.String MethodType, System.String BaseURL, System.String Method, System.Collections.Generic.Dictionary`2[TKey,TValue] Parameters, System.String Payload) [0x000ce] in :0
    Aug-15 12:42:57 PM CasaTunes DEBUG System.NullReferenceException: Object reference not set to an instance of an object at HSPI_CasaTunes.Zone+<>c__DisplayClass70_0. b__0 (HSPI_CasaTunes.RESTSource src) [0x00006] in :0 at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in <7b0d87324cab49bf96eac679025e77d1>:0 at HSPI_CasaTunes.Zone.PollZone (System.Object sender, System.Timers.ElapsedEventArgs e) [0x00232] in :0
    Aug-15 12:42:57 PM CasaTunes ERROR PollZones Object reference not set to an instance of an object
    Aug-15 12:42:57 PM CasaTunes ERROR URL=http://10.1.80.11:8735/api/v1/zones/2/status
    Aug-15 12:42:57 PM CasaTunes ERROR System.Net.WebException: The operation has timed out. at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in :0 at System.Net.HttpWebRequest.GetResponse () [0x00016] in :0 at HSPI_CasaTunes.CasaAPI`1[T].Execute (System.String MethodType, System.String BaseURL, System.String Method, System.Collections.Generic.Dictionary`2[TKey,TValue] Parameters, System.String Payload) [0x000ce] in :0
    Aug-15 12:42:57 PM CasaTunes DEBUG System.NullReferenceException: Object reference not set to an instance of an object at HSPI_CasaTunes.Zone+<>c__DisplayClass70_0. b__0 (HSPI_CasaTunes.RESTSource src) [0x00006] in :0 at System.Collections.Generic.List`1[T].Find (System.Predicate`1[T] match) [0x0000d] in <7b0d87324cab49bf96eac679025e77d1>:0 at HSPI_CasaTunes.Zone.PollZone (System.Object sender, System.Timers.ElapsedEventArgs e) [0x00232] in :0
    Aug-15 12:42:57 PM CasaTunes ERROR PollZones Object reference not set to an instance of an object
    Aug-15 12:42:57 PM CasaTunes ERROR URL=http://10.1.80.11:8735/api/v1/zones/5/status
    Aug-15 12:42:57 PM CasaTunes ERROR System.Net.WebException: The operation has timed out. at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in :0 at System.Net.HttpWebRequest.GetResponse () [0x00016] in :0 at HSPI_CasaTunes.CasaAPI`1[T].Execute (System.String MethodType, System.String BaseURL, System.String Method, System.Collections.Generic.Dictionary`2[TKey,TValue] Parameters, System.String Payload) [0x000ce] in :0
    Aug-15 12:42:51 PM CasaTunes DEBUG -->GET http://10.1.80.11:8735/api/v1/sources
    Aug-15 12:42:49 PM CasaTunes DEBUG -->GET http://10.1.80.11:8735/api/v1/zones/3/status
    Aug-15 12:42:49 PM CasaTunes DEBUG -->GET http://10.1.80.11:8735/api/v1/zones/1/status
    Aug-15 12:42:46 PM CasaTunes DEBUG -->GET http://10.1.80.11:8735/api/v1/zones/105/status
    Aug-15 12:42:38 PM CasaTunes DEBUG -->GET http://10.1.80.11:8735/api/v1/zones/4/status
    Aug-15 12:42:38 PM CasaTunes DEBUG -->GET http://10.1.80.11:8735/api/v1/zones/1002/status

  • #2
    If you restart the plugin, do you see those errors immediately after the restart, or do they only show up after some time?

    Comment


    • #3
      Thanks spud

      I restarted the plugin and I did not see the errors immediately. Things appear to be working fine right now.

      Does this point you in the direction of the issue?

      Comment


      • #4
        Originally posted by JohnGalt View Post
        Thanks spud

        I restarted the plugin and I did not see the errors immediately. Things appear to be working fine right now.

        Does this point you in the direction of the issue?
        Yes I have an idea
        Please install and test version 3.0.0.12 available in the beta section

        Comment


        • #5
          Great!

          Thanks. I installed the beta version and hopefully will not have issues.

          Is there a time period where if I don’t see issues I should be in the clear?

          Comment

          Working...
          X