[PR #5213] [MERGED] fix: unicode error in postman import #5109

Closed
opened 2026-03-17 02:35:11 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5213
Author: @nivedin
Created: 7/1/2025
Status: Merged
Merged: 7/9/2025
Merged by: @jamesgeorge007

Base: patchHead: fix/unicode-errro-in-response


📝 Commits (3)

📊 Changes

1 file changed (+20 additions, -1 deletions)

View changed files

📝 packages/hoppscotch-common/src/helpers/import-export/import/postman.ts (+20 -1)

📄 Description

Closes FE-916 #4452

This PR fixes the bug when importing a response body with a Unicode which fail while saving with Prisma.[ref]

The Unicode is now replaced with an empty string while importing a request.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/5213 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 7/1/2025 **Status:** ✅ Merged **Merged:** 7/9/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix/unicode-errro-in-response` --- ### 📝 Commits (3) - [`3746bd1`](https://github.com/hoppscotch/hoppscotch/commit/3746bd104f9660c720207f4339ccd5ba09ea2d68) fix: unicode error in postman import - [`683be97`](https://github.com/hoppscotch/hoppscotch/commit/683be976c58bed0bc69229a91f7c931f5a22566d) chore: cleanup - [`db5dd16`](https://github.com/hoppscotch/hoppscotch/commit/db5dd16c2b9f0c69a714a13988e96794344d293e) chore: cleanup ### 📊 Changes **1 file changed** (+20 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/import-export/import/postman.ts` (+20 -1) </details> ### 📄 Description Closes FE-916 #4452 This PR fixes the bug when importing a response body with a Unicode which fail while saving with Prisma.[[ref](https://dba.stackexchange.com/questions/115029/unicode-error-with-u0000-on-copy-of-large-json-file-into-postgres)] The Unicode is now replaced with an empty string while importing a request. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:35:11 +03:00
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#5109
No description provided.