node.js - meteor braintree socket hung up -
recently, when moved app ubuntu, running "socket hung up" error when calling braintree api. if dont send "options" parameter in braintree api, works. not sure if meteor or braintree issue or node js issue.
var paymentmethod = meteor.wrapasync(gateway.paymentmethod.create, gateway.paymentmethod); var response = paymentmethod({ customerid: user.customerid, paymentmethodnonce: noncefromtheclient, options: { verifycard: true }, });
error :{ [unexpectederror: unexpected request error: error: socket hang up] name: 'unexpectederror', type: 'unexpectederror' }
i20161110-17:17:55.508(0)? exception while invoking method 'createtrans4newcust' unexpectederror: unexpected request error: error: socket hang up
i20161110-17:17:55.509(0)? @ object.future.wait (/home/vagrant/.meteor/packages/meteor-tool/.1.4.2.1r0536n++os.linux.x86_64+web.brow ser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:449:15)
i20161110-17:17:55.511(0)? @ packages/meteor.js:213:24
i20161110-17:17:55.512(0)? @ [object object].createpaymentmethod (server/main.js:107:22)
i20161110-17:17:55.515(0)? @ maybeauditargumentchecks (packages/ddp-server/livedata_server.js:1711:12)
i20161110-17:17:55.517(0)? @ packages/ddp-server/livedata_server.js:1624:18
i20161110-17:17:55.518(0)? @ [object object]._.extend.withvalue (packages/meteor.js:1122:17)
i20161110-17:17:55.520(0)? @ server.apply (packages/ddp-server/livedata_server.js:1623:45)
i20161110-17:17:55.521(0)? @ server.call (packages/ddp-server/livedata_server.js:1566:17)
i20161110-17:17:55.522(0)? @ [object object].createtransfer (server/main.js:190:28)
i20161110-17:17:55.524(0)? @ maybeauditargumentchecks (packages/ddp-server/livedata_server.js:1711:12)
i20161110-17:17:55.524(0)? - - - - -
i20161110-17:17:55.525(0)? @ object.unexpectederror (/node_modules/braintree/lib/braintree/exceptions.js :10:11)
i20161110-17:17:55.527(0)? @ clientrequest. (/node_modules/braintree/lib/braintree/http.js:13 5:26)
i20161110-17:17:55.527(0)? @ emitone (events.js:77:13)
i20161110-17:17:55.531(0)? @ clientrequest.emit (events.js:169:7)
if comment out verifycard: true i.e dont send options, dont run socket hung issue. appreciate stuck last 24 hrs
Comments
Post a Comment