Skip to content

Environment for replicating a mysql error with responses from Express Session

Notifications You must be signed in to change notification settings

G-Adams/express-session-mysql-issue-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express session truncated response bug

Set up

After intial download run

npm update
npm install

Use the provided sql script 'books.sql' to import the test database

Fill in the .env file with your mysql credentials

The environment variable USE_SESSION_STORE being set to 'TRUE' tells the program to use the session store. This is set to false initally

To start this program run

npm start

Make a get request to localhost:8080/books/valid and verify that the response is valid JSON

Make a get request to localhost:8080/books/invalid and verify that the response is valid JSON.

Change the environment variable USE_SESSION_STORE to TRUE

Make a get request to localhost:8080/books/valid and verify that the response is valid JSON

Make a get request to localhost:8080/books/invalid and verify that the response is invalid JSON. (Content length mismatch - actual response is missing the end '}')

This bug has something to do with either express-mysql-session or express-session

About

Environment for replicating a mysql error with responses from Express Session

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published