Kong / Kong/insomnia

'import from curl' truncates post body when processing base64 string

Open
#8,731 2 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

The whole POST BODY should be parsed

### Actual Behavior

When using "import from cURL", pasting this
```bash
curl -H 'sid: 3aea5a3e7f474f348bab813c5da47db6' -H 'user-agent: Mozilla/5.0 (Linux; Android 12; Redmi K30 Pro Build/SKQ1.211006.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/96.0.4664.104 Mobile Safari/537.36' -H 'content-type: application/json; charset=UTF-8' --compressed -X POST 'https://fat-taxiapi.hellobike.com/api#inner_action=hitch.PaxPublishOrderPage.PageInitFunction' -d '......"MTc1NTQxMjAwNw==.LDYf4uMgeVhaY34J6XCrFrE75WspYHmpJVQoopaEhEo=........!!!This sentence is truncated!!!'
```

the result is `......"MTc1NTQxMjAwNw`, the string after `==.` is truncated.

### Reproduction Steps

_No response_

### Is there an existing issue for this?

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

### Which sync method do you use?

- [ ] Git sync.
- [ ] Insomnia Cloud sync.
- [x] Local only

### Additional Information

_No response_

### Insomnia Version

11.1.0

### What operating system are you using?

macOS

### Operating System Version

15.4.1 (24E263)

### Installation method

from github release

### Last Known Working Insomnia version

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the Insomnia "import from cURL" flow and reproduce the issue using the cURL command in the report. Verify that the complete POST body, including the base64 text after `==.`, is preserved rather than truncated.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
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.