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

Bug: UnblockUser mutation always returns UnauthorizedError #2238

Closed
Doraemon012 opened this issue Apr 20, 2024 · 4 comments
Closed

Bug: UnblockUser mutation always returns UnauthorizedError #2238

Doraemon012 opened this issue Apr 20, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Doraemon012
Copy link
Member

Issue Description:

Bug:
The UnblockUser mutation always triggers an UnauthorizedError, making it impossible to unblock a blocked user.

Steps to Reproduce:

  1. Open GraphQL.
  2. Execute the mutation to block a user (BlockUser) within an organization.
  3. Confirm that the operation completes successfully.
  4. Execute the mutation to unblock the previously blocked user (UnblockUser) within the organization.
  5. Observe the return of UnauthorizedError.

Expected Behavior:
The UnblockUser mutation should not result in an unauthorized error. After blocking a user, unblocking should be possible without encountering this error.

Actual Behavior:
The UnblockUser mutation always returns UnauthorizedError.

Screenshots:

Screencast.from.2024-04-20.23-14-58.webm

Additional Note:
For potential internship candidates: Please review this issue if you are considering applying for a Palisadoes Foundation internship: Link to internship issue

@Doraemon012 Doraemon012 added the bug Something isn't working label Apr 20, 2024
@github-actions github-actions bot added the unapproved Unapproved for Pull Request label Apr 20, 2024
@Doraemon012
Copy link
Member Author

@palisadoes This is a blocking issue for the issue talawa-admin/issues/1885 in Talawa-admin. Please assing this to me.

@pranshugupta54
Copy link
Member

pranshugupta54 commented Apr 20, 2024

@Doraemon012, did you feel any changes recently? Like API getting very slow? Pages keep loading? CORS error in API randomly?

Bcuz i got this UnauthorizedError on other mutation too, restarting everything multiple times fixed it back.

If you're facing this only for one mutation then please check if you find any flaw in the API code or not.

@palisadoes palisadoes removed the unapproved Unapproved for Pull Request label Apr 20, 2024
@Doraemon012
Copy link
Member Author

@Doraemon012, did you feel any changes recently? Like API getting very slow? Pages keep loading? CORS error in API randomly?

Bcuz i got this UnauthorizedError on other mutation too, restarting everything multiple times fixed it back.

If you're facing this only for one mutation then please check if you find any flaw in the API code or not.

@pranshugupta54, I agree that the API seems slower, but that's not why we're getting the UnauthorizedError in the UnblockUser mutation. The real issue is a mistake in the code.

@pranshugupta54
Copy link
Member

I got this similar for fund raising campaigning randomly then it got resolved automatically. Let's see if you could find some issue with code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants