88f347f18c
feat: improve unkey error handling with heavy logging for unknown errors ( #23223 )
...
* feat: improve unkey error handling with heavy logging for unknown errors
- Add onError handler to all Ratelimit instances to catch unknown service errors
- Log comprehensive error details including stack traces and identifiers
- Return fallback response allowing requests through instead of rejecting promises
- Preserve existing rate limit functionality for legitimate rate limit cases
- Maintain consistency with existing timeout fallback behavior
Co-Authored-By: keith@cal.com <keithwillcode@gmail.com >
* Update rateLimit.ts
* chore: Bump @unkey/ratelimit version
* Add required props to rateLimiter onError response
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com >
2025-08-21 23:37:01 +01:00
Ronit Raj
930165b6e8
Update rateLimit.ts ( #20785 )
2025-04-21 05:33:00 +00:00
6615b885d1
chore: Make app compatible with Fluid Compute ( #19841 )
...
* chore: Make app compatible with Fluid Compute
* Removed isCold from me api endpoint
* chore: Remove handler caching for Fluid Compute compatibility (#20692 )
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: keith@cal.com <keith@cal.com >
* fix client_id issue
* chore: Remove UNSTABLE_HANDLER_CACHE for Fluid Compute compatibility (#20694 )
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: keith@cal.com <keith@cal.com >
* Fixing types
* Fixing type issues
* chore: Remove importHandler references for Fluid Compute compatibility
Co-Authored-By: keith@cal.com <keith@cal.com >
* chore: Remove importHandler references from attributes router for Fluid Compute compatibility
Co-Authored-By: keith@cal.com <keith@cal.com >
---------
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: keith@cal.com <keith@cal.com >
2025-04-14 18:27:59 -04:00
sean-brydon
e07b1eda32
Async False ( #18611 )
2025-01-12 20:31:43 +00:00
883d745784
feat: SMS/Whatsapp to attendee for teams ( #14648 )
...
* remove event type requires confirmation
* allow sms sending also for team (frontend)
* allow text to attendee for team (backend)
* add rate limiting for SMS (WIP)
* add functionality to lock and unlock SMS sending (+admin UI view)
* rename to smsLockState
* add ability to lock users and teams
* don't send sms if locked
* add missing imports
* fix rate limit namespace
* add translation
* fix type error
* remove prop from UsersTable
* add smsLockState to buildUser
* code clean up
* create seperate sms rate limit function
* fix type error
* add missing userId and teamId to sendSMS
* code improvements
* add User Team type
* fix marking as reviewed
* check monthly sms limit only for user
* don't lock orgs
* fix type error
* fix avatars
* fix type error
* fix type error
* fix type error
---------
Co-authored-by: CarinaWolli <wollencarina@gmail.com >
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
2024-04-23 19:48:44 +00:00
Andreas Thomas and sean-brydon
091d3cdd17
feat: use unkey for global ratelimiting and identifier overrides ( #14173 )
...
* feat: use unkey for global ratelimiting and identifier overrides
fixes #13672
* revert: make test pass
* chore: push timeout incase unkey ever dies
* chore: push timeout incase unkey ever dies
---------
Co-authored-by: sean-brydon <sean@cal.com >
2024-03-26 15:52:00 +00:00
Keith Williams
1cc9f1d25d
chore: Increase API rate limit ( #13970 )
2024-03-04 16:44:39 +00:00
Omar López
fdaa6961f8
fix: Adds missing rate limiting headers ( #13430 )
2024-01-29 12:26:11 -07:00
Benny Joo and zomars
63416d4f33
chore: update tslog from 3.2.1 to 4.9.2 ( #11717 )
...
Co-authored-by: zomars <zomars@me.com >
2023-10-17 19:00:48 +00:00
DexterStorey and tedspare
9e927af813
feat: add rate limiting and more error handling to Cal.ai ( #11898 )
...
Co-authored-by: tedspare <ted.spare@gmail.com >
2023-10-17 18:26:49 +00:00
sean-brydon
dc9a4f0dba
feat: Add rate limting to API ( #11783 )
2023-10-11 23:44:00 +01:00
sean-brydon
8cdddfa1d0
fix: ratelimit - updates ( #10347 )
2023-07-27 10:41:43 +02:00
zomars
fcc13da23d
Update rateLimit.ts
2023-07-14 16:02:10 -07:00
zomars
e813f8bb17
Update rateLimit.ts
2023-07-14 15:59:04 -07:00
sean-brydon and Omar López
007f3319a0
feat: ratelimit - ratelimit refactor + tests ( #9744 )
...
Co-authored-by: Omar López <zomars@me.com >
2023-06-26 19:44:58 +00:00
sean-brydon and zomars
8eccd3658e
feat: Upstash implementation for rate limiting/redis ( #9514 )
...
* Introduce rate limiting that works on the edge
* typo
* Log once on init
* Update rateLimit.ts
---------
Co-authored-by: zomars <zomars@me.com >
2023-06-19 10:01:06 +00:00
Lucas Smith and zomars
2317473545
feat(web): improve session retrieval performance ( #7584 )
...
* feat(web): improve session retrieval performance
Switch to using `getServerSession` which avoids a HTTP round trip to retrieve session details.
Additionally, migrate deprecated `app/lib/auth` calls to to `@calcom/lib` package.
* fix: update failing test and lint
* Consolidates auth code in features
* Update yarn.lock
* Update packages/trpc/server/createContext.ts
* Oopsie
---------
Co-authored-by: zomars <zomars@me.com >
2023-03-10 23:45:24 +00:00
b8b1b9a6d0
fix: rate limit auth ( #3820 )
...
* fix: rate limit auth
* fix: replace lru-cache w memory-cache
* remove comments
* fix: yarn.lock
* fix: remove changes yarn lock
* fix: add missing EOL empty liune
* fix: move rate limiter so it kicks the last, limit to 10 tries per minute
* fix: move limiter w rest of code
* test: trying fix onboardong
* fix: undo changes in globalSetup.ts
* test: fix disable login for onboarding
* fix: use username instead of email for token check
* fix: tests
* fix: don't run on test
* fix: add missing comma
* fix: remove uniqueTokenPerInterval
* fix: add errorcode to packages lib auth
* Update packages/lib/rateLimit.ts
fix: improve readability
Co-authored-by: Omar López <zomars@me.com >
* Update packages/lib/rateLimit.ts
fix: no unnecessary any
Co-authored-by: Omar López <zomars@me.com >
* Update packages/lib/rateLimit.ts
fix: improve readability
Co-authored-by: Omar López <zomars@me.com >
* fix: rename interval -> intervalInMs
* fix: check user.email not username which could be empty
* fix: rateLimit update all naming
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me >
Co-authored-by: Omar López <zomars@me.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
2022-08-30 13:58:35 -06:00