Kong / Kong/insomnia

Environment - Numerics get incremented by 1 for large numbers

Open
#5,837 0 comments 0 reactions 0 assignees View on GitHub
B-bug S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

1. Open "Manage Environments"
2. Type in "user-id":17841401286820671
3. Leave environments window
4. Variable in queries still have value 17841401286820671

### Actual Behavior

1. Open "Manage Environments"
2. Type in "user-id":17841401286820671
3. Leave environments window
4. Variable in queries incremented by 1 and have value 17841401286820672

### Reproduction Steps

1. Open "Manage Environments"
2. Type in "user-id":17841401286820671
3. Leave environments window
4. Open new request and in URI provide: https://test.com/{{ _['numeric-user-id'] }}
5. Preview value

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

Not reproducible on small numbers (i.e. 1 or 15 etc)
Workaround: Provide large numbers as string i.e. "user-id":"17841401286820671"

### Insomnia Version

2023.1.0

### What operating system are you using?

Windows

### Operating System Version

Win10 22H2 19045.2604

### Installation method

downloaded from insomnia page and double clicked the icon

### Last Known Working Insomnia version

n/a - just started using it

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue through Manage Environments using 17841401286820671, then preview it in a request URI as described. Trace the environment-value handling and numeric conversion involved in that flow; done means the preview preserves the exact large integer while small numbers and string values continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.