Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint not found /api/user #75

Open
Diego-Viero opened this issue Dec 19, 2024 · 0 comments
Open

Endpoint not found /api/user #75

Diego-Viero opened this issue Dec 19, 2024 · 0 comments

Comments

@Diego-Viero
Copy link

Diego-Viero commented Dec 19, 2024

I spent some time trying to get the application running, the information in the README is useful but definitely not exhaustive, here's some steps that I had to debug manually in order to get the application running:

  • Install mongodb
  • Create a .env file in backend/quickTA/quickTA/ with the following content:
MONGODB="localhost:27017"
OPENAI_KEY=""
  • Run python3 manage.py migrate in backend/quickTA directory
  • Set node version 18 for the frontend, otherwise running npm run start would return the following error:
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (/home/yedgo/Documents/coding/QuickTA/docs/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/yedgo/Documents/coding/QuickTA/docs/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/home/yedgo/Documents/coding/QuickTA/docs/node_modules/webpack/lib/NormalModule.js:471:10)
    at /home/yedgo/Documents/coding/QuickTA/docs/node_modules/webpack/lib/NormalModule.js:503:5
    at /home/yedgo/Documents/coding/QuickTA/docs/node_modules/webpack/lib/NormalModule.js:358:12
    at /home/yedgo/Documents/coding/QuickTA/docs/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/home/yedgo/Documents/coding/QuickTA/docs/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array.<anonymous> (/home/yedgo/Documents/coding/QuickTA/docs/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/home/yedgo/Documents/coding/QuickTA/docs/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /home/yedgo/Documents/coding/QuickTA/docs/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
    at /home/yedgo/Documents/coding/QuickTA/docs/node_modules/graceful-fs/graceful-fs.js:123:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {
  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v22.12.0

Once all these steps were done I managed to have the application run without any crashes.

Although now when I access the frontend page I see a screen saying "Welcome to QuickTA" with a bar below which suggests it's loading something, and if I check the backend console I see the following error:

Not Found: /api/user
[19/Dec/2024 16:11:27] "GET /api/user?utorid=sheik324 HTTP/1.1" 404 23

Could you help me understand if I missed some configuration step or if I'm doing something wrong?
Feel free to ask for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant