[GH-ISSUE #4688] [bug]: Import from openapi fail #1744

Closed
opened 2026-03-16 21:35:57 +03:00 by kerem · 1 comment
Owner

Originally created by @Lupennat on GitHub (Jan 22, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4688

Originally assigned to: @Lupennat on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When doc.servers is defined as empty array, import will fail with this error

TypeError: Cannot read properties of undefined (reading 'url')

Steps to reproduce

Import an openapi.json with servers: []

Environment

Production

Version

Cloud

Originally created by @Lupennat on GitHub (Jan 22, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4688 Originally assigned to: @Lupennat on GitHub. ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current behavior When doc.servers is defined as empty array, import will fail with this error ``` TypeError: Cannot read properties of undefined (reading 'url') ``` ### Steps to reproduce Import an openapi.json with `servers: []` ### Environment Production ### Version Cloud
kerem 2026-03-16 21:35:57 +03:00
Author
Owner

@jamesgeorge007 commented on GitHub (Feb 7, 2025):

Hi, closing this issue since this is now resolved in v2025.1.1. Please feel free to let us know if you have any feedback.

<!-- gh-comment-id:2643573749 --> @jamesgeorge007 commented on GitHub (Feb 7, 2025): Hi, closing this issue since this is now resolved in [v2025.1.1](https://github.com/hoppscotch/hoppscotch/releases/tag/2025.1.1). Please feel free to let us know if you have any feedback.
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#1744
No description provided.