You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Mark Sonnabaum (JIRA)" <ji...@apache.org> on 2016/08/25 14:09:20 UTC
[jira] [Created] (THRIFT-3904) Typo in node tutorial
Mark Sonnabaum created THRIFT-3904:
--------------------------------------
Summary: Typo in node tutorial
Key: THRIFT-3904
URL: https://issues.apache.org/jira/browse/THRIFT-3904
Project: Thrift
Issue Type: Bug
Components: Node.js - Library, Tutorial
Reporter: Mark Sonnabaum
In the node tutorial (tutorial/nodejs/NodeClient.js), lines like `transport = thrift.TBufferedTransport()` cause transport to be undefined, which later get replaced with the default, so this example does work.
I found the issue when using `thrift.TFramedTransport()`, which was erroring on the server side. It took me a while to figure out that the transport was falling back to buffered, because I was actually assigning the transport to undefined.
Changing the lines to assign thrift.TFramedTransport instead of thrift.TFramedTransport() fixed it for me.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)