gaojie058 / CollabCoder_system

CollabCoder is a web application that supports two coders do collaborative qualitative analysis.
https://gaojie058.github.io/CollabCoder/
4 stars 4 forks source link

File Import Broken #3

Open zedward23 opened 4 months ago

zedward23 commented 4 months ago

Txt and Csv files (even the ones in the demo data folder) cannot be loaded into new project pages. I am just trying to use sample_data/yelp.txt.

Issue 1: In the function handleConfirm (line 125 in AddNewProjectPage.js), the text variable is not getting populated with the contents of the FileReader(). This means that even before sending the info to the database, the projectObj variable's input_docs value is still empty.

Issue 2: Error Message: uncaughtExceptionError [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client. Looks like there are two res.send() calls are happening at the same time (according to stackoverflow) but I can't find where that is.

In other words, 1. the files are not being properly read/stored and 2. the text of the files are not being sent to the database (MongoDB in my case) either.

My machine is an intel i7 processor on windows 10.

Thank you so much in advance!

gaojie058 commented 4 months ago

Hi Edward, we have resolved this bug, and please try the latest code. Let us know if the bug remains!