e6ba89961c
refactor: consolidate error handlers to use getServerErrorFromUnknown ( #25114 )
...
* refactor: consolidate error handlers to use getServerErrorFromUnknown
- Migrate server-only code to use getServerErrorFromUnknown for better error handling
- Add JSDoc documentation to both getErrorFromUnknown and getServerErrorFromUnknown
- Update webhook handlers, payment services, email service, and booking service
- Keep getErrorFromUnknown for client-side and isomorphic code
- Improve error message extraction by using err.cause?.stack instead of err.stack
- Fix ESLint warnings: replace 'any' with 'unknown' types, fix hasOwnProperty usage
Co-Authored-By: benny@cal.com <sldisek783@gmail.com >
* Update packages/app-store/paypal/api/webhook.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* refactor
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-11-28 09:14:06 +01:00
Alex van Andel and GitHub
cf6654dd1f
Extract some refactor work from util.ts to improve error handling ( #17912 )
2024-12-02 19:06:45 +00:00
d47c6b3fdb
fix: Credential Syncing Improvements ( #14588 )
...
* Add example app to test credential sync
* Fixes
* Changes to normalize flow of GoogleCalendar and Zoom
* Add unit tests
* PR Feedback
* credential-sync-more-tests-and-more-apps
* Fix yarn.lock
* Clear cache
* Add test
* Fix yarn.lock
* Fix 204 handling
* Fix yarn.lock
---------
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
2024-04-25 12:47:17 -04:00
9ba90e18de
resolves #3565 ( #8581 )
...
Co-authored-by: Alex van Andel <me@alexvanandel.com >
2023-05-02 16:56:29 +00:00
Omar López and GitHub
16adf86c8c
Upgrades typescript to 4.9.4 ( #6747 )
...
* Upgrades typescript to 4.9.4
* Type fixes
2023-01-26 18:50:56 -07:00
cb96b12108
Add conditional if response received from graph api v1 was empty ( #5573 )
...
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
2022-11-18 11:41:36 -06:00
alannnc and GitHub
ac9b2d0577
Feature/invalid credentials ( #5120 )
...
* Fixing types from handleErrorJson usage and Credential
* Replace credential prisma type for a better suitable
* Improvements on zoom video adapter
* Renamed extendedCredentialType and put it in a best suited file
* Frontend display invalid credential
* Fix styles and text
* Fix type required for fake daily credentials
2022-10-31 22:06:03 +00:00
525ce0d075
Fix/office365 api call ( #3534 )
...
* WIP fixes for handling office365 api call
* First working version microsoft api call handling
* Remove logs
* Clean up and improve function names
* Clean up
* Remove log
* Fix function missing its correct name
* Fix direct return of statement
* Cleanup
* Simplify with private fetcher
* Update CalendarService.ts
* Update getOfficeAppKeys.ts
Co-authored-by: zomars <zomars@me.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-07-27 19:12:42 +00:00
Hariom Balhara and GitHub
faac59fb8e
Fix TS errors and weird instances of undefined error due to prisma upgrade and turbo cache ( #3475 )
...
* Fix TS errors
* Always reexecute prisma postinstall as prisma version might change after yarn
2022-07-21 09:59:37 +00:00
5a0cef7fb9
fix/error-handling-with-proper-status ( #3453 )
...
* Add conditional on error handling
* Fix return type for handleError
Co-authored-by: Omar López <zomars@me.com >
2022-07-20 14:02:00 -06:00
zomars
e0a391d46e
Prisma errors can't be handled on client
2022-06-13 10:37:42 -06:00
zomars
06482388bd
Console build fixes
2022-06-13 10:31:04 -06:00
Omar López and GitHub
558897fe53
Migrates components and libs to packages ( #2172 )
...
* Migrates Dialog to ui package
* Migrates Alert to ui
* Migrate Button to ui
* UI and lib migrations
* Add missing imports
* Update Error.tsx
2022-03-16 16:36:43 -07:00