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

[EPIC004_TKT001_vendor_routes] Attempting to get all vendors while unauthenticated crashes #6

Open
CHEUNG-K-Jeffrey opened this issue Aug 1, 2024 · 1 comment
Assignees

Comments

@CHEUNG-K-Jeffrey
Copy link
Collaborator

CHEUNG-K-Jeffrey commented Aug 1, 2024

Definitely crashes with 0fdb864
See #4 for the PR

GET /api/v1/vendors 500 8.637 ms - 1832
TypeError: Cannot read properties of undefined (reading 'split')
    at authenticationMiddleware (/Users/jeffreycheung/Source Code/Mighty Heap Practicum Project/gg-pac-team5-back/src/middleware/authentication.js:8:28)
    at newFn (/Users/jeffreycheung/Source Code/Mighty Heap Practicum Project/gg-pac-team5-back/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/Users/jeffreycheung/Source Code/Mighty Heap Practicum Project/gg-pac-team5-back/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/jeffreycheung/Source Code/Mighty Heap Practicum Project/gg-pac-team5-back/node_modules/express/lib/router/index.js:328:13)
    at /Users/jeffreycheung/Source Code/Mighty Heap Practicum Project/gg-pac-team5-back/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/Users/jeffreycheung/Source Code/Mighty Heap Practicum Project/gg-pac-team5-back/node_modules/express/lib/router/index.js:346:12)
    at next (/Users/jeffreycheung/Source Code/Mighty Heap Practicum Project/gg-pac-team5-back/node_modules/express/lib/router/index.js:280:10)
    at /Users/jeffreycheung/Source Code/Mighty Heap Practicum Project/gg-pac-team5-back/node_modules/express-favicon/index.js:18:12
    at newFn (/Users/jeffreycheung/Source Code/Mighty Heap Practicum Project/gg-pac-team5-back/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/Users/jeffreycheung/Source Code/Mighty Heap Practicum Project/gg-pac-team5-back/node_modules/express/lib/router/layer.js:95:5)
@SergeDot
Copy link
Collaborator

SergeDot commented Aug 2, 2024

I believe this is due to the database being online. I am checking with Chase how to deal with that to make the code shareable

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

2 participants