Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: Try to ignore the hcaptcha error (#35246)

Ivan Vasiloved77c3eb36e3
diff --git a/apps/studio/sentry.client.config.ts b/apps/studio/sentry.client.config.ts
index 8c9d431de7a..44cc043b029 100644
--- a/apps/studio/sentry.client.config.ts
+++ b/apps/studio/sentry.client.config.ts
@@ -7,10 +7,14 @@ import { IS_PLATFORM } from 'common/constants/environment'
import { LOCAL_STORAGE_KEYS } from 'common/constants/local-storage'
import { match } from 'path-to-regexp'
+// This is a workaround to ignore hCaptcha related errors.
function isHCaptchaRelatedError(event: Sentry.Event): boolean {
const errors = event.exception?.values ?? []
for (const error of errors) {
- if (error.stacktrace?.frames?.some((f) => f.abs_path?.includes('onload=hCaptchaOnLoad'))) {
+ if (
+ error.value?.includes('is not a function') &&
+ error.stacktrace?.frames?.some((f) => f.filename === 'api.js')
+ ) {
return true
}
}