title: Stripe crashes when create product in Node.JS
body: <p>I am trying to create a product in stripe, but when I try to make the call with stripe.products.create(), it lags, and some seconds later my server crashes due to 'JavaScript heap out of memory'.</p>
  
  <p>Here is how I do it:</p>
  
  <pre><code>import stripePackage from 'stripe'
  const stripe = stripePackage(config.stripe)
  
  // after product is found in mongoose
  stripe.products.create({
      id: product.sku,
      name: product.title,
      type: 'good',
      description: product.description,
      active: product.isAvailable,
      images: product.images,
      package_dimensions: {
          weight: product.shipping.weight * 16,
          length: product.shipping.dimension.length,
          width: product.shipping.dimension.width,
          height: product.shipping.dimension.height
      },
      shippable: true
  }).then(stripeProduct =&gt; {
      console.log(stripeProduct.id);
      res.json(stripeProduct)
  }).catch(err =&gt; {
      if (err) {
          console.log(err);
      }
  })
  </code></pre>
  
  <p>CORS settings</p>
  
  <pre><code>app.use((req, res, next)=&gt; {
    res.header("Access-Control-Allow-Origin", "*")
    res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, token, auth")
    res.header("Access-Control-Expose-Headers", "token")
    res.header("Access-Control-Allow-Methods", "POST,GET,PUT,DELETE,OPTIONS")
    next()
  })
  </code></pre>
  
  <p>Here is the crash report from express.js:</p>
  
  <pre><code>&lt;--- Last few GCs ---&gt;
  
  [87147:0x102801e00]    61928 ms: Mark-sweep 1416.8 (1462.3) -&gt; 1416.7 (1446.3) MB, 9502.3 / 0.0 ms  (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 9502 ms) last resort
  [87147:0x102801e00]    72192 ms: Mark-sweep 1416.7 (1446.3) -&gt; 1416.7 (1446.3) MB, 10263.3 / 0.0 ms  last resort
  
  
  &lt;--- JS stacktrace ---&gt;
  
  ==== JS stack trace =========================================
  
  Security context: 0x3ca24589cef1 &lt;JSObject&gt;
      1: encode(aka encode) [/Users/thousight/Projects/Project/node_modules/qs/lib/utils.js:~118] [pc=0x163bec732a95](this=0x3ca245882241 &lt;undefined&gt;,str=0x3ca2458822c1 &lt;true&gt;)
      2: arguments adaptor frame: 2-&gt;1
      3: stringify(aka stringify) [/Users/thousight/Projects/Project/node_modules/qs/lib/stringify.js:~32] [pc=0x163bec733b44](this=0x3ca245882241 &lt;undefined&gt;,object=0x3ca24588...
  
  FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
  1: node::Abort() [/usr/local/bin/node]
  2: node::FatalException(v8::Isolate*, v8::Local&lt;v8::Value&gt;, v8::Local&lt;v8::Message&gt;) [/usr/local/bin/node]
  3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
  4: v8::internal::Factory::NewFixedArray(int, v8::internal::PretenureFlag) [/usr/local/bin/node]
  5: v8::internal::LoadIC::LoadFullChain(v8::internal::Handle&lt;v8::internal::Map&gt;, v8::internal::Handle&lt;v8::internal::Object&gt;, v8::internal::Handle&lt;v8::internal::Name&gt;, v8::internal::Handle&lt;v8::internal::Smi&gt;) [/usr/local/bin/node]
  6: v8::internal::LoadIC::UpdateCaches(v8::internal::LookupIterator*) [/usr/local/bin/node]
  7: v8::internal::LoadIC::Load(v8::internal::Handle&lt;v8::internal::Object&gt;, v8::internal::Handle&lt;v8::internal::Name&gt;) [/usr/local/bin/node]
  8: v8::internal::Runtime_LoadIC_Miss(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
  9: 0x163bec5840dd
  10: 0x163bec732a95
  </code></pre>
  
  <p>Is there anything wrong with it? What would be the factors to cause that server crash? Thanks</p>
  
  <p>Node: v8.4.0
  Stripe-Node: v5.8.0</p>