[GH-ISSUE #5851] [bug]: Workspace invitation link returns 500 for users without existing accounts #2295

Open
opened 2026-03-16 23:52:40 +03:00 by kerem · 0 comments
Owner

Originally created by @roopepaajanen on GitHub (Feb 9, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5851

Originally assigned to: @mirarifhasan on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Web App

Browser

Firefox

Operating System

Windows

Bug Description

Describe the bug

Users who do not yet have an account on our self-hosted Hoppscotch instance receive a 500 Internal Server Error when clicking a workspace invitation link from email. If the user first logs in (creating their account) and then opens the same invitation link, it works correctly. We are using Microsoft authentication.

This suggests the first-time login / account creation flow does not correctly handle workspace invitation links.


To Reproduce

  1. Invite a user to a workspace via email.
  2. Ensure the invited email address has no existing account.
  3. Click the invitation link from the email.
  4. Observe 500 Internal Server Error.
  5. Log in manually to create the account.
  6. Open the same invitation link again → works.

Expected behaviour

Users without existing accounts should be able to accept workspace invitations and complete onboarding in a single flow.


Actual behaviour

Invitation link fails with 500 Internal Server Error unless the user has already logged in once.


Environment

  • Hoppscotch version: 2026.1.1
  • Deployment: Self-hosted, distributed Kubernetes
  • Browser: Firefox

Deployment Type

Self-hosted (on-prem deployment)

Version

2026.1.1

Originally created by @roopepaajanen on GitHub (Feb 9, 2026). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5851 Originally assigned to: @mirarifhasan on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Web App ### Browser Firefox ### Operating System Windows ### Bug Description ### Describe the bug Users who do not yet have an account on our self-hosted Hoppscotch instance receive a **500 Internal Server Error** when clicking a workspace invitation link from email. If the user first logs in (creating their account) and then opens the same invitation link, it works correctly. We are using Microsoft authentication. This suggests the first-time login / account creation flow does not correctly handle workspace invitation links. --- ### To Reproduce 1. Invite a user to a workspace via email. 2. Ensure the invited email address has no existing account. 3. Click the invitation link from the email. 4. Observe **500 Internal Server Error**. 5. Log in manually to create the account. 6. Open the same invitation link again → works. --- ### Expected behaviour Users without existing accounts should be able to accept workspace invitations and complete onboarding in a single flow. --- ### Actual behaviour Invitation link fails with **500 Internal Server Error** unless the user has already logged in once. --- ### Environment - Hoppscotch version: `2026.1.1` - Deployment: Self-hosted, distributed Kubernetes - Browser: Firefox ### Deployment Type Self-hosted (on-prem deployment) ### Version 2026.1.1
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2295
No description provided.