[Bug] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
Describe the bug
This errors occurs when I import a Postman collection with some multipart-formdata field of file type.
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
at assertPath (path.js:39:11)
at basename (path.js:751:5)
at FileInputButton.render (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:60864:75)
at Qg (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236595:192)
at Og (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236594:264)
at Tg (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236602:30)
at bi (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236654:22)
at ci (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236655:284)
at Di (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236671:348)
at Yh (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236670:144)
at Xh (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236667:332)
at qf (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236665:86)
at Ji (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236675:14)
at Ki (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236675:92)
at Pi.module.exports.Pi.render (file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236683:109)
at file:///C:/Users/patri/AppData/Local/insomnia/app-7.0.6/resources/app.asar/bundle.js:236686:395
To Reproduce
Steps to reproduce the behavior:
- Import a Postman collection with multipart-formdata endpoint + file type field
- Click on the endpoint
- See error
Expected behavior
Open the endpoint without error and ignore the invalid path / reference
Screenshots

Desktop (please complete the following information):
- OS: Windows 10 Pro (latest stable build)
- Installation Method: EXE
- App Version v7.0.6
Additional context
Nope.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The stack trace points to FileInputButton.render in the bundled bundle.js; start there and trace the imported multipart-formdata file field into the endpoint view. Reproduce by importing a Postman collection with a file field, then verify the endpoint opens without throwing and ignores the invalid path or reference.
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
- 38/100