Skip to content

Debug - Network - Post request - Request Payload will be missing  #6897

@NickIliev

Description

@NickIliev

From @vhristov5555 on February 6, 2019 11:27

  1. Create project
  2. Add code for post request
httpModule.request({
    url: "https://httpbin.org/post",
    method: "POST",
    headers: { "Content-Type": "application/json" },
    content: JSON.stringify({
        username: vm.get("user"),
        password: vm.get("pass")
    })
}).then((response) => {
    const result = response.content.toJSON();
}, (e) => {
});
  1. Run tns debug ios
  2. Open the URL in Chrome
  3. Navigate to Network tab
  4. Click on the post request
    Actual: Request Payload will be missing in header section for the request.
    Expected: The Request Payload to be shown {"user":"user name","password":"password","token":"123718idjskmz"}. This is working in android.

Copied from original issue: NativeScript/ios-jsc#1072


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions