[GH-ISSUE #5827] [bug]: Unable to get the value of <<$guid>> in the "generate code" panel. #2284

Open
opened 2026-03-16 23:51:03 +03:00 by kerem · 1 comment
Owner

Originally created by @KatyaGolyagina on GitHub (Feb 3, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5827

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

Windows

Bug Description

what happens

I use the variable <<$guid>> in a query with a database record. I want to see the value that will be generated within the interface. To do this:

  1. specify the value <<$guid>> in the parameter of the query.
  2. open the "generate code" panel.
  3. find the generated value <<$guid>>.
  4. execute the query and go to the database to verify the record.

Expected result:

The value <<$guid>> in the specific field of the database will match the generated value in the "generate code" panel.

Actual result:

A different generated value <<$guid>> is saved in the database, which was not present in the "generate code" panel.

Overall, the value <<$guid>>, according to the "generate code" panel, changes every time you, for example, switch between response tabs at the bottom. I would like a bit more control - or not such chaotic updates of the variable.

Deployment Type

Self-hosted (on-prem deployment)

Version

Hoppscotch v2025.9.2

Originally created by @KatyaGolyagina on GitHub (Feb 3, 2026). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5827 ### 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 Windows ### Bug Description ## what happens I use the variable <<$guid>> in a query with a database record. I want to see the value that will be generated within the interface. To do this: 1. specify the value <<$guid>> in the parameter of the query. 2. open the "generate code" panel. 3. find the generated value <<$guid>>. 4. execute the query and go to the database to verify the record. ## Expected result: The value <<$guid>> in the specific field of the database will match the generated value in the "generate code" panel. ## Actual result: A different generated value <<$guid>> is saved in the database, which was not present in the "generate code" panel. Overall, the value <<$guid>>, according to the "generate code" panel, changes every time you, for example, switch between response tabs at the bottom. I would like a bit more control - or not such chaotic updates of the variable. ### Deployment Type Self-hosted (on-prem deployment) ### Version Hoppscotch v2025.9.2
Author
Owner

@shuaixr commented on GitHub (Feb 5, 2026):

I think generate code being inconsistent is acceptable, but History should store the actual resolved values used in the request (<<$guid>>) to make replaying requests easier.
If this makes sense, I am happy to discuss and fix for this.

<!-- gh-comment-id:3850982860 --> @shuaixr commented on GitHub (Feb 5, 2026): I think generate code being inconsistent is acceptable, but History should store the actual resolved values used in the request (<<$guid>>) to make replaying requests easier. If this makes sense, I am happy to discuss and fix for this.
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#2284
No description provided.