[GH-ISSUE #748] Check the existence of onRequest/onResponse function in Scripting #743

Open
opened 2026-03-03 19:21:32 +03:00 by kerem · 1 comment
Owner

Originally created by @NghiaTranUIT on GitHub (Dec 31, 2020).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/748

Originally assigned to: @NghiaTranUIT on GitHub.

Description

Currently, if one of those functions are absent, the console will throw an unmeaningful log

❌Error: Could not convert JSvalue to Dictionary. Please make sure the return value is a JS dictionary (Object)

We should polish it

Acceptance Criteria

  • If onRequest() or onResponse() is absent, just skip it
  • Do not throw the error if it's missing
Originally created by @NghiaTranUIT on GitHub (Dec 31, 2020). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/748 Originally assigned to: @NghiaTranUIT on GitHub. ### Description Currently, if one of those functions are absent, the console will throw an unmeaningful log ``` ❌Error: Could not convert JSvalue to Dictionary. Please make sure the return value is a JS dictionary (Object) ``` We should polish it ### Acceptance Criteria - If `onRequest()` or `onResponse()` is absent, just skip it - Do not throw the error if it's missing
Author
Owner

@NghiaTranUIT commented on GitHub (Jan 2, 2021):

Fixed with https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.15.2_Gratefully_Check_Scripting_Func.dmg 🎉

<!-- gh-comment-id:753420132 --> @NghiaTranUIT commented on GitHub (Jan 2, 2021): Fixed with https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.15.2_Gratefully_Check_Scripting_Func.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#743
No description provided.