Announcement

Collapse
No announcement yet.

Error with api key

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

    Error with api key

    Hi Shodan,

    I Just switched my Jeedom install from a laptop to an Odroid xu4 ( debian image 9.4 headless)

    But now the plugin can't connect . Here is my log:

    Code:
    6/30/2018 5:39:22 PM : HSPI - InitIO
    6/30/2018 5:39:22 PM : PluginConfig - Load
    6/30/2018 5:39:22 PM : PluginConfig - Load - finished
    6/30/2018 5:39:22 PM : HSPI - InitIO - New jeedom instance : IP = 192.168.1.2 / ApiKey = xxxxxxx
    6/30/2018 5:39:22 PM : HSPI - TestJeedomConnection
    6/30/2018 5:39:22 PM : HSPI - TestJeedomConnection - Testing APIKey at 192.168.1.2 / xxxxxxxx
    6/30/2018 5:39:22 PM : HSPI - TestJeedomConnection - ApiKey test result = False - Exception in PostRequest : System.Net.WebException: The remote server returned an error: (417) Expectation Failed.
      at System.Net.HttpWebRequest+<GetResponseFromData>d__247.MoveNext () [0x00152] in <fc308f916aec4e4283e0c1d4b761760a>:0 
    --- End of stack trace from previous location where exception was thrown ---
      at System.Net.HttpWebRequest+<RunWithTimeoutWorker>d__244`1[T].MoveNext () [0x000ba] in <fc308f916aec4e4283e0c1d4b761760a>:0 
    --- End of stack trace from previous location where exception was thrown ---
      at System.Net.HttpWebRequest.GetResponse () [0x00013] in <fc308f916aec4e4283e0c1d4b761760a>:0 
      at JeedomSDK.Jeedom.PostRequest (System.String Request, System.String& Answer) [0x000ba] in <53e7fb9b31734494b628823a0b923e13>:0 
    6/30/2018 5:39:22 PM : HSPI - TestJeedomConnection finished
    6/30/2018 5:39:22 PM : SensorManager - RefreshJeedomList
    6/30/2018 5:39:22 PM : SensorManager - RefreshJeedomList - Unable to get Jeedom objects
    6/30/2018 5:39:22 PM : SensorManager - RefreshJeedomList finished
    6/30/2018 5:39:22 PM : HSPI - InitIO - Finished
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=141 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=142 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=143 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=144 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=145 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=147 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=149 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=153 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=148 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=157 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=156 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=121 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=122 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=123 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=124 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=125 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=129 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=134 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=126 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=128 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=137 but no HS3 device associated
    6/30/2018 5:45:05 PM : SensorManager - UpdateCmd : received Cmd=136 but no HS3 device associated
    6/30/2018 5:45:06 PM : SensorManager - UpdateCmd : received Cmd=247 but no HS3 device associated
    6/30/2018 5:45:06 PM : SensorManager - UpdateCmd : received Cmd=248 but no HS3 device associated
    6/30/2018 5:45:06 PM : SensorManager - UpdateCmd : received Cmd=249 but no HS3 device associated
    6/30/2018 5:45:06 PM : SensorManager - UpdateCmd : received Cmd=253 but no HS3 device associated
    6/30/2018 5:45:06 PM : SensorManager - UpdateCmd : received Cmd=260 but no HS3 device associated
    6/30/2018 5:45:06 PM : SensorManager - UpdateCmd : received Cmd=263 but no HS3 device associated
    6/30/2018 5:45:06 PM : SensorManager - UpdateCmd : received Cmd=262 but no HS3 device associated
    6/30/2018 5:45:07 PM : SensorManager - UpdateCmd : received Cmd=227 but no HS3 device associated
    6/30/2018 5:45:07 PM : SensorManager - UpdateCmd : received Cmd=231 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=233 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=235 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=240 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=243 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=242 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=161 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=169 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=170 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=171 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=172 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=173 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=174 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=168 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=177 but no HS3 device associated
    6/30/2018 5:45:08 PM : SensorManager - UpdateCmd : received Cmd=176 but no HS3 device associated
    Attached Files

    #2
    Hello Summerguy,

    Please make sure you are using a user API key, and not the global API key (check Jeedom Plugin documentation).

    Comment


      #3
      I am using the user api key. I tried to regenerate it a bunch of time. I can send you a picture when i get home, in PM.

      Comment


        #4
        I just reflashed my emmc card with the official ubuntu 18.04 image from Hardkernel for the odroid xu4. They do not make image for Debian so i took a usermade image.

        So,
        With the official Ubuntu one, the plugin was able to connect without any issue.

        Comment


          #5

          Comment


            #6
            Thanks for the investigation Shodan. I finnaly switched jeedom on my main automation server, wich run ubuntu x64. I hope Jeedom wont breaks in the future. But if that happen i'll just try to find a stable debian version to install on my odroid again :P.

            For others,...installing Jeedom on Ubuntu 18.04 server was easy with that ppa added :

            #
            Code:
            su -
            1-Add the ppa and install php 7.0 :
            Code:
            $ add-apt-repository ppa:ondrej/php
            $ apt update
            $ apt install php7.0


            2- Then install Jeedom as usual by running the script you download:
            Code:
            wget https://raw.githubusercontent.com/jeedom/core/stable/install/install.sh
            chmod +x install.sh
            ./install.sh
            Last edited by MattL0; July 9, 2018, 05:59 PM.

            Comment

            Working...
            X