[GH-ISSUE #1990] [bug]: Imported Postman collections are not working #640

Closed
opened 2026-03-16 16:28:52 +03:00 by kerem · 9 comments
Owner

Originally created by @ricbermo on GitHub (Dec 1, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1990

Originally assigned to: @RishabhAgarwal-2001 on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I import a Postman collection, none of the imported requests seems to be working. After sending the request, I'm not getting responses. If I type the endpoint manually it does work.

Steps to reproduce

  1. Import a Postman collection ( you can use this one https://go.postman.co/workspace/My-Workspace~2ab78fef-e901-43a3-86bb-bb0ba130f26f/collection/5143-a7141ae8-a98a-4f65-bb47-030f4028d798)
  2. try to send any of the imported requests
  3. see how the the requests never ends (see the orange bar here)

image

Environment

Release

Version

Local

Originally created by @ricbermo on GitHub (Dec 1, 2021). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1990 Originally assigned to: @RishabhAgarwal-2001 on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I import a Postman collection, none of the imported requests seems to be working. After sending the request, I'm not getting responses. If I type the endpoint manually it does work. ### Steps to reproduce 1. Import a Postman collection ( you can use this one https://go.postman.co/workspace/My-Workspace~2ab78fef-e901-43a3-86bb-bb0ba130f26f/collection/5143-a7141ae8-a98a-4f65-bb47-030f4028d798) 2. try to send any of the imported requests 3. see how the the requests never ends (see the orange bar here) ![image](https://user-images.githubusercontent.com/2601363/144254186-5ce61b2e-f499-4cca-9faf-7b70b6c4c836.png) ### Environment Release ### Version Local
kerem 2026-03-16 16:28:52 +03:00
Author
Owner

@patricksilvamor commented on GitHub (Dec 2, 2021):

I'm having the same issue.

<!-- gh-comment-id:984821009 --> @patricksilvamor commented on GitHub (Dec 2, 2021): I'm having the same issue.
Author
Owner

@VCourdy commented on GitHub (Dec 3, 2021):

Same,
Here's the error when sending a request :
image

<!-- gh-comment-id:985419315 --> @VCourdy commented on GitHub (Dec 3, 2021): Same, Here's the error when sending a request : ![image](https://user-images.githubusercontent.com/15244542/144590484-a6f68e73-da61-4bb1-aef9-2e30fdd860a4.png)
Author
Owner

@cloudomatic commented on GitHub (Dec 6, 2021):

Does anyone know if this is a regression? I have always gotten the above error on a v2.1.0 collection, but never a v1 collection. I was interested to know if Hoppscotch was previously working with the v2 collections.

<!-- gh-comment-id:987218448 --> @cloudomatic commented on GitHub (Dec 6, 2021): Does anyone know if this is a regression? I have always gotten the above error on a v2.1.0 collection, but never a v1 collection. I was interested to know if Hoppscotch was previously working with the v2 collections.
Author
Owner

@RishabhAgarwal-2001 commented on GitHub (Dec 12, 2021):

Hello! I was planning to work on this issue. Can I get it assigned to myself, so that I can start working?

<!-- gh-comment-id:991885484 --> @RishabhAgarwal-2001 commented on GitHub (Dec 12, 2021): Hello! I was planning to work on this issue. Can I get it assigned to myself, so that I can start working?
Author
Owner

@liyasthomas commented on GitHub (Dec 12, 2021):

Hi @RishabhAgarwal-2001 you can give this a try. Assigning it to you.

Here's our current implementation for reference:
github.com/hoppscotch/hoppscotch@88cc21e3d4/packages/hoppscotch-app/components/collections/ImportExport.vue (L424)

<!-- gh-comment-id:991898867 --> @liyasthomas commented on GitHub (Dec 12, 2021): Hi @RishabhAgarwal-2001 you can give this a try. Assigning it to you. Here's our current implementation for reference: https://github.com/hoppscotch/hoppscotch/blob/88cc21e3d470aef3bc91b5b5e4f1d8f102b75e3c/packages/hoppscotch-app/components/collections/ImportExport.vue#L424
Author
Owner

@JosephSanjaya commented on GitHub (Dec 18, 2021):

I'm also got this problem, I fix it by adding default value for param "preRequestScript", "testScript" in json that exported from imported postman json, and reimporting it. I think the problem is with that 2 param empty hoppscotch think its invalid request.

Possible Fix

Add default empty value for "preRequestScript", "testScript" when importing from postman json.

<!-- gh-comment-id:997192870 --> @JosephSanjaya commented on GitHub (Dec 18, 2021): I'm also got this problem, I fix it by adding default value for param "preRequestScript", "testScript" in json that exported from imported postman json, and reimporting it. I think the problem is with that 2 param empty hoppscotch think its invalid request. ### Possible Fix Add default empty value for "preRequestScript", "testScript" when importing from postman json.
Author
Owner

@AndrewBastin commented on GitHub (Jan 21, 2022):

Hi guys,

We have pushed (github.com/hoppscotch/hoppscotch@588d1119b5) a new importer system with revamped Postman/Insomnia/OpenAPI Spec importers.

Please have a look and see if any issues persist now. If none, we can close this issue then.

<!-- gh-comment-id:1018459783 --> @AndrewBastin commented on GitHub (Jan 21, 2022): Hi guys, We have pushed (https://github.com/hoppscotch/hoppscotch/commit/588d1119b5ea98e6fbe404a32330f1f4e636c598) a new importer system with revamped Postman/Insomnia/OpenAPI Spec importers. Please have a look and see if any issues persist now. If none, we can close this issue then.
Author
Owner

@theMasix commented on GitHub (Jan 24, 2022):

@liyasthomas I get this error while importing a Postman collection
Screen Shot 2022-01-24 at 7 51 20 PM

It seems there is a file-size limitation on the server (description of 413 HTTP status code). The postman collection size is ~6MB.

I know it's not probably a bug from the client, But maybe a limitation from the server, or client should handle importing large-size collections in another way.

<!-- gh-comment-id:1020281937 --> @theMasix commented on GitHub (Jan 24, 2022): @liyasthomas I get this error while importing a Postman collection <img width="632" alt="Screen Shot 2022-01-24 at 7 51 20 PM" src="https://user-images.githubusercontent.com/22872117/150822098-5f811151-507b-40e6-810e-c2733fbae6af.png"> It seems there is a file-size limitation on the server (description of 413 HTTP status code). The postman collection size is ~6MB. I know it's not probably a bug from the client, But maybe a limitation from the server, or client should handle importing large-size collections in another way.
Author
Owner

@AndrewBastin commented on GitHub (Jan 24, 2022):

@theMasix can you open this as a separate issue and mention this is for Teams ? Thank you!

Also would appreciate if you could give me the count of collections/folders/requests in the Postman Collection you are trying to import.

Thanks!

<!-- gh-comment-id:1020453975 --> @AndrewBastin commented on GitHub (Jan 24, 2022): @theMasix can you open this as a separate issue and mention this is for Teams ? Thank you! Also would appreciate if you could give me the count of collections/folders/requests in the Postman Collection you are trying to import. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#640
No description provided.