connect session is stored as [object Object] with jugglingdb@0.2.11
- Vorherrschende Sprache
- JavaScript
- Sterne
- 2k
- Forks
- 238
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, nodejs, postgresql
- Bereich
- backend, database
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 45/100