Title: [bug] Invited user still shows up in Pending requests · Issue #337 · sourcebot-dev/sourcebot · GitHub
Open Graph Title: [bug] Invited user still shows up in Pending requests · Issue #337 · sourcebot-dev/sourcebot
X Title: [bug] Invited user still shows up in Pending requests · Issue #337 · sourcebot-dev/sourcebot
Description: Describe the bug Using the default authentication mechanism. After having invited a user and this user having logged in successfully, as a owner I still see the user in "Pending requests". When clicking "Approve", I get an error in the U...
Open Graph Description: Describe the bug Using the default authentication mechanism. After having invited a user and this user having logged in successfully, as a owner I still see the user in "Pending requests". When cli...
X Description: Describe the bug Using the default authentication mechanism. After having invited a user and this user having logged in successfully, as a owner I still see the user in "Pending requests"...
Opengraph URL: https://github.com/sourcebot-dev/sourcebot/issues/337
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[bug] Invited user still shows up in Pending requests","articleBody":"### Describe the bug\n\nUsing the default authentication mechanism.\n\nAfter having invited a user and this user having logged in successfully, as a owner I still see the user in \"Pending requests\".\n\nWhen clicking \"Approve\", I get an error in the UI:\n\n\n\nErrors logs:\n```\n[web] | 2025-06-06T16:12:47.053Z error: [web-actions]\n[web] | Invalid `prisma.userToOrg.create()` invocation:\n[web] |\n[web] |\n[web] | Unique constraint failed on the fields: (`orgId`,`userId`)\n[web] | PrismaClientKnownRequestError:\n[web] | Invalid `prisma.userToOrg.create()` invocation:\n[web] |\n[web] |\n[web] | Unique constraint failed on the fields: (`orgId`,`userId`)\n[web] | at Vn.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7339)\n[web] | at Vn.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:6663)\n[web] | at Vn.request (/app/node_modules/@prisma/client/runtime/library.js:121:6370)\n[web] | at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9617)\n[web] | at async /app/packages/web/.next/server/chunks/616.js:1:58882\n[web] | at async Proxy._transactionWithCallback (/app/node_modules/@prisma/client/runtime/library.js:130:7984)\n[web] | at async /app/packages/web/.next/server/chunks/616.js:1:58760\n[web] | at async es (/app/packages/web/.next/server/chunks/616.js:1:38506)\n[web] | at async /app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:418\n[web] | at async rE (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:8148)\n```\n\nIt doesn't seem to cause any actual issue, just the request stays as pending.\n\n\n### Sourcebot deployment information\n\nSourcebot version (e.g. v3.0.1): v4.1.1\n","author":{"url":"https://github.com/gaeljw","@type":"Person","name":"gaeljw"},"datePublished":"2025-06-06T16:13:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/337/sourcebot/issues/337"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1afbfffc-17a2-633e-21f9-b63f5b69e528 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCD8:3DC17:65422E:8D045A:6A538511 |
| html-safe-nonce | 6f50f5310184fe6a4c63345643bef2414fcc412c334c17f5f72d1b61cc4dcd26 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0Q4OjNEQzE3OjY1NDIyRTo4RDA0NUE6NkE1Mzg1MTEiLCJ2aXNpdG9yX2lkIjoiNzM0OTQ1MzU2NTQ3MzI3MjQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e3d38bdfaa5a8ea2a8dcc9a4773d9c303a5011ebcc5eff3633a450fc048a7d94 |
| hovercard-subject-tag | issue:3125228596 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sourcebot-dev/sourcebot/337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8aa9a6aeae803b3be327b96b72974cbff1a89a80b5cd15553c223eae329c6e1f/sourcebot-dev/sourcebot/issues/337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8aa9a6aeae803b3be327b96b72974cbff1a89a80b5cd15553c223eae329c6e1f/sourcebot-dev/sourcebot/issues/337 |
| og:image:alt | Describe the bug Using the default authentication mechanism. After having invited a user and this user having logged in successfully, as a owner I still see the user in "Pending requests". When cli... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gaeljw |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/sourcebot-dev/sourcebot git https://github.com/sourcebot-dev/sourcebot.git |
| octolytics-dimension-user_id | 135396723 |
| octolytics-dimension-user_login | sourcebot-dev |
| octolytics-dimension-repository_id | 846729675 |
| octolytics-dimension-repository_nwo | sourcebot-dev/sourcebot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 846729675 |
| octolytics-dimension-repository_network_root_nwo | sourcebot-dev/sourcebot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width