[gelöst] Todoist | Fehlermeldung nach Update

Begonnen von t0m, 24 März 2019, 15:48:43

Vorheriges Thema - Nächstes Thema

t0m

Hi,

nach dem heutigen Update bekomme ich in fhem-<yyyy>-<mm>.log folgende Fehlermeldung.

2019.03.24 15:34:43 3: todoist (Todoist.FHEM): Error Message: GetTasks: Response was damaged or empty. See log for details.
2019.03.24 15:34:45 3: todoist (Todoist.FHEM): Error Message: Response was damaged or empty. See log for details.


Weitere Details stehen da nicht. Weiß zufällig jemand was da los ist? Definitiv können meine Todoist-Einträge nicht mehr abgerufen werden. Habe an meinen Credentials aber nichts geändert. Passierte, wie geschrieben, sofort nach dem Update.

Danke schon mal für jedwede Idee zur Problemlösung.


Grüße,
t0m

t0m

Hi,

habe jetzt noch was im Log gefunden. Vielleicht hat das was mit dem Fehler zu tun:

2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit 'N' ignored at ./FHEM/98_todoist.pm line 204.
2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit 'Y' ignored at ./FHEM/98_todoist.pm line 204.
2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit 'O' ignored at ./FHEM/98_todoist.pm line 204.
2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit 'M' ignored at ./FHEM/98_todoist.pm line 204.
2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit 'k' ignored at ./FHEM/98_todoist.pm line 204.
2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit 'V' ignored at ./FHEM/98_todoist.pm line 204.
2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit 'R' ignored at ./FHEM/98_todoist.pm line 204.
2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit 'i' ignored at ./FHEM/98_todoist.pm line 204.
2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit 'Z' ignored at ./FHEM/98_todoist.pm line 204.
2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit 'J' ignored at ./FHEM/98_todoist.pm line 204.
2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit 'h' ignored at ./FHEM/98_todoist.pm line 204.
2019.03.24 14:25:17 1: PERL WARNING: Illegal hexadecimal digit '=' ignored at ./FHEM/98_todoist.pm line 204.



Grüße
t0m

marvin78

Bitte in das richtige Forum verschieben.

Außerdem mehr Angaben machen. An todoist hat sich seit langer Zeit nichts geändert, deshalb kann es nicht am "heutigen" Update liegen.

Wenn ich raten sollte, würde ich sagen, dass deine vorherige todoist Version uralt war und du den Token neu setzen musst.

t0m


Hi Marvin,

Danke für dein Feedback. Welches ist das "richtige" Forum?

Ich mache eigentlich jede Woche einen FHEM-Update. Aber OK ich versuche mal das mit dem Token... melde mich dann wieder.


Grüße
t0m

marvin78

Welches Forum für welches Modul das richtige ist, findest du in der maintainer.txt. Bitte die angepinnten Beiträge hier im Forum lesen.

todoist ist unter "Unterstützende Dienste" einsortiert. In Anfängerforum werde ich nicht benachrichtigt. Es war reines Glück, dass ich den Thread gesehen habe.

Falls das Problem durch das Neu-Setzen des Tokens nicht gelöst wird, benötige ich ein Log mit verbose 5.

Vergewissere dich bitte auch, ob der Dienst von todoist im angegebenen Zeitraum ggf. einfach nicht verfügbar war.

t0m

Hi Marvin,

Schon mal Danke für deine Hilfe und die Zeit dafür. Ich habe das Token aktualisiert -> keine Veränderung bzgl. des Problems. Ich poste hier mal einen Ausschnitt des Logs bei Verbose == 5.

2019.03.29 20:25:09 5: todoist (Todoist.FHEM):  Task Callback data-raw: $VAR1 = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>404 - Sorry, the page you\'re looking for isn't here anymore</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

   

    <style type="text/css">
    body{
        text-align:center;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
        font-size:small;
        color:#555;
        line-height: 20px;
    }

    h3 {
        font-size: 25px;
        line-height: 30px;
        font-weight: normal;
    }

    a {
        color: #db4c3f;
        text-decoration: none;
    }

    p {
        font-size:14px;
        margin:8px 0 0;
    }

    #container{
        margin:53px auto;
        max-width:400px;
        text-align:left;
        padding: 20px;
        background:#fff;
    }

    .logo {
        margin-bottom: 60px;
        margin-top: 0;
    }

    .button {
      border: 0;
      border-radius: 3px;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.05em;
      line-height: 1.2;
      padding: 10px 15px;
      color: white;
      cursor: pointer;
      background-color: #db4c3f;
      display: inline-block;
      margin-bottom: 10px;
    }

    .buttons {
      margin-top: 50px;
      text-align: center;
    }
    </style>

</head>

<body>

<body>




<div id="container">
    <p class="logo">
        <a href="https://todoist.com/">
            <img src="https://d3ptyyxy2at9ui.cloudfront.net/logo-todoist-b5b89f.svg" height="35" />
        </a>
    </p>

        <h3>Sorry, the page you\'re looking for isn't here anymore</h3>

        <p>
           

            If you reached this page from another part of <a href="https://todoist.com/">todoist.com</a>,
            please <a href="https://get.todoist.help/">let us know</a> so we can correct our mistake.
        </p>
</div>

</body>

</body>
</html>';

2019.03.29 20:25:09 5: todoist (Todoist.FHEM):  Task Callback param: $VAR1 = {
          'hu_blocking' => 0,
          'url' => 'https://todoist.com/api/v7/projects/get_data',
          'displayurl' => 'https://todoist.com/api/v7/projects/get_data',
          'callback' => sub { "DUMMY" },
          'host' => 'todoist.com',
          'redirects' => 0,
          'hu_filecount' => 1,
          'hu_port' => 443,
          'header' => 'Content-Type: application/x-www-form-urlencoded',
          'sslargs' => {},
          'buf' => '',
          'conn' => undef,
          'compress' => 1,
          'code' => '404',
          'NAME' => '',
          'protocol' => 'https',
          'hu_portSfx' => '',
          'hash' => {
                      'NTFY_ORDER' => '64-Todoist.FHEM',
                      'NAME' => 'Todoist.FHEM',
                      'STATE' => '-',
                      'TYPE' => 'todoist',
                      'MID' => 'todoist_2169277130',
                      'INTERVAL' => 60,
                      'mayBeVisible' => 1,
                      'READINGS' => {
                                      'lastCreatedTask' => {
                                                             'TIME' => '2019-03-22 12:26:14',
                                                             'VAL' => 'Device Battery Charged BATTERY_OK_z4 - 3112979198'
                                                           },
                                      'listText' => {
                                                      'VAL' => '-',
                                                      'TIME' => '2019-03-29 20:24:08'
                                                    },
                                      'error' => {
                                                   'TIME' => '2019-03-29 20:24:17',
                                                   'VAL' => 'none'
                                                 },
                                      'lastError' => {
                                                       'VAL' => 'GetTasks: Response was damaged or empty. See log for details.',
                                                       'TIME' => '2019-03-29 20:24:09'
                                                     },
                                      'state' => {
                                                   'VAL' => 'active',
                                                   'TIME' => '2019-03-25 20:37:12'
                                                 },
                                      'countUsers' => {
                                                        'VAL' => 0,
                                                        'TIME' => '2019-03-29 20:24:17'
                                                      },
                                      'count' => {
                                                   'VAL' => '0',
                                                   'TIME' => '2019-03-24 13:57:27'
                                                 }
                                    },
                      'FUUID' => '5c97853d-f33f-1958-1463-74f62fceb41119ce',
                      'PID' => 2169277130,
                      'NOTIFYDEV' => 'global',
                      'NR' => 71,
                      '.attrminint' => [],
                      'DEF' => '2169277130',
                      '.attraggr' => [],
                      'helper' => {
                                    'errorMessage' => '',
                                    'errorData' => '',
                                    'TIDS' => []
                                  },
                      'VERSION' => '1.2.0.7'
                    },
          'httpheader' => 'HTTP/1.1 404 Not Found
Content-Type: text/html; charset=utf-8
Content-Length: 2161
Connection: close
Vary: Accept-Encoding
Date: Fri, 29 Mar 2019 19:25:09 GMT
Cache-Control: no-cache
P3p: policyref="/static/p3p.xml", CP="IDC DSP COR IVAi IVDi OUR TST"
Set-Cookie: csrf=abdf4d1e43bf4f46bab980569f0299b2; Expires=Mon, 26-Mar-2029 19:25:09 GMT; Secure; Path=/
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Cache: Error from cloudfront
Via: 1.1 a1e8102a85e1e5a1d6e04d628d5dc181.cloudfront.net (CloudFront)
X-Amz-Cf-Id: KmAyEfUGF_6w8UXQOKZdq5S09aQL8pXrR7ZOL-juYwHIMSEYFd7rpg==',
          'path' => '/api/v7/projects/get_data',
          'auth' => 0,
          'method' => 'POST',
          'data' => {
                      'project_id' => 2169277130,
                      'token' => '1fd0e92b47ba3ed2cebf444782950b754b9e103f'
                    },
          'completed' => 0,
          'addr' => 'https://todoist.com:443',
          'loglevel' => 4,
          'timeout' => 7
        };

2019.03.29 20:25:09 3: todoist (Todoist.FHEM): Error Message: GetTasks: Response was damaged or empty. See log for details.
2019.03.29 20:25:09 4: todoist (Todoist.FHEM): Api-Error Callback-data: $VAR1 = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>404 - Sorry, the page you\'re looking for isn't here anymore</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

   

    <style type="text/css">
    body{
        text-align:center;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
        font-size:small;
        color:#555;
        line-height: 20px;
    }

    h3 {
        font-size: 25px;
        line-height: 30px;
        font-weight: normal;
    }

    a {
        color: #db4c3f;
        text-decoration: none;
    }

    p {
        font-size:14px;
        margin:8px 0 0;
    }

    #container{
        margin:53px auto;
        max-width:400px;
        text-align:left;
        padding: 20px;
        background:#fff;
    }

    .logo {
        margin-bottom: 60px;
        margin-top: 0;
    }

    .button {
      border: 0;
      border-radius: 3px;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.05em;
      line-height: 1.2;
      padding: 10px 15px;
      color: white;
      cursor: pointer;
      background-color: #db4c3f;
      display: inline-block;
      margin-bottom: 10px;
    }

    .buttons {
      margin-top: 50px;
      text-align: center;
    }
    </style>

</head>

<body>

<body>




<div id="container">
    <p class="logo">
        <a href="https://todoist.com/">
            <img src="https://d3ptyyxy2at9ui.cloudfront.net/logo-todoist-b5b89f.svg" height="35" />
        </a>
    </p>

        <h3>Sorry, the page you\'re looking for isn't here anymore</h3>

        <p>
           

            If you reached this page from another part of <a href="https://todoist.com/">todoist.com</a>,
            please <a href="https://get.todoist.help/">let us know</a> so we can correct our mistake.
        </p>
</div>

</body>

</body>
</html>';

2019.03.29 20:25:10 5: Todoist.FHEM: hash: $VAR1 = {
          'NAME' => 'Todoist.FHEM',
          'STATE' => '-',
          'MID' => 'todoist_2169277130',
          'TYPE' => 'todoist',
          'NTFY_ORDER' => '64-Todoist.FHEM',
          'PID' => 2169277130,
          'NOTIFYDEV' => 'global',
          'NR' => 71,
          '.attraggr' => [],
          '.attrminint' => [],
          'DEF' => '2169277130',
          'VERSION' => '1.2.0.7',
          'helper' => {
                        'errorMessage' => '',
                        'errorData' => '',
                        'TIDS' => []
                      },
          'INTERVAL' => 60,
          'READINGS' => {
                          'lastCreatedTask' => {
                                                 'TIME' => '2019-03-22 12:26:14',
                                                 'VAL' => 'Device Battery Charged BATTERY_OK_z4 - 3112979198'
                                               },
                          'listText' => {
                                          'VAL' => '-',
                                          'TIME' => '2019-03-29 20:25:09'
                                        },
                          'error' => {
                                       'TIME' => '2019-03-29 20:25:09',
                                       'VAL' => 'GetTasks: Response was damaged or empty. See log for details.'
                                     },
                          'lastError' => {
                                           'VAL' => 'GetTasks: Response was damaged or empty. See log for details.',
                                           'TIME' => '2019-03-29 20:25:09'
                                         },
                          'state' => {
                                       'VAL' => 'active',
                                       'TIME' => '2019-03-25 20:37:12'
                                     },
                          'countUsers' => {
                                            'VAL' => 0,
                                            'TIME' => '2019-03-29 20:24:17'
                                          },
                          'count' => {
                                       'VAL' => '0',
                                       'TIME' => '2019-03-24 13:57:27'
                                     }
                        },
          'mayBeVisible' => 1,
          'FUUID' => '5c97853d-f33f-1958-1463-74f62fceb41119ce'
        };

2019.03.29 20:25:10 5: todoist (Todoist.FHEM): Param: $VAR1 = {
          'method' => 'POST',
          'url' => 'https://todoist.com/api/v7/sync',
          'data' => {
                      'token' => '1fd0e92b47ba3ed2cebf444782950b754b9e103f',
                      'resource_types' => '["collaborators"]',
                      'sync_token' => '*'
                    },
          'header' => 'Content-Type: application/x-www-form-urlencoded',
          'hash' => {
                      'NAME' => 'Todoist.FHEM',
                      'STATE' => '-',
                      'MID' => 'todoist_2169277130',
                      'TYPE' => 'todoist',
                      'NTFY_ORDER' => '64-Todoist.FHEM',
                      'PID' => 2169277130,
                      'NOTIFYDEV' => 'global',
                      'NR' => 71,
                      '.attraggr' => [],
                      '.attrminint' => [],
                      'DEF' => '2169277130',
                      'VERSION' => '1.2.0.7',
                      'helper' => {
                                    'errorMessage' => '',
                                    'errorData' => '',
                                    'TIDS' => []
                                  },
                      'INTERVAL' => 60,
                      'READINGS' => {
                                      'lastCreatedTask' => {
                                                             'TIME' => '2019-03-22 12:26:14',
                                                             'VAL' => 'Device Battery Charged BATTERY_OK_z4 - 3112979198'
                                                           },
                                      'listText' => {
                                                      'VAL' => '-',
                                                      'TIME' => '2019-03-29 20:25:09'
                                                    },
                                      'error' => {
                                                   'TIME' => '2019-03-29 20:25:09',
                                                   'VAL' => 'GetTasks: Response was damaged or empty. See log for details.'
                                                 },
                                      'lastError' => {
                                                       'VAL' => 'GetTasks: Response was damaged or empty. See log for details.',
                                                       'TIME' => '2019-03-29 20:25:09'
                                                     },
                                      'state' => {
                                                   'VAL' => 'active',
                                                   'TIME' => '2019-03-25 20:37:12'
                                                 },
                                      'countUsers' => {
                                                        'VAL' => 0,
                                                        'TIME' => '2019-03-29 20:24:17'
                                                      },
                                      'count' => {
                                                   'VAL' => '0',
                                                   'TIME' => '2019-03-24 13:57:27'
                                                 }
                                    },
                      'mayBeVisible' => 1,
                      'FUUID' => '5c97853d-f33f-1958-1463-74f62fceb41119ce'
                    },
          'callback' => sub { "DUMMY" },
          'timeout' => 7
        };

2019.03.29 20:25:12 5: todoist (Todoist.FHEM): User Callback data: $VAR1 = '{"sync_token":"Mkm4Ex5XRWJ9VfHzYNOgFiap263Yleg_3-HtCOONyGd3xIUIIqlcpL62_tIRahq8mhbSj7sv-cha8Vpycu7On9uJI9lmcIND50AybbgxtRgz","temp_id_mapping":{},"collaborator_states":[],"collaborators":[],"full_sync":true}';

2019.03.29 20:25:12 5: todoist (Todoist.FHEM):  User Callback data (decoded JSON): $VAR1 = {
          'full_sync' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' ),
          'temp_id_mapping' => {},
          'collaborators' => [],
          'collaborator_states' => [],
          'sync_token' => 'Mkm4Ex5XRWJ9VfHzYNOgFiap263Yleg_3-HtCOONyGd3xIUIIqlcpL62_tIRahq8mhbSj7sv-cha8Vpycu7On9uJI9lmcIND50AybbgxtRgz'
        };

2019.03.29 20:25:12 5: todoist (Todoist.FHEM):  Task States:


Genügen diese Infos oder brauchst du noch mehr/was anderes?


Grüße
t0m

marvin78

Mach doch mal ein list von deinem todoist Device und poste es hier.

Ich kann das ganze noch nicht nachvollziehen. Dein Fehlerbild tritt normalerweise dann auf, wenn der Token nicht stimmt. Anders kann ich mir das aktuell nicht erklären.

t0m

Hi Marvin,

Internals:
   DEF        2169277130
   FUUID      5c97853d-f33f-1958-1463-74f62fceb41119ce
   INTERVAL   1800
   MID        todoist_2169277130
   NAME       Todoist.FHEM
   NOTIFYDEV  global
   NR         71
   NTFY_ORDER 64-Todoist.FHEM
   PID        2169277130
   STATE      -
   TYPE       todoist
   VERSION    1.2.0.7
   mayBeVisible 1
   READINGS:
     2019-03-24 13:57:27   count           0
     2019-03-29 21:18:20   countUsers      0
     2019-03-29 21:18:20   error           none
     2019-03-22 12:26:14   lastCreatedTask Device Battery Charged BATTERY_OK_z4 - 3112979198
     2019-03-29 21:18:17   lastError       GetTasks: Response was damaged or empty. See log for details.
     2019-03-29 21:18:17   listText        -
     2019-03-25 20:37:12   state           active
   helper:
     errorData 
     errorMessage
     TIDS:
Attributes:
   icon       Todoist
   room       Data
   stateFormat {
   sprintf("%s", ReadingsVal("Todoist.FHEM", "listText", "-"));
}


Grüße
t0m

t0m

Hi Marvin,

ich habe jetzt das alte Device gelöscht und ein neues angelegt. Jetzt funktioniert alles wieder. Die Oberfläche sieht jetzt etwas anders aus, als meine alte Version. Vielleicht lag es ja daran.


Danke nochmal und Grüße
t0m

P.S.: Auch danke für das Modul an sich!  :)

marvin78

Dann lag es sicher am Token. Es wundert mich zwar noch immer, dass das neu Ablegen nichts gebracht hat, aber ich freue mich, dass alles wieder läuft.