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

added getTracker to all Guards #3535

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RaHehl
Copy link

@RaHehl RaHehl commented Nov 10, 2023

(maybe) Closes # 3381

Description

For bug #3381, the cause appears to be @nestjs/throttler, at least according to the report of an internal user who saw something with "throttling" in the log when the team environments disappeared. I suspect this is because the Hoppscotch API runs in Kubernetes and therefore there is an ingress proxy running between the API and the client. I don't know anything about NestJS, I think the solution to this lies in the direction of this PR.

@balub balub added the self-host Self hosted Hoppscotch instance label Nov 21, 2023
Copy link
Member

@balub balub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RaHehl I believe adding the getTracker function only in the gql-throttler.guard.ts file is enough, so can you remove it from the auth-guard.

@RaHehl RaHehl requested a review from balub January 12, 2024 06:52
@RaHehl
Copy link
Author

RaHehl commented Jan 12, 2024

@RaHehl I believe adding the getTracker function only in the gql-throttler.guard.ts file is enough, so can you remove it from the auth-guard.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
self-host Self hosted Hoppscotch instance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants