[ https://issues.apache.org/jira/browse/THRIFT-5305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17229480#comment-17229480 ]
Dinuka De Silva commented on THRIFT-5305: ----------------------------------------- [~zeshuai007] Thanks for your reply. No. `userName` is a string. This is actually a method parameter name passed through the thrift core. That's why I wanted to post here to see if this is a known issue already. > undefined method `encode' in convert_to_utf8_byte_buffer > -------------------------------------------------------- > > Key: THRIFT-5305 > URL: https://issues.apache.org/jira/browse/THRIFT-5305 > Project: Thrift > Issue Type: Bug > Components: Ruby - Compiler, Ruby - Library > Reporter: Dinuka De Silva > Priority: Major > > I'm using the generated thrift client to build a library. > [https://github.com/apache/airavata/pull/265] > > I'm actually blocked with this issue. > {{}} > {code:java} > Failure/Error: send_message('isUserExists', IsUserExists_args, :authzToken => > authzToken, :gatewayId => gatewayId, :userName => userName) NoMethodError: > undefined method `encode' for :userName:Symbol Did you mean? encoding # > ./vendor/bundle/ruby/2.3.0/gems/thrift-0.13.0/lib/thrift/bytes.rb:81:in > `convert_to_utf8_byte_buffer' # > ./vendor/bundle/ruby/2.3.0/gems/thrift-0.13.0/lib/thrift/protocol/binary_protocol.rb:110:in > `write_string' # > ./vendor/bundle/ruby/2.3.0/gems/thrift-0.13.0/lib/thrift/client.rb:44:in > `write' # > ./vendor/bundle/ruby/2.3.0/gems/thrift-0.13.0/lib/thrift/client.rb:44:in > `send_message_args' # > ./vendor/bundle/ruby/2.3.0/gems/thrift-0.13.0/lib/thrift/client.rb:30:in > `send_message' # ./lib/airavata.rb:21:in `send_isUserExists' # > ./lib/airavata.rb:16:in `isUserExists' # ./spec/sdk_spec.rb:15:in `block (2 > levels) in <top (required)>'{code} > {{}} -- This message was sent by Atlassian Jira (v8.3.4#803005)