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

[CAL-3519] Error when trying to unlink a google account #14720

Open
zomars opened this issue Apr 23, 2024 · 1 comment
Open

[CAL-3519] Error when trying to unlink a google account #14720

zomars opened this issue Apr 23, 2024 · 1 comment
Assignees
Labels
authentication area: authentication, auth, google sign in, password, SAML, password reset, can't log in 🐛 bug Something isn't working foundation High priority Created by Linear-GitHub Sync
Milestone

Comments

@zomars
Copy link
Member

zomars commented Apr 23, 2024

I just stumbled into an error in prod when trying to unlink a google account.

IMO we should handle unlinking in a separate handler besides updateProfile.

image

Here's the redacted stack trace (View in Sentry):

 Error:  {"name":"PrismaClientValidationError","clientVersion":"5.4.2"}
Something went wrong Error: An error occured while querying the database.
    at redactError (/var/task/apps/web/.next/server/chunks/30267.js:1:621)
    ... 8 lines matching cause stack trace ...
    at async /var/task/node_modules/@sentry/nextjs/cjs/common/wrapApiHandlerWithSentry.js:153:35 {
  code: 'INTERNAL_SERVER_ERROR',
  name: 'TRPCError',
  [cause]: Error: An error occured while querying the database.
      at redactError (/var/task/apps/web/.next/server/chunks/30267.js:1:621)
      at /var/task/apps/web/.next/server/chunks/46279.js:1:1628
      at async callRecursive (file:///var/task/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:125:32)
      at async procedure (file:///var/task/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:155:24)
      at async inputToProcedureCall (file:///var/task/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveHTTPResponse.mjs:47:22)
      at async Promise.all (index 0)
      at async resolveHTTPResponse (file:///var/task/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveHTTPResponse.mjs:184:37)
      at async file:///var/task/node_modules/@trpc/server/dist/adapters/node-http/nodeHTTPRequestHandler.mjs:82:9
      at async file:///var/task/node_modules/@trpc/server/dist/adapters/next.mjs:47:9
      at async /var/task/node_modules/@sentry/nextjs/cjs/common/wrapApiHandlerWithSentry.js:153:35
}

_Originally posted by @zomars in #14082 (comment)

From SyncLinear.com | CAL-3519

@zomars zomars changed the title Error when trying to unlink a google account [CAL-3519] Error when trying to unlink a google account Apr 23, 2024
@zomars zomars added 🐛 bug Something isn't working High priority Created by Linear-GitHub Sync labels Apr 23, 2024
@dosubot dosubot bot added the authentication area: authentication, auth, google sign in, password, SAML, password reset, can't log in label Apr 23, 2024
@manideep1428
Copy link

It working perfect , Try again .

@zomars zomars added this to the v4.2 milestone May 9, 2024
@zomars zomars self-assigned this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authentication area: authentication, auth, google sign in, password, SAML, password reset, can't log in 🐛 bug Something isn't working foundation High priority Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

2 participants