mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1990] [bug]: Imported Postman collections are not working #640
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#640
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
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
Environment
Release
Version
Local
@patricksilvamor commented on GitHub (Dec 2, 2021):
I'm having the same issue.
@VCourdy commented on GitHub (Dec 3, 2021):
Same,

Here's the error when sending a request :
@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.
@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?
@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)@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.
@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.
@theMasix commented on GitHub (Jan 24, 2022):
@liyasthomas I get this error while importing a Postman collection

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.
@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!