<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unsupported module in scripts: http.]]></title><description><![CDATA[<p>I used the following code on jsreport to generate the html report,</p>
<pre><code>var http = require('http');
function beforeRender(req, res, done) {    
     require('request')({ 
      url:&quot;http://157.232.10.106:31210/api/project/v1/reports/gethookdata/bsr_test_med_instr/234/3879&quot;, 
      json:true 
    }, function(err, response, body){
        
        req.data.posts = body;
        done();
    });
    

   
}
</code></pre>
<p>Here i got the error &quot;unsupported module in scripts: http. can some one help me</p>
]]></description><link>https://forum.jsreport.net/topic/112/unsupported-module-in-scripts-http</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 12:31:53 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/112.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 May 2017 06:29:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Wed, 31 May 2017 06:30:16 GMT]]></title><description><![CDATA[<p>I used the following code on jsreport to generate the html report,</p>
<pre><code>var http = require('http');
function beforeRender(req, res, done) {    
     require('request')({ 
      url:&quot;http://157.232.10.106:31210/api/project/v1/reports/gethookdata/bsr_test_med_instr/234/3879&quot;, 
      json:true 
    }, function(err, response, body){
        
        req.data.posts = body;
        done();
    });
    

   
}
</code></pre>
<p>Here i got the error &quot;unsupported module in scripts: http. can some one help me</p>
]]></description><link>https://forum.jsreport.net/post/489</link><guid isPermaLink="true">https://forum.jsreport.net/post/489</guid><dc:creator><![CDATA[saranilangoRasu]]></dc:creator><pubDate>Wed, 31 May 2017 06:30:16 GMT</pubDate></item><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Invalid Date]]></title><description><![CDATA[<p>The error message actually tells you what you need to change in the config. Did you try it?</p>
]]></description><link>https://forum.jsreport.net/post/490</link><guid isPermaLink="true">https://forum.jsreport.net/post/490</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Invalid Date]]></title><description><![CDATA[<p>i can't get clearly, in which config i should change</p>
]]></description><link>https://forum.jsreport.net/post/491</link><guid isPermaLink="true">https://forum.jsreport.net/post/491</guid><dc:creator><![CDATA[saranilangoRasu]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Invalid Date]]></title><description><![CDATA[<p>The docs to read...<br />
<a href="https://jsreport.net/learn/configuration" rel="nofollow">https://jsreport.net/learn/configuration</a><br />
<a href="https://jsreport.net/learn/scripts" rel="nofollow">https://jsreport.net/learn/scripts</a></p>
]]></description><link>https://forum.jsreport.net/post/492</link><guid isPermaLink="true">https://forum.jsreport.net/post/492</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Invalid Date]]></title><description><![CDATA[<p>&quot;scripts&quot;: {<br />
&quot;allowedModules&quot; : [&quot;http&quot;]<br />
}</p>
<p>i added the the above code in my package.json file in my nodejs application. but same error was thrown, The jsreport i am running on my node js application.</p>
]]></description><link>https://forum.jsreport.net/post/496</link><guid isPermaLink="true">https://forum.jsreport.net/post/496</guid><dc:creator><![CDATA[saranilangoRasu]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Invalid Date]]></title><description><![CDATA[<p>Ah ok, you didn't mentioned that.</p>
<p>You can for example pass this config when creating jsreport instance</p>
<pre><code class="language-js">require('jsreport')({ &quot;scripts&quot;: {
    &quot;allowedModules&quot; : [&quot;http&quot;]
  }
})
</code></pre>
<p>Other methods are described in <a href="https://jsreport.net/learn/configuration" rel="nofollow">https://jsreport.net/learn/configuration</a></p>
]]></description><link>https://forum.jsreport.net/post/498</link><guid isPermaLink="true">https://forum.jsreport.net/post/498</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Invalid Date]]></title><description><![CDATA[<p>I used above code in my server.js on my node js application, the jsreport was produce same error.<br />
The jsreport studio i ran through my node js application by following command<br />
&quot;require('jsreport')({ httpPort: 3000, httpsPort: 0 }).init(); &quot;<br />
Here jsreport run on 3000 port and my applicaiton run on 9000 port</p>
]]></description><link>https://forum.jsreport.net/post/500</link><guid isPermaLink="true">https://forum.jsreport.net/post/500</guid><dc:creator><![CDATA[saranilangoRasu]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Invalid Date]]></title><description><![CDATA[<p>You should extend <code>{ httpPort: 3000, httpsPort: 0 }</code>  with the <code>scripts</code> config.</p>
]]></description><link>https://forum.jsreport.net/post/501</link><guid isPermaLink="true">https://forum.jsreport.net/post/501</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Invalid Date]]></title><description><![CDATA[<p>Thank u very much jan balha</p>
]]></description><link>https://forum.jsreport.net/post/502</link><guid isPermaLink="true">https://forum.jsreport.net/post/502</guid><dc:creator><![CDATA[saranilangoRasu]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Invalid Date]]></title><description><![CDATA[<p>hi i got error while generate report<br />
&quot;Handlebars is not defined&quot; i used following code in helper.js section</p>
<p>Handlebars.registerHelper('ifCond', function(v1, v2, options) {<br />
if(v1 == '(Stop)') {<br />
return options.fn(v2);<br />
}<br />
return options.inverse(v1);<br />
});</p>
<p>Handlebars.registerHelper('ifCond2', function(v1, v2, options) {<br />
if(v1 == '(Continued)' || v1== '(Changed)') {<br />
return options.fn(v2);<br />
}<br />
return options.inverse(v1);<br />
});</p>
<p>Handlebars.registerHelper('ifCond3', function(v1, v2, options) {<br />
if(v1 == '(New)') {<br />
return options.fn(v2);<br />
}<br />
return options.inverse(v1);<br />
});</p>
]]></description><link>https://forum.jsreport.net/post/504</link><guid isPermaLink="true">https://forum.jsreport.net/post/504</guid><dc:creator><![CDATA[saranilangoRasu]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Invalid Date]]></title><description><![CDATA[<p>This is not how you define helpers in jsreport. There is general way which works across all engines. See the get started docs<br />
<a href="https://jsreport.net/learn/get-started" rel="nofollow">https://jsreport.net/learn/get-started</a></p>
]]></description><link>https://forum.jsreport.net/post/506</link><guid isPermaLink="true">https://forum.jsreport.net/post/506</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Unsupported module in scripts: http. on Invalid Date]]></title><description><![CDATA[<p>Please read our docs before answering further questions. All of this is not something you wouldn't figure out on your own if you would be a little bit patient.<br />
Thank you.</p>
]]></description><link>https://forum.jsreport.net/post/507</link><guid isPermaLink="true">https://forum.jsreport.net/post/507</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>