[GH-ISSUE #5123] [bug]: Importing openapi file shows no response, console contains module error #1951

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

Originally created by @839900146 on GitHub (Jun 3, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5123

Originally assigned to: @anwarulislam on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Current behavior

An error message appears in the console immediately when the page is fully loaded;
When clicking to import openapi data on the right side, it remains in a loading state;

111.openapi.json

Image

Image

Steps to reproduce

  1. Click import on the right side
  2. Select openapi
  3. Select upload file or paste URL
  4. Click import

Logs and Screenshots

index.js:9 Uncaught TypeError: Cannot convert undefined or null to object
    at Object.assign (<anonymous>)
    at index.js:9:29
    at openapi-import-worker-smbt70Qi.js:1:23
    at openapi-import-worker.ts:53:2

Environment

Production

Hoppscotch Version

Self-hosted

Interceptor

Not Applicable - Issue not related to network requests

Browsers Affected

Chrome

Operating System

Windows

Additional Information

  • This issue exists in both the self-hosted version and the official website.
  • Preliminary debugging revealed that after the web end parsed the content of the openapi file, it passed the content to the worker, but the worker did not respond at all.
  • The Windows client downloaded from the official website also has this problem.

Code with issues:

const validateDocs = (docs: any): Promise<OpenAPI.Document> => {
  return new Promise((resolve, reject) => {
    worker.postMessage({
      type: "validate",
      docs,
    })

    worker.onmessage = (event) => {
      if (event.data.type === "VALIDATION_RESULT") {
        if (E.isLeft(event.data.data)) {
          reject("COULD_NOT_VALIDATE")
        } else {
          resolve(event.data.data.right as OpenAPI.Document)
        }
      }
    }
  })
}

Image

Originally created by @839900146 on GitHub (Jun 3, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5123 Originally assigned to: @anwarulislam on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Current behavior An error message appears in the console immediately when the page is fully loaded; When clicking to import openapi data on the right side, it remains in a loading state; [111.openapi.json](https://github.com/user-attachments/files/20564030/111.openapi.json) ![Image](https://github.com/user-attachments/assets/1aaac210-d28d-4623-81d9-2cd28fc853a0) ![Image](https://github.com/user-attachments/assets/9be4bc23-8cd1-4149-95aa-ca4b84cbcd3c) ### Steps to reproduce 1. Click import on the right side 2. Select openapi 3. Select upload file or paste URL 4. Click import ### Logs and Screenshots ```shell index.js:9 Uncaught TypeError: Cannot convert undefined or null to object at Object.assign (<anonymous>) at index.js:9:29 at openapi-import-worker-smbt70Qi.js:1:23 at openapi-import-worker.ts:53:2 ``` ### Environment Production ### Hoppscotch Version Self-hosted ### Interceptor Not Applicable - Issue not related to network requests ### Browsers Affected Chrome ### Operating System Windows ### Additional Information - This issue exists in both the self-hosted version and the official website. - Preliminary debugging revealed that after the web end parsed the content of the openapi file, it passed the content to the worker, but the worker did not respond at all. - The Windows client downloaded from the official website also has this problem. Code with issues: ```javascript const validateDocs = (docs: any): Promise<OpenAPI.Document> => { return new Promise((resolve, reject) => { worker.postMessage({ type: "validate", docs, }) worker.onmessage = (event) => { if (event.data.type === "VALIDATION_RESULT") { if (E.isLeft(event.data.data)) { reject("COULD_NOT_VALIDATE") } else { resolve(event.data.data.right as OpenAPI.Document) } } } }) } ``` ![Image](https://github.com/user-attachments/assets/d482747e-f6d8-4925-9bda-2a592a38580c)
kerem 2026-03-16 22:35:59 +03:00
Author
Owner

@jamesgeorge007 commented on GitHub (Jun 15, 2025):

Closing this issue since it's addressed in the latest release. Please feel free to let us know if you have any feedback.

<!-- gh-comment-id:2973556508 --> @jamesgeorge007 commented on GitHub (Jun 15, 2025): Closing this issue since it's addressed in the latest release. 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#1951
No description provided.