Projet

Général

Profil

Bug #34319

problème cache metadata

Ajouté par Frédéric Péters il y a presque 5 ans. Mis à jour il y a presque 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
25 juin 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

File "/usr/lib/python2.7/dist-packages/mellon/utils.py" in get_idps

File "/usr/lib/python2.7/dist-packages/mellon/adapters.py" in get_idps
  72.             if self.load_idp(idp, i):

File "/usr/lib/python2.7/dist-packages/mellon/adapters.py" in load_idp
  245.         self.load_metadata(idp, i)

File "/usr/lib/python2.7/dist-packages/mellon/adapters.py" in load_metadata
  217.             self.load_metadata_url(idp, i)

File "/usr/lib/python2.7/dist-packages/mellon/adapters.py" in load_metadata_url
  205.             __http_get()

File "/usr/lib/python2.7/dist-packages/mellon/adapters.py" in __http_get
  190.                 stale_timeout = 24 * metadata_cache_time

Exception Type: TypeError at /menu.json
Exception Value: unsupported operand type(s) for *: 'int' and 'NoneType'

Fichiers

Révisions associées

Révision 40674e4d (diff)
Ajouté par Frédéric Péters il y a presque 5 ans

do not warn about stale cache if not cache timeout is defined (#34319)

Historique

#1

Mis à jour par Frédéric Péters il y a presque 5 ans

#2

Mis à jour par Benjamin Dauvergne il y a presque 5 ans

METADATA_CACHE_TIME ne peut pas être à None, le défaut est à 3600 dans app_settings...

#3

Mis à jour par Frédéric Péters il y a presque 5 ans

Et pourtant, la (petite centaine de) trace.

#4

Mis à jour par Benjamin Dauvergne il y a presque 5 ans

Il y a eu reload ou restart ?

#5

Mis à jour par Benjamin Dauvergne il y a presque 5 ans

  • Statut changé de Solution proposée à Solution validée

Bon ok mais c'est louche, j'ai juste aucun moyen de reproduire.

#6

Mis à jour par Frédéric Péters il y a presque 5 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 40674e4d1a6b7992c9a44decf6b6ad05a11e13aa
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Jun 25 16:05:15 2019 +0200

    do not warn about stale cache if no-t- cache timeout is defined (#34319)
#7

Mis à jour par Frédéric Péters il y a presque 5 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF