Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report missing content-type #366

Closed
1 task done
vbisbest opened this issue Feb 22, 2022 · 6 comments
Closed
1 task done

Report missing content-type #366

vbisbest opened this issue Feb 22, 2022 · 6 comments
Labels
area: newman-related This issue relates to the Newman project state: triaged This issue has been triaged

Comments

@vbisbest
Copy link

Is There An Existing Issue

What Are You Seeing

In the requests view of the report, the content-type header is missing. I know newman is sending the header by using a proxy, however it does not show up in the report.

Steps To Reproduce The Issue

  1. Run any postman collection and look for content-type in the html report.

Full Newman Command Or Node Script

NA

HTMLEXTRA Version

1.22.5

Newman Version

5.3.1

Additional Context

NA

@vbisbest vbisbest added state: needs-triage This issue needs to be triaged type: bug Something isn't working labels Feb 22, 2022
@DannyDainton
Copy link
Owner

As the reporter has flags to omit certain pieces of data from the report, the command you use is very applicable.

Can you provide a visual example of the header not being there, at the moment the information that you have provided isn't enough for me to investigate the issue.

@vbisbest
Copy link
Author

Thank you for your response. Here is the request from postman (confirmed it works the same with newman). Notice the content-type header
Screen Shot 2022-02-23 at 4 53 31 AM

And here is the report (notice content-type is missing)
Screen Shot 2022-02-23 at 5 03 28 AM

@vbisbest
Copy link
Author

Also, I think the issue is in newman. I logged the same issue over there. Basically their "request" hook is not including the content-type header. Its like it gets added after that function.
postmanlabs/newman#2935

@DannyDainton
Copy link
Owner

The reporter will only display what's coming from the Newman Summary Object - If that's not in that output, then it wouldn't be shown on the final report.

There's not a great deal that I can do here, to be honest. 😢

@DannyDainton DannyDainton added area: newman-related This issue relates to the Newman project state: triaged This issue has been triaged and removed type: bug Something isn't working state: needs-triage This issue needs to be triaged labels Feb 23, 2022
@vbisbest
Copy link
Author

It was a shot in the dark. I appreciate you taking a look. Thanks.

@github-actions
Copy link

github-actions bot commented May 4, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: newman-related This issue relates to the Newman project state: triaged This issue has been triaged
Projects
None yet
Development

No branches or pull requests

2 participants