mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #5854] [bug]: When using scripts, may sometimes enter a letter that automatically formats and adds a space. #2297
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#2297
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 @zhaoqiang1024 on GitHub (Feb 10, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5854
Is there an existing issue for this?
Platform
Desktop App
Browser
Chrome
Operating System
macOS
Bug Description
var msg = new TextEncoder().encode(stringToSign);
var hash = await crypto.subtle.digest('SHA-256', msg).then(function (hash) {
return Array.from(new Uint8Array(hash)).map(b => ('00' + b.toString(16)).slice(-2)).join('').toUpperCase();
});
pw.env.set("X-Api-Key", appKey);
pw.env.set("X-Api-Version", "1");
pw.env.set("X-Api-Signature", hash);
pw.env.set("X-Api-Timestamp", timestamp);
pw.env.set("X-Api-Nonce", nonce);
var extraDataObj = {
"user": {
"userId": "101060"
}
};
var extraDataJson = JSON.stringify(extraDataObj);
var array = new TextEncoder().encode(extraDataJson);
var binaryStr = '';
// utf8Bytes.forEach(byte => {
// binaryStr += String.fromCharCode(byte);
// });
var blob = btoa(binaryStr);
pw.env.set("extraData", extraDataJson);
for (var i = 0 ; i < array.length; i++){
ar rr ay
}
Deployment Type
Hoppscotch Cloud
Version
Version 26.1.0 (26.1.0)