Insomnia: [Bug] wrong value in environment variable

Created on 30 Jan 2020  路  3Comments  路  Source: Kong/insomnia

Describe the bug
using an environment varialble in the URL for an API call: has "NaN" as the value at the time of the call whereas the actual variable has the true value

To Reproduce
Not sure how to reproduce, see screenshots of my setup

Expected behavior
variable as used in the URL should have the actual value

Screenshots
wrong value 2020-01-30_16-11-49

environment 2020-01-30_16-11-05

Desktop (please complete the following information):

  • OS: macOS Mojave 10.14.6
  • Installation Method: app
  • App Version v7.0..6.3258

Most helpful comment

Hi, try replacing the - with _ in the variable name, see if that works

All 3 comments

Hi, try replacing the - with _ in the variable name, see if that works

I can confirm @iudelsmann's suggestion works. I had the same issue where my-env-variable was returning NaN switching to my_env_variable fixes the issue.

It's not accepting - instead try to use _ it works.

Was this page helpful?
0 / 5 - 0 ratings