Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5305

undefined method `encode' in convert_to_utf8_byte_buffer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

       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. 

      {{}}

      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)>'

      {{}}

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dinukadesilva Dinuka DeSilva
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: