Skip to content
This repository was archived by the owner on Feb 25, 2023. It is now read-only.
This repository was archived by the owner on Feb 25, 2023. It is now read-only.

Error: ValueError: need more than 0 values to unpack #14

Description

@kevinguard

Having the following as thrift file:

namespace java com.github.test

struct HealthRequest {
    1: required string userId
}

struct HealthResponse {
    1: required string status
}

service Test {
    HealthResponse health (
        1: HealthRequest healthRequest
    )
}

I am composing the client command as follows:

thriftcli localhost:4000 Test.heath idl/github.com/test/test.thrift --body '{"healthRequest": {"userId": "1"}}' -v -c -j

However, I keep getting this error:

Traceback (most recent call last):
  File "/usr/local/bin/thriftcli", line 11, in <module>
    load_entry_point('thriftcli==1.1', 'console_scripts', 'thriftcli')()
  File "build/bdist.macosx-10.13-x86_64/egg/thriftcli/thrift_cli.py", line 281, in main
  File "build/bdist.macosx-10.13-x86_64/egg/thriftcli/thrift_cli.py", line 251, in _run_cli
  File "build/bdist.macosx-10.13-x86_64/egg/thriftcli/thrift_cli.py", line 51, in __init__
  File "build/bdist.macosx-10.13-x86_64/egg/thriftcli/thrift_argument_converter.py", line 25, in __init__
  File "build/bdist.macosx-10.13-x86_64/egg/thriftcli/thrift_parser.py", line 164, in parse
  File "build/bdist.macosx-10.13-x86_64/egg/thriftcli/thrift_parser.py", line 288, in _parse_services
  File "build/bdist.macosx-10.13-x86_64/egg/thriftcli/thrift_parser.py", line 319, in _build_service_endpoints
  File "build/bdist.macosx-10.13-x86_64/egg/thriftcli/thrift_parser.py", line 333, in _parse_endpoints_from_service_definition
ValueError: need more than 0 values to unpack

Reviewing the documentations, I couldn't immediately identify the issue. Can someone help me understand where I am making mistake when issuing the aforementioned command? Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions