connect session is stored as [object Object] with jugglingdb@0.2.11
- Lingua principale
- JavaScript
- Stelle
- 2k
- Fork
- 238
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, nodejs, postgresql
- Ambito
- backend, database
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100