[GH-ISSUE #5104] [bug]: Environment variables / values missing after update #1939

Closed
opened 2026-03-16 22:27:22 +03:00 by kerem · 42 comments
Owner

Originally created by @AryaSvitkona on GitHub (May 28, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5104

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

Current behavior

With the latest Update to 25.5 all environment variable keys are persistent, but the values are gone.

Image

I also receive a "schema validation error" while loading the App or the Chrome App on OSX.

Image

Steps to reproduce

  1. Start Hoppscotch (PWA or native app)
  2. Update to latest 25.5 version
  3. Check environment variables / values

Logs and Screenshots


Environment

Production

Hoppscotch Version

Cloud

Interceptor

Not Applicable - Issue not related to network requests

Browsers Affected

No response

Operating System

MacOS

Additional Information

No response

Originally created by @AryaSvitkona on GitHub (May 28, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5104 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 ### Current behavior With the latest Update to 25.5 all environment variable keys are persistent, but the values are gone. ![Image](https://github.com/user-attachments/assets/64de1517-c183-46df-808d-815f0554ef70) I also receive a "schema validation error" while loading the App or the Chrome App on OSX. ![Image](https://github.com/user-attachments/assets/11986d3b-ae9f-41ef-a365-75f55b580de4) ### Steps to reproduce 1) Start Hoppscotch (PWA or native app) 2) Update to latest 25.5 version 3) Check environment variables / values ### Logs and Screenshots ```shell ``` ### Environment Production ### Hoppscotch Version Cloud ### Interceptor Not Applicable - Issue not related to network requests ### Browsers Affected _No response_ ### Operating System MacOS ### Additional Information _No response_
kerem 2026-03-16 22:27:22 +03:00
Author
Owner

@furai commented on GitHub (May 28, 2025):

#5055 - This is actually what caused the bug for me. It didn't migrate properly the values I had in my environment. It moved them to initialValue without filling in the currentValue. And apparently only currentValue is used in requests.

I had to manually fix it by copying initialValue into currentValue field in all my environments. I'm using PWA locally without any sync to any cloud.

I've also got the same schema validation error, no idea where that backup is located in PWA.

<!-- gh-comment-id:2916286560 --> @furai commented on GitHub (May 28, 2025): #5055 - This is actually what caused the bug for me. It didn't migrate properly the values I had in my environment. It moved them to `initialValue` without filling in the `currentValue`. And apparently only `currentValue` is used in requests. I had to manually fix it by copying `initialValue` into `currentValue` field in all my environments. I'm using PWA locally without any sync to any cloud. I've also got the same schema validation error, no idea where that backup is located in PWA.
Author
Owner

@ampere-code commented on GitHub (May 28, 2025):

I'm adding to this issue that in both exports and imports, the currentValue is not being taken into account.

<!-- gh-comment-id:2916595356 --> @ampere-code commented on GitHub (May 28, 2025): I'm adding to this issue that in both exports and imports, the `currentValue` is not being taken into account.
Author
Owner

@furai commented on GitHub (May 28, 2025):

I'm adding to this issue that in both exports and imports, the currentValue is not being taken into account.

That's actually how the feature was envisioned in the PR. No idea why it was done this way:

Initial value is the value defined directly in the environment. This value gets synced to the cloud and is shared with your team.

Current value is what gets used when you actually send a request in Hoppscotch. It’s stored locally in your browser and isn’t synced to the cloud.

<!-- gh-comment-id:2916682301 --> @furai commented on GitHub (May 28, 2025): > I'm adding to this issue that in both exports and imports, the `currentValue` is not being taken into account. That's actually how the feature was envisioned in the PR. No idea why it was done this way: > Initial value is the value defined directly in the environment. This value gets synced to the cloud and is shared with your team. > > Current value is what gets used when you actually send a request in Hoppscotch. It’s stored locally in your browser and isn’t synced to the cloud.
Author
Owner

@jdndm commented on GitHub (May 29, 2025):

Confirming this is broken using the webapp with synced environments via shared workspace

<!-- gh-comment-id:2917988572 --> @jdndm commented on GitHub (May 29, 2025): Confirming this is broken using the webapp with synced environments via shared workspace
Author
Owner

@jdndm commented on GitHub (May 29, 2025):

Looks like it might be fixed in #5105

<!-- gh-comment-id:2917991034 --> @jdndm commented on GitHub (May 29, 2025): Looks like it might be fixed in #5105
Author
Owner

@jamesgeorge007 commented on GitHub (May 29, 2025):

Hi, we're actively investigating the issue and have opened a PR that resolves a subset of the identified scenarios. We're continuing to work on a comprehensive fix to address the remaining cases, and a hotfix release will be issued once a complete end-to-end resolution is in place.

<!-- gh-comment-id:2918596766 --> @jamesgeorge007 commented on GitHub (May 29, 2025): Hi, we're actively investigating the issue and have opened a [PR](https://github.com/hoppscotch/hoppscotch/pull/5105) that resolves a subset of the identified scenarios. We're continuing to work on a comprehensive fix to address the remaining cases, and a hotfix release will be issued once a complete end-to-end resolution is in place.
Author
Owner

@agu3rra commented on GitHub (May 29, 2025):

Perhaps this is relevant, so I will add here.

Show code issue

I also noticed that Send > Options > Show code will display an error message if I try to get the equivalent CURL of a request. Screenshot follows.

PS: I managed to get my ENV's to load successfully after creating a new Environment (I had not many values to fill). The existing ones did not work even after I filled the new Current Value field manually.

Image

Test scripts issue

I also noticed my previous Test scripts that were setting up ENV's dynamically are no longer working. Example snippet:

const responseHeaders = pw.response.headers;
const cookies = responseHeaders.find(header => header.key.toLowerCase()==="set-cookie");
const fooSessionId = cookies.value.split(';')[0].split('=')[1].trim();

pw.test("Ensure cookie and set it as env", ()=>{
  pw.expect(fooSessionId).toBeType("string");
  pw.env.set("fooSessionId", fooSessionId);
});

Variables issue

I tried updating the variable contents to check if it would force it to update, but it didn't. I noticed the request works as expected despite the warning message stating the value is missing.
Image

<!-- gh-comment-id:2919409105 --> @agu3rra commented on GitHub (May 29, 2025): Perhaps this is relevant, so I will add here. ## Show code issue I also noticed that **Send > Options > Show code** will display an error message if I try to get the equivalent CURL of a request. Screenshot follows. PS: I managed to get my ENV's to load successfully after creating a new `Environment` (I had not many values to fill). The existing ones did not work even after I filled the new `Current Value` field manually. <img width="503" alt="Image" src="https://github.com/user-attachments/assets/38427c9f-2433-44cf-8557-37d9ad4e6d10" /> ## Test scripts issue I also noticed my previous Test scripts that were setting up ENV's dynamically are no longer working. Example snippet: ```javascript const responseHeaders = pw.response.headers; const cookies = responseHeaders.find(header => header.key.toLowerCase()==="set-cookie"); const fooSessionId = cookies.value.split(';')[0].split('=')[1].trim(); pw.test("Ensure cookie and set it as env", ()=>{ pw.expect(fooSessionId).toBeType("string"); pw.env.set("fooSessionId", fooSessionId); }); ``` ## Variables issue I tried updating the variable contents to check if it would force it to update, but it didn't. I noticed the request works as expected despite the warning message stating the value is missing. <img width="1012" alt="Image" src="https://github.com/user-attachments/assets/30a2f13f-fcb6-4729-99e4-80dd37cc6c39" />
Author
Owner

@jamesgeorge007 commented on GitHub (May 30, 2025):

Hi, this has been addressed in the latest release. Please let us know if the issue persists.
The code generation issue mentioned above should also be resolved. For any other concerns related to scripting or similar areas, feel free to open a new issue with steps to reproduce.

<!-- gh-comment-id:2921697976 --> @jamesgeorge007 commented on GitHub (May 30, 2025): Hi, this has been addressed in the latest release. Please let us know if the issue persists. The code generation issue mentioned above should also be resolved. For any other concerns related to scripting or similar areas, feel free to open a new issue with steps to reproduce.
Author
Owner

@furai commented on GitHub (May 30, 2025):

So how initialValue and currentValue are meant to work when you don't have any online sync enabled in webapp? Am I supposed to just use currentValue and disregard initialValue?

<!-- gh-comment-id:2921990894 --> @furai commented on GitHub (May 30, 2025): So how `initialValue` and `currentValue` are meant to work when you don't have any online sync enabled in webapp? Am I supposed to just use `currentValue` and disregard `initialValue`?
Author
Owner

@nivedin commented on GitHub (May 30, 2025):

So how initialValue and currentValue are meant to work when you don't have any online sync enabled in webapp? Am I supposed to just use currentValue and disregard initialValue?

An initial value acts as the default value you assign to a variable. This value is stored on Hoppscotch's servers and is accessible to your team. It's helpful for maintaining consistency when working with shared environments.

A current value, on the other hand, is applied when making a request or executing a collection run. These values are local to your device and aren’t saved to Hoppscotch’s servers. Updating a current value won’t modify the original environment state in the server.

<!-- gh-comment-id:2922202842 --> @nivedin commented on GitHub (May 30, 2025): > So how `initialValue` and `currentValue` are meant to work when you don't have any online sync enabled in webapp? Am I supposed to just use `currentValue` and disregard `initialValue`? An `initial value` acts as the default value you assign to a variable. This value is stored on Hoppscotch's servers and is accessible to your team. It's helpful for maintaining consistency when working with shared environments. A `current value`, on the other hand, is applied when making a request or executing a collection run. These values are local to your device and aren’t saved to Hoppscotch’s servers. Updating a current value won’t modify the original environment state in the server.
Author
Owner

@AryaSvitkona commented on GitHub (May 30, 2025):

So how initialValue and currentValue are meant to work when you don't have any online sync enabled in webapp? Am I supposed to just use currentValue and disregard initialValue?

An initial value acts as the default value you assign to a variable. This value is stored on Hoppscotch's servers and is accessible to your team. It's helpful for maintaining consistency when working with shared environments.

A current value, on the other hand, is applied when making a request or executing a collection run. These values are local to your device and aren’t saved to Hoppscotch’s servers. Updating a current value won’t modify the original environment state in the server.

Not sure if this is the right place to discuss the feature but ...

So if I leave currentValue blank, since I'd like to use the same value (aka initialValue) as my team colleagues, the request I submit will use the initialValue until I override this value with setting a currentValue?

<!-- gh-comment-id:2922248326 --> @AryaSvitkona commented on GitHub (May 30, 2025): > > So how `initialValue` and `currentValue` are meant to work when you don't have any online sync enabled in webapp? Am I supposed to just use `currentValue` and disregard `initialValue`? > > An `initial value` acts as the default value you assign to a variable. This value is stored on Hoppscotch's servers and is accessible to your team. It's helpful for maintaining consistency when working with shared environments. > > A `current value`, on the other hand, is applied when making a request or executing a collection run. These values are local to your device and aren’t saved to Hoppscotch’s servers. Updating a current value won’t modify the original environment state in the server. Not sure if this is the right place to discuss the feature but ... So if I leave `currentValue` blank, since I'd like to use the same value (aka `initialValue`) as my team colleagues, the request I submit will use the `initialValue` until I override this value with setting a `currentValue`?
Author
Owner

@ampere-code commented on GitHub (May 30, 2025):

Is anyone else experiencing that initialValue is not taken into account if currentValue is not populated? If this is the expected behavior, how can I automatically populate currentValue using the value from initialValue, without having to manually fill in currentValue every time I open Hoppscotch on another device?

Image

Image

<!-- gh-comment-id:2922387939 --> @ampere-code commented on GitHub (May 30, 2025): Is anyone else experiencing that `initialValue` is not taken into account if `currentValue` is not populated? If this is the expected behavior, how can I automatically populate `currentValue` using the value from `initialValue`, without having to manually fill in `currentValue` every time I open Hoppscotch on another device? ![Image](https://github.com/user-attachments/assets/01c014c0-8698-4ae3-a34f-247b1eaa291f) ![Image](https://github.com/user-attachments/assets/c506082a-2775-465d-acca-8f028219bc4d)
Author
Owner

@agu3rra commented on GitHub (May 30, 2025):

Is anyone else experiencing that initialValue is not taken into account if currentValue is not populated? If this is the expected behavior, how can I automatically populate currentValue using the value from initialValue, without having to manually fill in currentValue every time I open Hoppscotch on another device?

Image

Image

I am having the same issue. I'd assume the desired behavior would be that if currentValue is absent then initialValue is used. Otherwise I can't see any real purpose for having these 2 distinct fields.
I also noticed that in my "older" environment, the calls work as expected, but the UI no longer shows the value of currentValue when you mouse over a variable.

<!-- gh-comment-id:2922434369 --> @agu3rra commented on GitHub (May 30, 2025): > Is anyone else experiencing that `initialValue` is not taken into account if `currentValue` is not populated? If this is the expected behavior, how can I automatically populate `currentValue` using the value from `initialValue`, without having to manually fill in `currentValue` every time I open Hoppscotch on another device? > > ![Image](https://github.com/user-attachments/assets/01c014c0-8698-4ae3-a34f-247b1eaa291f) > > ![Image](https://github.com/user-attachments/assets/c506082a-2775-465d-acca-8f028219bc4d) I am having the same issue. I'd assume the desired behavior would be that if `currentValue` is absent then `initialValue` is used. Otherwise I can't see any real purpose for having these 2 distinct fields. I also noticed that in my "older" environment, the calls work as expected, but the UI no longer shows the value of `currentValue` when you mouse over a variable.
Author
Owner

@scottym5797 commented on GitHub (May 30, 2025):

Hi, this has been addressed in the latest release. Please let us know if the issue persists. The code generation issue mentioned above should also be resolved. For any other concerns related to scripting or similar areas, feel free to open a new issue with steps to reproduce.

I'm still facing this issue. I set up the shared environment, so it seems to work for me even when throwing the Schema error. But someone else accessing the shared ENV has issues and can't access the variables.

Image
<!-- gh-comment-id:2923590993 --> @scottym5797 commented on GitHub (May 30, 2025): > Hi, this has been addressed in the latest release. Please let us know if the issue persists. The code generation issue mentioned above should also be resolved. For any other concerns related to scripting or similar areas, feel free to open a new issue with steps to reproduce. I'm still facing this issue. I set up the shared environment, so it seems to work for me even when throwing the Schema error. But someone else accessing the shared ENV has issues and can't access the variables. <img width="728" alt="Image" src="https://github.com/user-attachments/assets/28c1a185-987e-449f-b779-934afe39db7d" />
Author
Owner

@rintaaaa commented on GitHub (Jun 1, 2025):

Image
I also updated to v25.5.1, but I'm experiencing the same situation. Additionally, I can no longer import.

<!-- gh-comment-id:2926829647 --> @rintaaaa commented on GitHub (Jun 1, 2025): ![Image](https://github.com/user-attachments/assets/cb15e6bc-5dd0-4f1b-a38b-95fa63d7683b) I also updated to v25.5.1, but I'm experiencing the same situation. Additionally, I can no longer import.
Author
Owner

@AbhishekPrajapati commented on GitHub (Jun 2, 2025):

We are getting the same issue all of sudden, leaving all our saved requests changed to Untitled - I think they are lost now. When reloading the page, getting below errors:

Image

We got some exported collection(exported from Hoppscotch only, which has saved responses too) but when importing it, they are still showing Untitled requests, any thoughts on this?

<!-- gh-comment-id:2932875121 --> @AbhishekPrajapati commented on GitHub (Jun 2, 2025): We are getting the same issue all of sudden, leaving all our saved requests changed to Untitled - I think they are lost now. When reloading the page, getting below errors: ![Image](https://github.com/user-attachments/assets/3d5854be-d7c1-4eba-a212-7fc5330eaab2) We got some exported collection(exported from Hoppscotch only, which has saved responses too) but when importing it, they are still showing `Untitled` requests, any thoughts on this?
Author
Owner

@swotiendang commented on GitHub (Jun 3, 2025):

Most of issues in this thread happened to my team, we start using Hoppscotch from March 2025, and 3 months later lots of AI failed, waiting for the fix from team.

<!-- gh-comment-id:2934073156 --> @swotiendang commented on GitHub (Jun 3, 2025): Most of issues in this thread happened to my team, we start using Hoppscotch from March 2025, and 3 months later lots of AI failed, waiting for the fix from team.
Author
Owner

@nivedin commented on GitHub (Jun 3, 2025):

We are getting the same issue all of sudden, leaving all our saved requests changed to Untitled - I think they are lost now. When reloading the page, getting below errors:

Image

We got some exported collection(exported from Hoppscotch only, which has saved responses too) but when importing it, they are still showing Untitled requests, any thoughts on this?

@AbhishekPrajapati can you please share your'e exported collection, this can help us with debugging the issue.

<!-- gh-comment-id:2934557782 --> @nivedin commented on GitHub (Jun 3, 2025): > We are getting the same issue all of sudden, leaving all our saved requests changed to Untitled - I think they are lost now. When reloading the page, getting below errors: > > ![Image](https://github.com/user-attachments/assets/3d5854be-d7c1-4eba-a212-7fc5330eaab2) > > We got some exported collection(exported from Hoppscotch only, which has saved responses too) but when importing it, they are still showing `Untitled` requests, any thoughts on this? @AbhishekPrajapati can you please share your'e exported collection, this can help us with debugging the issue.
Author
Owner

@AbhishekPrajapati commented on GitHub (Jun 6, 2025):

We are getting the same issue all of sudden, leaving all our saved requests changed to Untitled - I think they are lost now. When reloading the page, getting below errors:
Image
We got some exported collection(exported from Hoppscotch only, which has saved responses too) but when importing it, they are still showing Untitled requests, any thoughts on this?

@AbhishekPrajapati can you please share your'e exported collection, this can help us with debugging the issue.

Sorry @nivedin I cannot share my collection due to my company's security policies.

<!-- gh-comment-id:2948183092 --> @AbhishekPrajapati commented on GitHub (Jun 6, 2025): > > We are getting the same issue all of sudden, leaving all our saved requests changed to Untitled - I think they are lost now. When reloading the page, getting below errors: > > ![Image](https://github.com/user-attachments/assets/3d5854be-d7c1-4eba-a212-7fc5330eaab2) > > We got some exported collection(exported from Hoppscotch only, which has saved responses too) but when importing it, they are still showing `Untitled` requests, any thoughts on this? > > [@AbhishekPrajapati](https://github.com/AbhishekPrajapati) can you please share your'e exported collection, this can help us with debugging the issue. Sorry @nivedin I cannot share my collection due to my company's security policies.
Author
Owner

@agu3rra commented on GitHub (Jun 6, 2025):

@AbhishekPrajapati if you have your collection previously saved in Hoppscotch's JSON form, not all is lost. I had a peer simply download an older version of Hoppscotch and it opened fine (all the Untitled requests/responses were there).

<!-- gh-comment-id:2949020622 --> @agu3rra commented on GitHub (Jun 6, 2025): @AbhishekPrajapati if you have your collection previously saved in Hoppscotch's JSON form, not all is lost. I had a peer simply download an older version of Hoppscotch and it opened fine (all the `Untitled` requests/responses were there).
Author
Owner

@imrinzzzz commented on GitHub (Jun 11, 2025):

I have a similar issue, but I don't have a backup. Does that mean I cannot get the values back?

<!-- gh-comment-id:2961456031 --> @imrinzzzz commented on GitHub (Jun 11, 2025): I have a similar issue, but I don't have a backup. Does that mean I cannot get the values back?
Author
Owner

@agu3rra commented on GitHub (Jun 11, 2025):

I have a similar issue, but I don't have a backup. Does that mean I cannot get the values back?

I don't know, but I suggest you simply try to leave it as it is and install the older version without removing the current one. Alternatively, try to export the current messed up ENV before you do that. Perhaps I shows all requests as "Untitled", but the JSON has the actual data in there?

<!-- gh-comment-id:2963589496 --> @agu3rra commented on GitHub (Jun 11, 2025): > I have a similar issue, but I don't have a backup. Does that mean I cannot get the values back? I don't know, but I suggest you simply try to leave it as it is and install the older version without removing the current one. Alternatively, try to export the current messed up ENV before you do that. Perhaps I shows all requests as "Untitled", but the JSON has the actual data in there?
Author
Owner

@imrinzzzz commented on GitHub (Jun 11, 2025):

I have a similar issue, but I don't have a backup. Does that mean I cannot get the values back?

I don't know, but I suggest you simply try to leave it as it is and install the older version without removing the current one. Alternatively, try to export the current messed up ENV before you do that. Perhaps I shows all requests as "Untitled", but the JSON has the actual data in there?

Heyyy, so I just installed an older version and almost everything was still there. The only things that couldn't be restored were the changes made in the new version of the app.

<!-- gh-comment-id:2963604817 --> @imrinzzzz commented on GitHub (Jun 11, 2025): > > I have a similar issue, but I don't have a backup. Does that mean I cannot get the values back? > > I don't know, but I suggest you simply try to leave it as it is and install the older version without removing the current one. Alternatively, try to export the current messed up ENV before you do that. Perhaps I shows all requests as "Untitled", but the JSON has the actual data in there? Heyyy, so I just installed an older version and almost everything was still there. The only things that couldn't be restored were the changes made in the new version of the app.
Author
Owner

@tanardi94 commented on GitHub (Jun 16, 2025):

Is there any progress for this bugfix?
I kinda move to postman til this bug is fixed, Love this app bro

<!-- gh-comment-id:2975477955 --> @tanardi94 commented on GitHub (Jun 16, 2025): Is there any progress for this bugfix? I kinda move to postman til this bug is fixed, Love this app bro
Author
Owner

@keliansb commented on GitHub (Jun 16, 2025):

We still have this issue after upgrading to v2025.5.2

<!-- gh-comment-id:2976888997 --> @keliansb commented on GitHub (Jun 16, 2025): We still have this issue after upgrading to [v2025.5.2](https://github.com/hoppscotch/hoppscotch/releases/tag/2025.5.2)
Author
Owner

@nivedin commented on GitHub (Jun 16, 2025):

We still have this issue after upgrading to v2025.5.2

@keliansb are you facing this issue with personal or a shared workspace environment

<!-- gh-comment-id:2976931133 --> @nivedin commented on GitHub (Jun 16, 2025): > We still have this issue after upgrading to [v2025.5.2](https://github.com/hoppscotch/hoppscotch/releases/tag/2025.5.2) @keliansb are you facing this issue with personal or a shared workspace environment
Author
Owner

@keliansb commented on GitHub (Jun 16, 2025):

@nivedin with shared workspace environment
I don't know if personal workspace is impacted by this issue because we don't use it

<!-- gh-comment-id:2976939672 --> @keliansb commented on GitHub (Jun 16, 2025): @nivedin with shared workspace environment I don't know if personal workspace is impacted by this issue because we don't use it
Author
Owner

@nivedin commented on GitHub (Jun 16, 2025):

@nivedin with shared workspace environment I don't know if personal workspace is impacted by this issue because we don't use it

@keliansb was there any error popup you saw with persistance error ?

<!-- gh-comment-id:2976963538 --> @nivedin commented on GitHub (Jun 16, 2025): > [@nivedin](https://github.com/nivedin) with shared workspace environment I don't know if personal workspace is impacted by this issue because we don't use it @keliansb was there any error popup you saw with persistance error ?
Author
Owner

@keliansb commented on GitHub (Jun 16, 2025):

@nivedin yes, indeed:

Image

<!-- gh-comment-id:2977001272 --> @keliansb commented on GitHub (Jun 16, 2025): @nivedin yes, indeed: ![Image](https://github.com/user-attachments/assets/2a0eb9e5-21ab-4efb-a0eb-5b47164d8e20)
Author
Owner

@nivedin commented on GitHub (Jun 16, 2025):

@nivedin yes, indeed:

Image

@keliansb can you try clearing cache and try again.

<!-- gh-comment-id:2977018196 --> @nivedin commented on GitHub (Jun 16, 2025): > [@nivedin](https://github.com/nivedin) yes, indeed: > > ![Image](https://github.com/user-attachments/assets/2a0eb9e5-21ab-4efb-a0eb-5b47164d8e20) @keliansb can you try clearing cache and try again.
Author
Owner

@keliansb commented on GitHub (Jun 16, 2025):

@nivedin just tried in a private window. No popup but environment variables are still empty.

<!-- gh-comment-id:2977031279 --> @keliansb commented on GitHub (Jun 16, 2025): @nivedin just tried in a private window. No popup but environment variables are still empty.
Author
Owner

@nivedin commented on GitHub (Jun 16, 2025):

@nivedin just tried in a private window. No popup but environment variables are still empty.

@keliansb thank you for the information, need some more info for debugging this issue.

Can you please send me the value from the network tab of GetTeamEnvironments

Image

<!-- gh-comment-id:2977053256 --> @nivedin commented on GitHub (Jun 16, 2025): > [@nivedin](https://github.com/nivedin) just tried in a private window. No popup but environment variables are still empty. @keliansb thank you for the information, need some more info for debugging this issue. Can you please send me the value from the network tab of `GetTeamEnvironments` ![Image](https://github.com/user-attachments/assets/2328697e-c739-4c15-af7e-2fd9c9e54cea)
Author
Owner

@keliansb commented on GitHub (Jun 17, 2025):

@nivedin sure, here it is:

{
  "operationName": "GetTeamEnvironments",
  "query": "query GetTeamEnvironments($teamID: ID!) {\n  team(teamID: $teamID) {\n    teamEnvironments {\n      id\n      name\n      variables\n      teamID\n    }\n  }\n}",
  "variables": {
    "teamID": "cm3x7ajvf000mcyuq41jrxvmy"
  }
}
<!-- gh-comment-id:2979092724 --> @keliansb commented on GitHub (Jun 17, 2025): @nivedin sure, here it is: ``` { "operationName": "GetTeamEnvironments", "query": "query GetTeamEnvironments($teamID: ID!) {\n team(teamID: $teamID) {\n teamEnvironments {\n id\n name\n variables\n teamID\n }\n }\n}", "variables": { "teamID": "cm3x7ajvf000mcyuq41jrxvmy" } } ```
Author
Owner

@nivedin commented on GitHub (Jun 17, 2025):

@nivedin sure, here it is:

{
  "operationName": "GetTeamEnvironments",
  "query": "query GetTeamEnvironments($teamID: ID!) {\n  team(teamID: $teamID) {\n    teamEnvironments {\n      id\n      name\n      variables\n      teamID\n    }\n  }\n}",
  "variables": {
    "teamID": "cm3x7ajvf000mcyuq41jrxvmy"
  }
}

@keliansb Thank you for the info, just one more thing. Can you send the response object of this network call, like this. You can hide the values if any secrets exists.

https://github.com/user-attachments/assets/3da66005-b755-4f0c-8339-284e0bab30cd

<!-- gh-comment-id:2979156025 --> @nivedin commented on GitHub (Jun 17, 2025): > [@nivedin](https://github.com/nivedin) sure, here it is: > > ``` > { > "operationName": "GetTeamEnvironments", > "query": "query GetTeamEnvironments($teamID: ID!) {\n team(teamID: $teamID) {\n teamEnvironments {\n id\n name\n variables\n teamID\n }\n }\n}", > "variables": { > "teamID": "cm3x7ajvf000mcyuq41jrxvmy" > } > } > ``` @keliansb Thank you for the info, just one more thing. Can you send the response object of this network call, like this. You can hide the values if any secrets exists. https://github.com/user-attachments/assets/3da66005-b755-4f0c-8339-284e0bab30cd
Author
Owner

@keliansb commented on GitHub (Jun 17, 2025):

@nivedin it looks like the values from Prod and Test environments are still there, but nothing for Staging.
Also please note that I can see the values for the environment Test in Hoppscotch, but not for Prod.

{
	"data": {
		"team": {
			"teamEnvironments": [
				{
					"id": "cm3yk2ufl0001ov3dwmtk93q0",
					"name": "Prod",
					"variables": "[{\"key\":\"netbox_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"rocketchat_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"realtime_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"realtime_domainName\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"realtime_apikey\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"realtime_customer\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"realtime_contact\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"wikijs_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"gitlab_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"gitlab_api_version\",\"value\":\"v4\",\"secret\":false},{\"key\":\"gitlab_access_token\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"gitlab_project_id\",\"value\":\"530\",\"secret\":false},{\"key\":\"test\",\"value\":\"opened\",\"secret\":false},{\"key\":\"gitlab_merge_request_iid\",\"value\":\"10\",\"secret\":false},{\"key\":\"realtime_registrant\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"keycloak_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"keycloak_realm\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"pdns_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"pdns_apikey\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"pdns_domainname\",\"secret\":true},{\"key\":\"glpi_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"wikijs_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"wikijs_apikey_key\",\"secret\":true},{\"key\":\"wikijs_apikey_value\",\"secret\":true},{\"key\":\"ROCKET_CHAT_TOKEN\",\"secret\":true},{\"key\":\"ROCKET_CHAT_USERID\",\"secret\":true}]",
					"teamID": "cm3x7ajvf000mcyuq41jrxvmy"
				},
				{
					"id": "cm473snwg000jaczqlrt9xt0v",
					"name": "Test",
					"variables": "[{\"key\":\"groupid\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"channelid\",\"value\":\"<omitted>\",\"secret\":false}]",
					"teamID": "cm3x7ajvf000mcyuq41jrxvmy"
				},
				{
					"id": "cm3yk2xps0003ov3dqnfp2iap",
					"name": "Staging",
					"variables": "[{\"key\":\"netbox_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"rocketchat_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"rocketchat_username\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"authToken\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"userId\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"netbox_token\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"rocketchat_password\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_domainName\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_customer\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_contact\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_apikey\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"paypal_access_token\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_registrant\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"keycloak_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"keycloak_realm\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"glpi_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"glpi_app_token\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"glpi_userapi_token\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"glpi_session_token\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"pdns_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"pdns_apikey\",\"secret\":false,\"currentValue\":\"\"}]",
					"teamID": "cm3x7ajvf000mcyuq41jrxvmy"
				}
			]
		}
	}
}
<!-- gh-comment-id:2979195736 --> @keliansb commented on GitHub (Jun 17, 2025): @nivedin it looks like the values from `Prod` and `Test` environments are still there, but nothing for `Staging`. Also please note that I can see the values for the environment `Test` in Hoppscotch, but not for `Prod`. ``` { "data": { "team": { "teamEnvironments": [ { "id": "cm3yk2ufl0001ov3dwmtk93q0", "name": "Prod", "variables": "[{\"key\":\"netbox_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"rocketchat_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"realtime_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"realtime_domainName\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"realtime_apikey\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"realtime_customer\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"realtime_contact\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"wikijs_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"gitlab_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"gitlab_api_version\",\"value\":\"v4\",\"secret\":false},{\"key\":\"gitlab_access_token\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"gitlab_project_id\",\"value\":\"530\",\"secret\":false},{\"key\":\"test\",\"value\":\"opened\",\"secret\":false},{\"key\":\"gitlab_merge_request_iid\",\"value\":\"10\",\"secret\":false},{\"key\":\"realtime_registrant\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"keycloak_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"keycloak_realm\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"pdns_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"pdns_apikey\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"pdns_domainname\",\"secret\":true},{\"key\":\"glpi_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"wikijs_host\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"wikijs_apikey_key\",\"secret\":true},{\"key\":\"wikijs_apikey_value\",\"secret\":true},{\"key\":\"ROCKET_CHAT_TOKEN\",\"secret\":true},{\"key\":\"ROCKET_CHAT_USERID\",\"secret\":true}]", "teamID": "cm3x7ajvf000mcyuq41jrxvmy" }, { "id": "cm473snwg000jaczqlrt9xt0v", "name": "Test", "variables": "[{\"key\":\"groupid\",\"value\":\"<omitted>\",\"secret\":false},{\"key\":\"channelid\",\"value\":\"<omitted>\",\"secret\":false}]", "teamID": "cm3x7ajvf000mcyuq41jrxvmy" }, { "id": "cm3yk2xps0003ov3dqnfp2iap", "name": "Staging", "variables": "[{\"key\":\"netbox_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"rocketchat_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"rocketchat_username\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"authToken\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"userId\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"netbox_token\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"rocketchat_password\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_domainName\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_customer\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_contact\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_apikey\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"paypal_access_token\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"realtime_registrant\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"keycloak_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"keycloak_realm\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"glpi_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"glpi_app_token\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"glpi_userapi_token\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"glpi_session_token\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"pdns_host\",\"secret\":false,\"currentValue\":\"\"},{\"key\":\"pdns_apikey\",\"secret\":false,\"currentValue\":\"\"}]", "teamID": "cm3x7ajvf000mcyuq41jrxvmy" } ] } } } ```
Author
Owner

@chanhh01 commented on GitHub (Jun 18, 2025):

are there any existing pre-request script that can help to paste whatever written in initial value to current value?
developers without editor role didnt have locally saved current value in environment in the first place, and somehow the environment variables didnt even try to get initial value when current value is empty..

<!-- gh-comment-id:2982842381 --> @chanhh01 commented on GitHub (Jun 18, 2025): are there any existing pre-request script that can help to paste whatever written in initial value to current value? developers without editor role didnt have locally saved current value in environment in the first place, and somehow the environment variables didnt even try to get initial value when current value is empty..
Author
Owner

@nivedin commented on GitHub (Jun 18, 2025):

are there any existing pre-request script that can help to paste whatever written in initial value to current value? developers without editor role didnt have locally saved current value in environment in the first place, and somehow the environment variables didnt even try to get initial value when current value is empty..

@chanhh01 we have a fix for this issue in the coming patch release.

<!-- gh-comment-id:2982920536 --> @nivedin commented on GitHub (Jun 18, 2025): > are there any existing pre-request script that can help to paste whatever written in initial value to current value? developers without editor role didnt have locally saved current value in environment in the first place, and somehow the environment variables didnt even try to get initial value when current value is empty.. @chanhh01 we have a [fix](https://github.com/hoppscotch/hoppscotch/pull/5162) for this issue in the coming patch release.
Author
Owner

@AryaSvitkona commented on GitHub (Jun 18, 2025):

I register three pull request, a new version but the issue is still open.

May I kindly ask what the expected status should be with latest version 25.5.2, from the perspective of a Hubspot product owner?

  • Can users migrate from 25.4.x to 25.5.2 without lose environment variables?
  • Users with version 25.5.x with the mentioned bug, can migrate to 25.5.2 without lose environment variables?
  • Should users copy paste each initial value by hand to current value for having a working environment?

As creator of the Issue I also still can't access to my environment variable values although using latest version.
@nivedin I just checked the mentioned (a few comments above) response object for our team and there I can still see the values we should see in the app.

<!-- gh-comment-id:2982924061 --> @AryaSvitkona commented on GitHub (Jun 18, 2025): I register three pull request, a new version but the issue is still open. May I kindly ask what the expected status should be with latest version 25.5.2, from the perspective of a Hubspot product owner? - Can users migrate from 25.4.x to 25.5.2 without lose environment variables? - Users with version 25.5.x with the mentioned bug, can migrate to 25.5.2 without lose environment variables? - Should users copy paste each initial value by hand to current value for having a working environment? As creator of the Issue I also still can't access to my environment variable values although using latest version. @nivedin I just checked the mentioned (a few comments above) response object for our team and there I can still see the values we should see in the app.
Author
Owner

@nivedin commented on GitHub (Jun 19, 2025):

I register three pull request, a new version but the issue is still open.

May I kindly ask what the expected status should be with latest version 25.5.2, from the perspective of a Hubspot product owner?

  • Can users migrate from 25.4.x to 25.5.2 without lose environment variables?
  • Users with version 25.5.x with the mentioned bug, can migrate to 25.5.2 without lose environment variables?
  • Should users copy paste each initial value by hand to current value for having a working environment?

As creator of the Issue I also still can't access to my environment variable values although using latest version. @nivedin I just checked the mentioned (a few comments above) response object for our team and there I can still see the values we should see in the app.

@AryaSvitkona sorry for the delayed response, yes you can upgrade to the latest version 25.5.3 without the lose of environment value.
We have fixed all the existing bug's like response getting lost and team environment values missing. Most of the issue was with version migration.
Also we have made a small change in the environment execution flow where the initial value is picked up in request execution time if the current value is empty.
We did an internal testing and everything is working fine from our end. Please try it from your end an let me know.

<!-- gh-comment-id:2988469200 --> @nivedin commented on GitHub (Jun 19, 2025): > I register three pull request, a new version but the issue is still open. > > May I kindly ask what the expected status should be with latest version 25.5.2, from the perspective of a Hubspot product owner? > > * Can users migrate from 25.4.x to 25.5.2 without lose environment variables? > * Users with version 25.5.x with the mentioned bug, can migrate to 25.5.2 without lose environment variables? > * Should users copy paste each initial value by hand to current value for having a working environment? > > As creator of the Issue I also still can't access to my environment variable values although using latest version. [@nivedin](https://github.com/nivedin) I just checked the mentioned (a few comments above) response object for our team and there I can still see the values we should see in the app. @AryaSvitkona sorry for the delayed response, yes you can upgrade to the latest version 25.5.3 without the lose of environment value. We have fixed all the existing bug's like response getting lost and team environment values missing. Most of the issue was with version migration. Also we have made a small change in the environment execution flow where the initial value is picked up in request execution time if the current value is empty. We did an internal testing and everything is working fine from our end. Please try it from your end an let me know.
Author
Owner

@AryaSvitkona commented on GitHub (Jun 19, 2025):

Thank you for your effort!
I can confirm, that after update to 25.5.3, the environment variables are back and requests are working like before.
Also the values from initial_value are copied to current_value.
Image

<!-- gh-comment-id:2988507002 --> @AryaSvitkona commented on GitHub (Jun 19, 2025): Thank you for your effort! I can confirm, that after update to 25.5.3, the environment variables are back and requests are working like before. Also the values from initial_value are copied to current_value. ![Image](https://github.com/user-attachments/assets/bf78bd50-278e-4595-9ba6-ee786a32ddcb)
Author
Owner

@chanhh01 commented on GitHub (Jun 20, 2025):

Image

what about initial value as default when current value is empty?
I had ady reloaded hoppscotch after the new version found prompt.

and i also found out that project environment variable (idk if they count as global environment variable), initial variable is still not copied to current value (tried this on both editor and viewer role) as per mentioned by AryaSvitkona for me

<!-- gh-comment-id:2989587960 --> @chanhh01 commented on GitHub (Jun 20, 2025): ![Image](https://github.com/user-attachments/assets/59f27cc0-0678-4667-b0ae-64820df95fd4) what about initial value as default when current value is empty? I had ady reloaded hoppscotch after the new version found prompt. and i also found out that project environment variable (idk if they count as global environment variable), initial variable is still not copied to current value (tried this on both editor and viewer role) as per mentioned by AryaSvitkona for me
Author
Owner

@liyasthomas commented on GitHub (Jun 20, 2025):

The initial value won’t be automatically copied to the current value. Instead, when the current value is empty, it will fall back to its initial value. The tooltip displays the current value. If it’s empty, it shows an empty placeholder but falls back to the initial value. Once the current value is populated, the tooltip displays the actual or modified value. We’ll strive to display both the initial and current values in the tooltip.

This ticket can be closed as a fix, as it’s already available in the recent release.

<!-- gh-comment-id:2990076409 --> @liyasthomas commented on GitHub (Jun 20, 2025): The initial value won’t be automatically copied to the current value. Instead, when the current value is empty, it will fall back to its initial value. The tooltip displays the current value. If it’s empty, it shows an empty placeholder but falls back to the initial value. Once the current value is populated, the tooltip displays the actual or modified value. We’ll strive to display both the initial and current values in the tooltip. This ticket can be closed as a fix, as it’s already available in the recent release.
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#1939
No description provided.