1602 / 1602/jugglingdb

connect session is stored as [object Object] with jugglingdb@0.2.11

Aperta
#366 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.