[GH-ISSUE #5952] [bug]: An error occurred when publishing documents from the personal workspace along with the environment variables of the personal workspace. #2338

Open
opened 2026-03-17 00:00:48 +03:00 by kerem · 0 comments
Owner

Originally created by @ZhReimu on GitHub (Mar 6, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5952

Originally assigned to: @mirarifhasan on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Summary

When I publish a document in my personal workspace and select an environment, clicking the publish button results in an error.

{
    "errors": [
        {
            "message": "published_docs/invalid_environment",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": [
                "createPublishedDoc"
            ],
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR",
                "stacktrace": [
                    "Error: published_docs/invalid_environment",
                    "    at throwErr (/usr/src/app/src/utils.ts:22:9)",
                    "    at PublishedDocsResolver.createPublishedDoc (/usr/src/app/src/published-docs/published-docs.resolver.ts:169:35)",
                    "    at processTicksAndRejections (node:internal/process/task_queues:104:5)",
                    "    at target (/usr/src/app/node_modules/@nestjs/core/helpers/external-context-creator.js:74:28)",
                    "    at Object.createPublishedDoc (/usr/src/app/node_modules/@nestjs/core/helpers/external-proxy.js:9:24)"
                ]
            }
        }
    ],
    "data": null
}

Why should this be worked on?

When I created a team workspace, copied all the data over, and republished it, everything worked properly.The version is the latest Hoppscotch Web version.

Originally created by @ZhReimu on GitHub (Mar 6, 2026). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5952 Originally assigned to: @mirarifhasan on GitHub. ### Is there an existing issue for this? - [x] I have searched the existing issues ### Summary When I publish a document in my personal workspace and select an environment, clicking the publish button results in an error. ```json { "errors": [ { "message": "published_docs/invalid_environment", "locations": [ { "line": 2, "column": 3 } ], "path": [ "createPublishedDoc" ], "extensions": { "code": "INTERNAL_SERVER_ERROR", "stacktrace": [ "Error: published_docs/invalid_environment", " at throwErr (/usr/src/app/src/utils.ts:22:9)", " at PublishedDocsResolver.createPublishedDoc (/usr/src/app/src/published-docs/published-docs.resolver.ts:169:35)", " at processTicksAndRejections (node:internal/process/task_queues:104:5)", " at target (/usr/src/app/node_modules/@nestjs/core/helpers/external-context-creator.js:74:28)", " at Object.createPublishedDoc (/usr/src/app/node_modules/@nestjs/core/helpers/external-proxy.js:9:24)" ] } } ], "data": null } ``` ### Why should this be worked on? When I created a team workspace, copied all the data over, and republished it, everything worked properly.The version is the latest Hoppscotch Web version.
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#2338
No description provided.