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

401 Please authenticate while attempting to add new movie or new cinema as an admin #15

Open
henno opened this issue Jun 30, 2022 · 5 comments

Comments

@henno
Copy link

henno commented Jun 30, 2022

  1. Register a user
  2. In MongoDB, update user's role to admin
  3. Log in with this user again
  4. Go to User > Dashboard > Movies
  5. Add new movie

Expected:
New movie is added

Actual:
Nothing seems to happen but in Network tab you will see that the POST request to add new movie resulted in 401 please authenticate message.

Why this is happening?
Why this "Please authenticate error is not shown on the page"?

@solfenta
Copy link

solfenta commented Jul 7, 2022

please help me how to fix unexpected token <in json at position 0

@nickhnsn
Copy link

nickhnsn commented Feb 1, 2023

As I found out by taking a loot at the source code, you have to set the role 'superadmin' in the database. Unfortunately, there are several other software breaking bugs which make the software unusable.

@mpano
Copy link

mpano commented Feb 16, 2023

almost everything is working but when I tried to add movie image I get this error telling me movie image can't be found
POST http://localhost:3000/movies/photo/63e80175503e476ee0b1b7a0 404 (Not Found)

@nandhujayan
Copy link

which node version is needed to be used

@mpano
Copy link

mpano commented Feb 12, 2024

@nandhujayan for me am using 18

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

5 participants