[GH-ISSUE #5488] [bug]: Collections/environments get lost #2106

Closed
opened 2026-03-16 23:12:49 +03:00 by kerem · 2 comments
Owner

Originally created by @ankurmalhotra07 on GitHub (Oct 17, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5488

Originally assigned to: @nivedin 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

Chrome

Operating System

macOS

Bug Description

We’ve received numerous reports from users that their collections/environments are being deleted intermittently, forcing them to recreate them.

Upon reviewing the GQLClient, it looks like the authExchange implementation is incomplete. Specifically:

  1. didAuthError always returns false
  2. refreshAuth only contains a TODO comment

As a result, when a JWT expires, the app isn’t able to refresh it properly. We suspect that GraphQL requests then fail silently, causing data to be stored locally. When users log in again, the local storage is cleared, which may explain the data loss.
Is this a known issue? we can look into properly implementing didAuthError and refreshAuth to handle token expiration.

Deployment Type

Self-hosted (on-prem deployment)

Version

No response

Originally created by @ankurmalhotra07 on GitHub (Oct 17, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5488 Originally assigned to: @nivedin 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 Chrome ### Operating System macOS ### Bug Description We’ve received numerous reports from users that their collections/environments are being deleted intermittently, forcing them to recreate them. Upon reviewing the [GQLClient](https://github.com/hoppscotch/hoppscotch/blob/d80ea5d214ad5089e47bb3ba468c879a7f6b8e8a/packages/hoppscotch-common/src/helpers/backend/GQLClient.ts#L71), it looks like the authExchange implementation is incomplete. Specifically: 1) [didAuthError](https://github.com/hoppscotch/hoppscotch/blob/d80ea5d214ad5089e47bb3ba468c879a7f6b8e8a/packages/hoppscotch-common/src/helpers/backend/GQLClient.ts#L99) always returns false 2) [refreshAuth](https://github.com/hoppscotch/hoppscotch/blob/d80ea5d214ad5089e47bb3ba468c879a7f6b8e8a/packages/hoppscotch-common/src/helpers/backend/GQLClient.ts#L102C15-L102C26) only contains a TODO comment As a result, when a JWT expires, the app isn’t able to refresh it properly. We suspect that GraphQL requests then fail silently, causing data to be stored locally. When users log in again, the local storage is cleared, which may explain the data loss. Is this a known issue? we can look into properly implementing didAuthError and refreshAuth to handle token expiration. ### Deployment Type Self-hosted (on-prem deployment) ### Version _No response_
kerem 2026-03-16 23:12:49 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ankurmalhotra07 commented on GitHub (Oct 17, 2025):

@AndrewBastin

<!-- gh-comment-id:3413431245 --> @ankurmalhotra07 commented on GitHub (Oct 17, 2025): @AndrewBastin
Author
Owner

@jamesgeorge007 commented on GitHub (Oct 31, 2025):

Hi @ankurmalhotra07, we've included the proposed updates that are now live with the latest release. Please let us know if the issue persists.

<!-- gh-comment-id:3473125581 --> @jamesgeorge007 commented on GitHub (Oct 31, 2025): Hi @ankurmalhotra07, we've included the proposed updates that are now live with the [latest release](https://github.com/hoppscotch/hoppscotch/releases/tag/2025.10.0). Please let us know if the issue persists.
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#2106
No description provided.