Skip to content

MethodError: objects of type ProtoBuf.Codecs.BufferedVector{String} are not callable #83

@xgdgsc

Description

@xgdgsc
┌ Error: grpc_async_stream_response: unexpected exception
│   exception =
│    MethodError: objects of type ProtoBuf.Codecs.BufferedVector{String} are not callable
│    The object of type `ProtoBuf.Codecs.BufferedVector{String}` exists, but no method is defined for this combination of argument types when trying to treat it as a callable object.
└ @ gRPCClient ~/.julia/packages/gRPCClient/U2ltm/src/Streaming.jl:100

when the streaming response would be a struct like

struct Lines
    Lines::Vector{String}
    error::String
end

proto


message Line { string Line = 1; }

message Lines {
  repeated string Lines = 1;
  string error = 2;
}

Both types doesn' t work.

when return Line:

┌ Error: grpc_async_stream_response: unexpected exception
│   exception =
│    MethodError: objects of type String are not callable
│    The object of type `String` exists, but no method is defined for this combination of argument types when trying to treat it as a callable object.
└ @ gRPCClient ~/.julia/packages/gRPCClient/U2ltm/src/Streaming.jl:100

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