Connecteur Trainline en erreur

Comportement attendu

Synchronisation des factures Trainline

Comportement constaté

Impossible de récupérer les factures : Un problème semble s’être produit pendant la tentative de connexion à Trainline. Merci de revérifier vos informations de compte ou de consulter notre aide en ligne.

J’ai tout détaillé sur le GitHub du connecteur.

Configuration

Cozy auto-hébergé

ii  cozy                                         2018M2S3-1                     all          Cozy: Simple, Versatile, Yours
ii  cozy-coclyco                                 0.1.1-1                        all          Cozy: Simple, Versatile, Yours
ii  cozy-couchdb                                 2.1.1-0                        amd64        RESTful document oriented database
ii  cozy-nsjail                                  1.8-1                          amd64        A light-weight process isolation tool, making use of Linux namespaces
ii  cozy-stack                                   2018M2S3-1                     amd64        Cozy: Simple, Versatile, Yours

collect     git://github.com/cozy/cozy-collect.git#build        1.0.2-b7194db84a293afa3894657c447cadada1b7dd4b  ready

trainline       git://github.com/cozy/cozy-konnector-trainline.git#build    0.1.1-3dcbc9d3e0d13e07a5b531c72b2ecab007436f8c  ready

Merci @dohseven,

L’erreur, TypeError: Assignment to constant variable ne semble pas liée au fait que tu sois auto-hébergée. Je la remonte à @doubleface

Ce message d’erreur bizarre provient de la version 4 de webpack en mode production. Je viens de mettre à jour le connecteur trainline pour que ce message disparaisse.

@dohseven Si tu mets à jour le connecteur trainline, il ne devrait plus y avoir ce problème.

1 Like

Merci @doubleface ! (même si je n’ai aucune idée de ce que peut bien être la version 4 de webpack en mode production :wink:)

Le connecteur a l’air d’aller un peu mieux, puisqu’il m’a récupéré mes dernières factures. Par contre il est toujours indiqué en erreur, et la synchronisation a échoué sur timeout.

Dans les logs, j’ai maintenant ça :

May  9 11:52:30 mymachine cozy[20884]: time="2018-05-09T11:52:30+02:00" level=warning msg="Use requestFactory instead of request. It will be removed in cozy-konnector-libs@4" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:52:42 mymachine cozy[20884]: time="2018-05-09T11:52:42+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:53:59 mymachine cozy[20884]: time="2018-05-09T11:53:59+02:00" level=error msg="Stderr: terminate called after throwing an instance of 'std::bad_alloc'\n  what():  std::bad_alloc\n" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:53:59 mymachine cozy[20884]: time="2018-05-09T11:53:59+02:00" level=warning msg="Error while performing job: exit status 111 (retry in 65.335189ms)" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs worker_id=konnector/4
May  9 11:54:02 mymachine cozy[20884]: time="2018-05-09T11:54:02+02:00" level=warning msg="Use requestFactory instead of request. It will be removed in cozy-konnector-libs@4" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:54:09 mymachine cozy[20884]: time="2018-05-09T11:54:09+02:00" level=error msg="Could not parse stdout as JSON: \"operation filters starts with 0 operations\"" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:55:28 mymachine cozy[20884]: time="2018-05-09T11:55:28+02:00" level=error msg="Stderr: terminate called after throwing an instance of 'std::bad_alloc'\n  what():  std::bad_alloc\n" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs slug=trainline worker_id=konnector/4
May  9 11:55:28 mymachine cozy[20884]: time="2018-05-09T11:55:28+02:00" level=error msg="error while performing job: exit status 111" domain=mon.cozy.chez.moi job_id=ee302c278ff0a39cc9079e2cf013831d nspace=jobs worker_id=konnector/4

@dohseven Désolé pour les informations trop détaillées :sweat_smile: .

Tu viens de tomber sur un autre problème que je suis en train d’essayer de corriger. Dans certaines conditions, le lancement d’un connecteur peut prendre beaucoup trop de mémoire. Je te tiens au courant de la résolution.

Pas de soucis, c’est juste que ça m’a semblé un peu Kamoulox sur le moment. Mais je préfère avoir trop d’infos que pas assez !

Parfait, merci !

Le connecteur trainline est maintenant à jour et devrait mieux fonctionner.

2 Likes

Oui, je confirme, ça fonctionne !

Merci beaucoup @doubleface pour la réactivité et les corrections, c’est un plaisir de remonter des petits problèmes quand c’est traité aussi vite :slight_smile: