[GH-ISSUE #5615] [bug]: Variables in Request Body Not Detected While URL Variables Work Correctly #2174

Closed
opened 2026-03-16 23:28:08 +03:00 by kerem · 1 comment
Owner

Originally created by @chhaviG22 on GitHub (Nov 25, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5615

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

Environment variables are not being detected or highlighted in request body editors (JSON, XML, GraphQL, etc.), while the same variables work correctly when used in the URL/endpoint field.

What Happened

When using environment variables with the <<envVar>> syntax in the request body editor:

  • Variables are not recognized and show as "not found" (red highlight)
  • Hover tooltips don't display the variable value
  • The editor treats them as undefined variables even when they exist in the selected environment

However, the same variables work perfectly when used in the URL/endpoint field, showing proper detection with green highlighting and correct tooltip values.

Expected Behavior

Environment variables should be:

  • Detected and highlighted correctly in request body editors (green for defined variables)
  • Display proper tooltips on hover showing the variable's initial and current values
  • Work consistently across all input fields (URL, headers, body, etc.)
  • Show appropriate highlighting based on variable source

Steps to Reproduce

  1. Go to hoppscotch.io
  2. Create or select an environment that contains a variable (e.g., envVar with value "test123")
  3. Create a new HTTP request
  4. In the request body (JSON/XML/GraphQL), try using the environment variable: <<envVar>>
    • Result: Variable shows red highlight (not detected)
  5. Use the same environment variable in the URL field: https://example.com/<<envVar>>
    • Result: Variable shows green highlight (detected correctly)

Screenshots/Video

https://github.com/user-attachments/assets/30245a9b-8c91-4149-82e1-f7f10e81e8fb

Deployment Type

Hoppscotch Cloud

Version

2025.10.1

Originally created by @chhaviG22 on GitHub (Nov 25, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5615 Originally assigned to: @chhaviG22 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 Environment variables are not being detected or highlighted in request body editors (JSON, XML, GraphQL, etc.), while the same variables work correctly when used in the URL/endpoint field. ## What Happened When using environment variables with the `<<envVar>>` syntax in the request body editor: - Variables are not recognized and show as "not found" (red highlight) - Hover tooltips don't display the variable value - The editor treats them as undefined variables even when they exist in the selected environment However, the same variables work perfectly when used in the URL/endpoint field, showing proper detection with green highlighting and correct tooltip values. ## Expected Behavior Environment variables should be: - Detected and highlighted correctly in request body editors (green for defined variables) - Display proper tooltips on hover showing the variable's initial and current values - Work consistently across all input fields (URL, headers, body, etc.) - Show appropriate highlighting based on variable source ## Steps to Reproduce 1. Go to [hoppscotch.io](https://hoppscotch.io) 2. Create or select an environment that contains a variable (e.g., `envVar` with value `"test123"`) 3. Create a new HTTP request 4. In the request body (JSON/XML/GraphQL), try using the environment variable: `<<envVar>>` - **Result**: Variable shows red highlight (not detected) 5. Use the same environment variable in the URL field: `https://example.com/<<envVar>>` - **Result**: Variable shows green highlight (detected correctly) ## Screenshots/Video https://github.com/user-attachments/assets/30245a9b-8c91-4149-82e1-f7f10e81e8fb ### Deployment Type Hoppscotch Cloud ### Version 2025.10.1
kerem 2026-03-16 23:28:08 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jamesgeorge007 commented on GitHub (Dec 11, 2025):

Closing since this is now addressed in the v2025.11.2 release.

<!-- gh-comment-id:3643137767 --> @jamesgeorge007 commented on GitHub (Dec 11, 2025): Closing since this is now addressed in the [v2025.11.2 release](https://github.com/hoppscotch/hoppscotch/releases/tag/2025.11.2).
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#2174
No description provided.