# Newman library revisited

**URL:** <https://community.postman.com/t/newman-library-revisited/16835>\
**Category:** Help Hub\
**Created:** [October 16, 2020, 11:32am UTC](https://community.postman.com/t/newman-library-revisited/16835 "2020-10-16T11:32:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robmcec](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/robmcec/32/5857_2.png) [@robmcec](https://community.postman.com/u/robmcec)\
**Post date:** [October 16, 2020, 11:32am UTC](https://community.postman.com/t/newman-library-revisited/16835/1 "2020-10-16T11:32:37Z")

</div>

I’m trying to run a simple collection of one request that requires no auth.  
My request is:  
[https://api.github.com/](https://api.github.com/)  
I can run this in runner or in a freaking browser, but I can’t get this to run with newman.

```
const newman = require('newman');

newman.run({
    collection: require('.\\Github.postman_collection.json'),
    reporters: 'html',
    reporter: {
        html: {
            export: '.\\htmlResults.html',
        }
    }
}, function (err) {
	if (err) { throw err; }
    console.log('collection run complete!');
});

```

The error that I get with the report is so informative…  
**There was an error sending this request**

Wow! Really! 🙂

Is it node causing the issue? Is it a permissions thing?

I’m running everything from a folder on the Desktop. Is that causing the problem?

Any thoughts?

Aside from some help getting this painfully simple request to run with the newman library. Is there some kind of verbose error reporting mode that provides a little more info as to what’s happening?

Is there a way to run these in a debugger?

Thanks,  
Rob

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 16, 2020, 11:53am UTC](https://community.postman.com/t/newman-library-revisited/16835/2 "2020-10-16T11:53:44Z")

</div>

Hey @robmcec

Is the file path correct? Does it work with the full path rather than the relative one?

How are you running the script? Can you share an image of the console that you are running this from?

There not a great deal of information to go off here, the script lots fine (apart from the file path maybe) but it’s lacking all the contextual environment details which would make running that script on my machine, different to yours.

* * *

I maybe have read this wrong… Is it actually producing a report?

Not sure if it will help but this reporter might give you more information about the request in the Collection:

> **[DannyDainton/newman-reporter-htmlextra](https://github.com/DannyDainton/newman-reporter-htmlextra)**
>
> A HTML reporter for Postman's Command Line Runner, Newman. Includes Non Aggregated Runs broken down by Iterations, Skipped Tests, Console Logs and the handlebars helpers module for better cust...

---

<div class="post-metadata">

**Author:** ![robmcec](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/robmcec/32/5857_2.png) [@robmcec](https://community.postman.com/u/robmcec)\
**Post date:** [October 16, 2020, 12:58pm UTC](https://community.postman.com/t/newman-library-revisited/16835/3 "2020-10-16T12:58:26Z")

</div>

It’s working now and I’m not sure what I did.

Yes, it’s producing a report.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 16, 2020, 1:36pm UTC](https://community.postman.com/t/newman-library-revisited/16835/4 "2020-10-16T13:36:59Z")

</div>

Cool, I’m completely bias but I would take a look at the htmlextra reporter and see if that’s going to give you more information from the Collection run. 😁

---

<div class="post-metadata">

**Author:** ![robmcec](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/robmcec/32/5857_2.png) [@robmcec](https://community.postman.com/u/robmcec)\
**Post date:** [October 16, 2020, 3:45pm UTC](https://community.postman.com/t/newman-library-revisited/16835/5 "2020-10-16T15:45:52Z")

</div>

Oh yeah, that’s much better. Thank you!
