connect session is stored as [object Object] with jugglingdb@0.2.11
- Langage dominant
- JavaScript
- Étoiles
- 2k
- Forks
- 238
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Hi,
Storing session in db as described here https://npmjs.org/package/connect-jugglingdb is broken with the following error:
TypeError: Cannot read property 'expires' of undefined
at /app/node_modules/connect-jugglingdb/index.js:81:5
Cause: psql> select \* from sessions =>
id sid expires session
4 lDWyP5LEZpl7iDw9zmqLClF8 2014-02-13 22:24:16 [object Object]
The problem does not occur with jugglingdb@0.2.5
Thank you.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
The issue is in connect-jugglingdb/index.js line 81, where it tries to read property 'expires' from an undefined session. The session is stored as '[object Object]' in PostgreSQL. Start by examining the session serialization/deserialization in connect-jugglingdb and jugglingdb's PostgreSQL adapter. Compare behavior between jugglingdb@0.2.5 and 0.2.11. Run the failing test or create a minimal reproduction to see the exact data flow.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, nodejs, postgresql
- Domaine
- backend, database
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 45/100