Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Importing requests from a Postman Collection v2 doesn't properly import query string parameters #778

Closed
EpocDotFr opened this issue Feb 22, 2018 · 6 comments
Labels
stale Bot: Stale Issue

Comments

@EpocDotFr
Copy link

EpocDotFr commented Feb 22, 2018

  • Insomnia Version: 5.14.7
  • Operating System: Windows 10

Details

Using the latest standalone version of Postman on Windows: I exported a collection of requests to a Postman Collection v2 JSON file.

I then imported this file in the lastest Insomnia on Windows (by dragging / dropping the file directly in the window): the import were successful, however query strings parameters weren't properly imported. Specifically:

  1. Disabled query string parameters in Postman weren't imported at all in Insomnia
  2. The resulting URL in Insomnia contains the full URL with query string parameters. Query string parameters should have been imported in the Query tab of Insomnia instead of being put in the request URL.

Steps to reproduce

  1. Create a new GET request in the latest Postman pointing to this URL: https://httpbin.org/get
  2. Add a query string parameter in this request: first: test
  3. Add a query string parameter in this request: second: test, then disable this one
  4. Export this request as a Postman Collection v2 JSON file
  5. Import this file in the latest Insomnia

Results:

  • The URL (the one next to the HTTP method selector) in Insomnia is https://httpbin.org/get?first=test instead of https://httpbin.org/get
  • No query strings are displayed in the Query tab. There should have been:
    • first: test
    • second: test (with disabled status)
@welcome
Copy link

welcome bot commented Feb 22, 2018

👋 Thanks for opening your first issue! If you're reporting a 🐞 bug, please make sure
you include steps to reproduce it. If you're requesting a feature 🎁, please provide real
use cases that would benefit. 👪

To help make this a smooth process, please be sure you have first read the
contributing guidelines.

@EpocDotFr
Copy link
Author

Okay, I just saw the Import from Url button at the very bottom of the screen in the Query tab that would have done the job... But still, query string parameters should have been properly imported.

@beeblebrox3
Copy link

AFAIK insomnia doesn't support URL parameters like postman :/
See this: #203

@gschier
Copy link
Contributor

gschier commented Apr 4, 2018

I think the original issue is referring to query parameters, not the :param syntax of Postman.

The problem is that right now, query params defined in Postman in key-value form are imported into Insomnia as a single string, appended to the URL. Instead of this, it should be imported into Insomnia's key-value form within the Query tab.

@EpocDotFr
Copy link
Author

@gschier is absolutely right 😄

@stale
Copy link

stale bot commented Jun 13, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Bot: Stale Issue
Projects
None yet
Development

No branches or pull requests

3 participants