ProxymanApp / ProxymanApp/Proxyman

Scripting error when application uses wrong content-type

Open
#894 2 comments 0 reactions 1 assignee View on GitHub

@NghiaTranUIT is already working on this.

Since May 21, 2021.

Dominant language
No language data
Stars
7k
Forks
237
PR merge metrics
No merged PRs in 30d

Description

Proxyman version? (Ex. Proxyman 1.4.3)

2.25.0 (22500)

macOS Version? (Ex. mac 10.14)

mac 11.3.1

Steps to reproduce

The application sends an invalid JSON object with Content-Type=application/json. I want to log this value.

function onRequest(context, url, request) {
  console.log(request);
  return request;
}

I'm getting this error:

Error: Invalid JSON Object from given body. (Content-Type=application/json)

Expected behavior

Add a way to pass invalid body data with application/json content-type (maybe a flag ignoreContentType or something of that nature).

Workarounds are also welcome (I can't fix the body, the app's server expects the invalid values).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.