[GH-ISSUE #980] Map Remote encode error #976

Open
opened 2026-03-03 19:23:28 +03:00 by kerem · 9 comments
Owner

Originally created by @jackpoxy on GitHub (Sep 7, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/980

Originally assigned to: @NghiaTranUIT on GitHub.

Proxyman version:Proxyman 2.31.0

macOS Version: mac 11.3

Screenshots (optional)

image
Can I choice encode or not?
image

Originally created by @jackpoxy on GitHub (Sep 7, 2021). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/980 Originally assigned to: @NghiaTranUIT on GitHub. ### Proxyman version:Proxyman 2.31.0 ### macOS Version: mac 11.3 ### Screenshots (optional) ![image](https://user-images.githubusercontent.com/24241847/132352184-055f037c-0307-4825-87f6-e3c8efecb220.png) Can I choice encode or not? ![image](https://user-images.githubusercontent.com/24241847/132352640-3bbc621b-9650-4957-800b-50b7a840fe7c.png)
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 7, 2021):

Hey, thanks for the bug report. I'm not sure why Proxyman encodes this /, but not another part 🤔 I will investigate it 👍

To workaround, you can use this Snippet Code from Scripting Tool, to achieve the same thing as Map Remote doesn't. It might fix the bug 👍

function onRequest(context, url, request) {
    request.scheme = "http";
    request.host = "localhost";
    request.port = 300;
    return request;
}
<!-- gh-comment-id:914310619 --> @NghiaTranUIT commented on GitHub (Sep 7, 2021): Hey, thanks for the bug report. I'm not sure why Proxyman encodes this /, but not another part 🤔 I will investigate it 👍 To workaround, you can use this [Snippet Code](https://docs.proxyman.io/scripting/snippet-code#change-request-destination-scheme-host-port-path) from Scripting Tool, to achieve the same thing as Map Remote doesn't. It might fix the bug 👍 ```js function onRequest(context, url, request) { request.scheme = "http"; request.host = "localhost"; request.port = 300; return request; } ```
Author
Owner

@jackpoxy commented on GitHub (Sep 8, 2021):

Hi, I used the Scripting Tool, but I got the same question too.
image

<!-- gh-comment-id:914855914 --> @jackpoxy commented on GitHub (Sep 8, 2021): Hi, I used the Scripting Tool, but I got the same question too. ![image](https://user-images.githubusercontent.com/24241847/132437022-b8e8779d-dc63-4765-896b-e98a10cb3162.png)
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 8, 2021):

Thanks, not sure why URLComponent incorrectly parses your URL. I will check out this week and send you a Beta build 👍

<!-- gh-comment-id:914858394 --> @NghiaTranUIT commented on GitHub (Sep 8, 2021): Thanks, not sure why URLComponent incorrectly parses your URL. I will check out this week and send you a Beta build 👍
Author
Owner

@jackpoxy commented on GitHub (Sep 8, 2021):

Thanks, not sure why URLComponent incorrectly parses your URL. I will check out this week and send you a Beta build 👍

OK,thanks:)

<!-- gh-comment-id:914878575 --> @jackpoxy commented on GitHub (Sep 8, 2021): > Thanks, not sure why URLComponent incorrectly parses your URL. I will check out this week and send you a Beta build 👍 OK,thanks:)
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 8, 2021):

Hey @jackpoxy

If you turn off the Map Remote Tool, and enable the Scripting, Have you still encountered the bug? (Please ignore the console log)

I'm able to reproduce it by using Map Remote, but not the Scripting.

Here is my URL I tested: http://localhost:3000/api/git/api/v3/projects/TCE-Cmgt-Web-l18n%2FCLB-web.git/repository/branches?private_key=aaa

<!-- gh-comment-id:915091545 --> @NghiaTranUIT commented on GitHub (Sep 8, 2021): Hey @jackpoxy If you turn off the Map Remote Tool, and enable the Scripting, Have you still encountered the bug? (Please ignore the console log) I'm able to reproduce it by using Map Remote, but not the Scripting. Here is my URL I tested: http://localhost:3000/api/git/api/v3/projects/TCE-Cmgt-Web-l18n%2FCLB-web.git/repository/branches?private_key=aaa
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 8, 2021):

@jackpoxy Please try this Beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.32.1_Fix_Percent_Encoded_in_Map_Remote.dmg

I fixed the percent-encoded issue on the Map Remote 😄

Please turn off the scripting and test it again.
Screen_Shot_2021-09-08_at_17_47_56

<!-- gh-comment-id:915128284 --> @NghiaTranUIT commented on GitHub (Sep 8, 2021): @jackpoxy Please try this Beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.32.1_Fix_Percent_Encoded_in_Map_Remote.dmg I fixed the percent-encoded issue on the Map Remote 😄 Please turn off the scripting and test it again. <img width="1678" alt="Screen_Shot_2021-09-08_at_17_47_56" src="https://user-images.githubusercontent.com/5878421/132496329-1eafdb26-c6a7-4c29-88d4-7af810c932b4.png">
Author
Owner

@jackpoxy commented on GitHub (Sep 8, 2021):

Hey @jackpoxy

If you turn off the Map Remote Tool, and enable the Scripting, Have you still encountered the bug? (Please ignore the console log)

I'm able to reproduce it by using Map Remote, but not the Scripting.

Here is my URL I tested: http://localhost:3000/api/git/api/v3/projects/TCE-Cmgt-Web-l18n%2FCLB-web.git/repository/branches?private_key=aaa

Hey @NghiaTranUIT ,I try turn off the Map Remoto Tools, only use Scripting Tool. I think the encode is still work.
image
image
image

<!-- gh-comment-id:915166663 --> @jackpoxy commented on GitHub (Sep 8, 2021): > Hey @jackpoxy > > If you turn off the Map Remote Tool, and enable the Scripting, Have you still encountered the bug? (Please ignore the console log) > > I'm able to reproduce it by using Map Remote, but not the Scripting. > > Here is my URL I tested: http://localhost:3000/api/git/api/v3/projects/TCE-Cmgt-Web-l18n%2FCLB-web.git/repository/branches?private_key=aaa Hey @NghiaTranUIT ,I try turn off the Map Remoto Tools, only use Scripting Tool. I think the encode is still work. ![image](https://user-images.githubusercontent.com/24241847/132504012-02c2821c-db6c-4bdc-a032-7270cf64e022.png) ![image](https://user-images.githubusercontent.com/24241847/132504024-acaabcc1-9fbd-438b-87bb-9228aa0a3d7d.png) ![image](https://user-images.githubusercontent.com/24241847/132504040-7ba449e9-e96f-42d9-824d-ad24c8eda324.png)
Author
Owner

@jackpoxy commented on GitHub (Sep 8, 2021):

@jackpoxy Please try this Beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.32.1_Fix_Percent_Encoded_in_Map_Remote.dmg

I fixed the percent-encoded issue on the Map Remote 😄

Please turn off the scripting and test it again.
Screen_Shot_2021-09-08_at_17_47_56

Hey @NghiaTranUIT
I used this version, I think the bug is fixed, it's so quickly, thanks for your work :)

<!-- gh-comment-id:915175925 --> @jackpoxy commented on GitHub (Sep 8, 2021): > @jackpoxy Please try this Beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.32.1_Fix_Percent_Encoded_in_Map_Remote.dmg > > I fixed the percent-encoded issue on the Map Remote 😄 > > Please turn off the scripting and test it again. > <img alt="Screen_Shot_2021-09-08_at_17_47_56" width="1678" src="https://user-images.githubusercontent.com/5878421/132496329-1eafdb26-c6a7-4c29-88d4-7af810c932b4.png"> Hey @NghiaTranUIT I used this version, I think the bug is fixed, it's so quickly, thanks for your work :)
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 8, 2021):

Glad to know it works @jackpoxy 💯

<!-- gh-comment-id:915248399 --> @NghiaTranUIT commented on GitHub (Sep 8, 2021): Glad to know it works @jackpoxy 💯
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#976
No description provided.