[GH-ISSUE #1311] [Bug] Scripting doesn't properly show the syntax error #1306

Open
opened 2026-03-03 19:50:18 +03:00 by kerem · 1 comment
Owner

Originally created by @NghiaTranUIT on GitHub (Jul 31, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1311

Originally assigned to: @NghiaTranUIT on GitHub.

Description

If we use async func for the scripting, the app doesn't display the error.

///
async function onResponse(context, url, request, response) {
  // ❌ Syntax error here. $PATH_123 is not defined!
  const data = $PATH_123;  

  // Done
  return response;
}
Screen Shot 2022-07-31 at 09 22 47 ### Expected behavior - Proxyman Console Log should properly display the error message from JavascriptCore

Versions:

  • Proxyman 3.7.0
  • macOS 12.5
Originally created by @NghiaTranUIT on GitHub (Jul 31, 2022). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1311 Originally assigned to: @NghiaTranUIT on GitHub. ### Description If we use async func for the scripting, the app doesn't display the error. ```js /// async function onResponse(context, url, request, response) { // ❌ Syntax error here. $PATH_123 is not defined! const data = $PATH_123; // Done return response; } ``` <img width="309" alt="Screen Shot 2022-07-31 at 09 22 47" src="https://user-images.githubusercontent.com/5878421/182006950-7e03a448-735b-4d0b-8a76-6cf9dd0aba91.png"> ### Expected behavior - Proxyman Console Log should properly display the error message from JavascriptCore ### Versions: - Proxyman 3.7.0 - macOS 12.5
Author
Owner
<!-- gh-comment-id:1200381716 --> @NghiaTranUIT commented on GitHub (Jul 31, 2022): Fixed with https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_3.7.0_Better_installing_root_certificate.dmg
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/Proxyman#1306
No description provided.