JetClient / jet-client-support

JetClient is an advanced REST API Client plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/21173-jetclient
111 stars 0 forks source link

Problem with globals environment #54

Closed erojaslabelgrup closed 8 months ago

erojaslabelgrup commented 8 months ago

I have specified an environment variable in Globals and I am adding a double quote mark after the variable. {"local": { "base": "http://localhost:8000/api/" }}

In the end what it executes is:

"http://localhost:8000/api/"ENDPOINT"

stelianstoevSAP commented 8 months ago

Describe the bug I have the same problem and would like to describe it in more detail, because it's a blocker.

With the latest version of the plugin (20 March) 2024.1.1-233 the global variables have received an extra set of double quotes. This kills the requests completely, since every variable is surrounded with its own double quotes.

Steps to reproduce

  1. create a new env
  2. use this values bugreport: { http_port: 'https', url: 'localhost:8080', endpoint: 'bug_reported' }
  3. Launch a request to {{http_port}}://{{url}}/{{endpoint}}
image

Expected behavior It should not mess with the double quotes and resolve the variables to https://localhost:8080/bug_reported

Environment information:

KaVeKa commented 8 months ago

The problem is not limited to global variables only. It seems to impact all environment variables. We are experiencing the same issue here :)

AntonShuvaev commented 8 months ago

Thanks for reporting. Will fix ASAP

AntonShuvaev commented 8 months ago

The issue has been resolved in version 2024.1.2

stelianstoevSAP commented 8 months ago

Thanks for the quick fix! Cheers