subasraj / flashpost-support

Flashpost is a lightweight Rest API Client Extension for Visual Studio Code.
MIT License
12 stars 0 forks source link

Error Importing - Invalid environment file #62

Open jmac-slash0 opened 4 weeks ago

jmac-slash0 commented 4 weeks ago

When I export environment variable data from Thunder Client and try to import it into Flashpost I get the following error: Error Importing - Invalid environment file.

So what format is expected? Also a better error and some documentation for what import format should be would be very helpful. Also, I don't see any option to export from Flashpost?

Here is an import file sample json:

{
    "clientName": "Thunder Client",
    "environmentName": "(Global Env)",
    "environmentId": "fc22eede-9536-4c0b-92e0-d7985597f364",
    "dateExported": "2024-10-10T21:13:34.532Z",
    "version": "1.2",
    "global": true,
    "variables": [
        {
            "name": "Hello",
            "value": "World"
        }
    ],
    "ref": "au_iP_0O9rOgbrNd9kgmMaLFSbukp7F9PIafbbJUIFmqxBmPW8_e7YnhKwhihgu6tFWhV6brtVDn0xRLi9nrLQ"
}
babych-a commented 2 weeks ago

Had same problem. Fix with checking json of flashpost and then ask modify chatGPT

Here is flashpost json

{
  "app": "Flashpost",
  "id": "8ccd8a86-2baa-442b-a3c1-8f22dd079754",
  "name": "Global",
  "version": "1.0",
  "type": "variables",
  "createdTime": "23-Oct-2024 15:39:08",
  "exportedDate": "23-Oct-2024 15:56:48",
  "isActive": true,
  "data": [
    { "isChecked": true, "key": "change", "value": "name", "type": "global" },
    { "isChecked": true, "key": "hello", "value": "world", "type": "global" }
  ]
}