Skip to content

Not able to import collection from postman #129

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

Closed
2 tasks done
shivach2 opened this issue Jun 25, 2023 · 9 comments
Closed
2 tasks done

Not able to import collection from postman #129

shivach2 opened this issue Jun 25, 2023 · 9 comments
Labels
bug Something isn't working new

Comments

@shivach2
Copy link

shivach2 commented Jun 25, 2023

Checklist

  • I've searched for similar issues.
  • I'm using the latest version of HTTPie.

Minimal reproduction code and steps

  1. export a collection from Postman with type v 2.0 or v 2.1
  2. Try importing same in httpie
  3. observing an error (attaching a screenshot)
    httpie_error

Current result

Expected result


Debug output

Please re-run the command with --debug, then copy the entire command & output and paste both below:

$ http --debug <COMPLETE ARGUMENT LIST THAT TRIGGERS THE ERROR>
<COMPLETE OUTPUT>

Additional information, screenshots, or code examples

@shivach2 shivach2 added bug Something isn't working new labels Jun 25, 2023
@prettyirrelevant
Copy link

prettyirrelevant commented Jul 23, 2023

Hey @shivach2! I was able to fix workaround this by:

  1. Exporting all my Postman data. Link to docs
  2. Unzip the exported data.
  3. Import the specific <collection-uuid>.json

@paul-barton
Copy link

paul-barton commented Oct 30, 2023

For me you can take any valid openapi spec and convert it to a postman collection to reproduce this issue using openapi-to-postman then importing the collection into httpie/desktop.

On that note would be nice to just import in an openapi spec (yaml or json), but that would require a separate feature request.

Is this where httpie/desktop issues are being filed? @jkbrzt @iAmWillShepherd @saivanji

@jkbrzt jkbrzt transferred this issue from httpie/cli Oct 30, 2023
@ducktype
Copy link

Same problem with a different error, also importing from Import the specific .json as suggested by @prettyirrelevant does not work anyway:

image

@MaryamKazemit
Copy link

Hi, have you resolved the problem? If so, how did you fix it?

@m3astwood
Copy link

Hello I had the same problem when trying to import a postman collection for the CommerceTools API but I am getting the error Invalid at /item/0. Error: must have required property 'request'.

I fixed this by importing it into Postman, then re-exporting it as Postman version 2.1 which Httpie imported without issues.

@jkbrzt
Copy link
Member

jkbrzt commented Jan 20, 2025

✅ Fixed in HTTPie Desktop v2025.1.0 — thanks for the reports!

Full changelog:

https://httpie.io/blog/changelog-0026

@jkbrzt jkbrzt closed this as completed Jan 20, 2025
@MaryamKazemit
Copy link

Hi, after your update, I have tried to import my Postman collection again but am still facing the same issue.

Image

Image

@jkbrzt
Copy link
Member

jkbrzt commented Jan 21, 2025

@MaryamKazemit Could you share a link to the collection or send it to [email protected]? Thanks!

@jkbrzt
Copy link
Member

jkbrzt commented Mar 14, 2025

In v2025.2.0, we fixed another Postman collection import bug by implementing a workaround for multiple format variants using the same version identifier. Full changelog: https://httpie.io/blog/changelog-0027

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new
Projects
None yet
Development

No branches or pull requests

7 participants