ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.66k stars 187 forks source link

[BUG] Scripting: Get warning when making a multipart request #2138

Open NghiaTranUIT opened 1 month ago

NghiaTranUIT commented 1 month ago

Description

The Script will show this Warning note in the Console if the request has multipart body.

----------------------------------
09:39:01.566: [onRequest] with Request ID=17
https://httpbin.proxyman.app/post?action=form
❌ Error: Missing Content-Type Header. Attempt to guess the Content-Type from the body!
09:39:01.582 onRequest() is executed!

Steps to Reproduce

  1. Create a Script for some requests
  2. Make a multipart request

Current Behavior

Expected Behavior

NghiaTranUIT commented 1 month ago

Fixed: https://download.proxyman.io/beta/Proxyman_5.8.0_fix_scripting_with_multipart_body.dmg

luckman212 commented 4 weeks ago

I am seeing this error a log in my Console logs (Proxyman 5.9.0) - is there anything I can do @NghiaTranUIT ?

NghiaTranUIT commented 4 weeks ago

it's just a warning @luckman212 . It means one of your requests/responses doesn't have the Content-Type header, so it guess the type of your body is.

luckman212 commented 4 weeks ago

Okay thanks. Is there any way to hide this warning? I get hundreds of them and it clutters the Console when I am trying to look for important messages from my script.

NghiaTranUIT commented 4 weeks ago

Let me add the filter option to show/hide warning/error 👍