cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.31k stars 493 forks source link

Unable to create account/login #42

Closed vesector closed 1 year ago

vesector commented 1 year ago

Hello,

Thanks for the project.

When creating an account and sometimes when login the server crashes and I can see the following on the console:

2023-03-17 12:30:50 /app/src/database/sqlite.ts:92 2023-03-17 12:30:50 passwordHash: Buffer.from(row.password_hash), 2023-03-17 12:30:50 ^ 2023-03-17 12:30:50 TypeError: Cannot read properties of undefined (reading 'password_hash') 2023-03-17 12:30:50 at Statement. (/app/src/database/sqlite.ts:92:55) 2023-03-17 12:30:50 at Statement.replacement (/app/node_modules/sqlite3/lib/trace.js:25:27) 2023-03-17 12:30:50 at Statement.replacement (/app/node_modules/sqlite3/lib/trace.js:25:27)

On the browser it just shows "empty response".

It is hosted using docker and this has been tested on two completely different machines (hosted on two different machines and different networks).

Also tested on Edge & Chrome & Firefox.

If you need any other details please let me know.

cogentapps commented 1 year ago

The error is a bug that happens when you sign into a non-existent account. That bug is fixed now (docker pull to update). However, for the account to not exist, something must have gone wrong when you created an account too. Do you see any other errors on sign up specifically?

vesector commented 1 year ago

I was going to try but after the pull (and tested on a different machine from scratch) it just keeps loading:

image
cogentapps commented 1 year ago

New update from today rolls back a change to the security config that seemed to be causing problems for users and may be related to your issue. Can you try again and see if the issue is resolved? Otherwise I'll take a deeper look and try to reproduce those errors.

vesector commented 1 year ago

[Resolved]