[GH-ISSUE #2783] 无法执行预请求脚本啊 总是报错 #898

Closed
opened 2026-03-16 17:36:32 +03:00 by kerem · 5 comments
Owner

Originally created by @wwg2017 on GitHub (Oct 14, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2783

无法执行预请求脚本啊 总是报错
image

Originally created by @wwg2017 on GitHub (Oct 14, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2783 无法执行预请求脚本啊 总是报错 ![image](https://user-images.githubusercontent.com/27998578/195819806-c18f9dd4-8831-48f3-91f1-e94dc688abfb.png)
kerem closed this issue 2026-03-16 17:36:37 +03:00
Author
Owner

@liyasthomas commented on GitHub (Oct 14, 2022):

Please choose any of the provided issue templates to report bugs, feature requests etc with detailed description and steps to reproduce.

<!-- gh-comment-id:1278840074 --> @liyasthomas commented on GitHub (Oct 14, 2022): Please choose any of the provided [issue templates](https://github.com/hoppscotch/hoppscotch/issues/new/choose) to report bugs, feature requests etc with detailed description and steps to reproduce.
Author
Owner

@wwg2017 commented on GitHub (Oct 14, 2022):

Please choose any of the provided issue templates to report bugs, feature requests etc with detailed description and steps to reproduce.

https://hoppscotch.io/ 这个站点,,随便输入一个js脚本 console.log("str→"); 然后点击发送

<!-- gh-comment-id:1278851713 --> @wwg2017 commented on GitHub (Oct 14, 2022): > Please choose any of the provided [issue templates](https://github.com/hoppscotch/hoppscotch/issues/new/choose) to report bugs, feature requests etc with detailed description and steps to reproduce. 就https://hoppscotch.io/ 这个站点,,随便输入一个js脚本 console.log("str→"); 然后点击发送
Author
Owner

@liyasthomas commented on GitHub (Oct 14, 2022):

Pre-request scripts doesn't support console.log() at the moment. We're working towards an improved scripting sandbox API via Scripting revamp RFC. Kindly share your thoughts on that discussion.

For more details on supported pre-request script API, refer documentation.

<!-- gh-comment-id:1278860488 --> @liyasthomas commented on GitHub (Oct 14, 2022): Pre-request scripts doesn't support `console.log()` at the moment. We're working towards an improved scripting sandbox API via [Scripting revamp RFC](https://github.com/hoppscotch/hoppscotch/discussions/2292). Kindly share your thoughts on that discussion. For more details on supported pre-request script API, [refer documentation](https://docs.hoppscotch.io/features/pre-request-script).
Author
Owner

@wwg2017 commented on GitHub (Oct 14, 2022):

Pre-request scripts doesn't support console.log() at the moment. We're working towards an improved scripting sandbox API via Scripting revamp RFC. Kindly share your thoughts on that discussion.

ok,多谢,还有一个问题就是,,如果文件夹下面的请求多了情况下,打开文件夹会很慢很卡

<!-- gh-comment-id:1278862214 --> @wwg2017 commented on GitHub (Oct 14, 2022): > Pre-request scripts doesn't support `console.log()` at the moment. We're working towards an improved scripting sandbox API via [Scripting revamp RFC](https://github.com/hoppscotch/hoppscotch/discussions/2292). Kindly share your thoughts on that discussion. ok,多谢,还有一个问题就是,,如果文件夹下面的请求多了情况下,打开文件夹会很慢很卡
Author
Owner

@wwg2017 commented on GitHub (Oct 14, 2022):

Pre-request scripts doesn't support console.log() at the moment. We're working towards an improved scripting sandbox API via Scripting revamp RFC. Kindly share your thoughts on that discussion.

For more details on supported pre-request script API, refer documentation.

CryptoJS.MD5(str).toString(); 这个函数支持吗

<!-- gh-comment-id:1278875777 --> @wwg2017 commented on GitHub (Oct 14, 2022): > Pre-request scripts doesn't support `console.log()` at the moment. We're working towards an improved scripting sandbox API via [Scripting revamp RFC](https://github.com/hoppscotch/hoppscotch/discussions/2292). Kindly share your thoughts on that discussion. > > For more details on supported pre-request script API, [refer documentation](https://docs.hoppscotch.io/features/pre-request-script). CryptoJS.MD5(str).toString(); 这个函数支持吗
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#898
No description provided.