Hello All, using python 3 the self.stub.filter_add() call below receives
the following Traceback. It was my understanding the json.dumps() would
correct this, but does not. Any ideas what might be causing this problem?
def filter_add(self, filter_dict):
return
self.stub.filter_add(UtrSSXFilterServer.SSXFilter(Filter=json.dumps(filter_dict)))
Traceback (most recent call last):
File
"/root/utr-tc/lib/python3.4/site-packages/google/protobuf/internal/python_message.py",
line 526, in init
setattr(self, field_name, field_value)
File
"/root/utr-tc/lib/python3.4/site-packages/google/protobuf/internal/python_message.py",
line 662, in field_setter
new_value = type_checker.CheckValue(new_value)
File
"/root/utr-tc/lib/python3.4/site-packages/google/protobuf/internal/type_checkers.py",
line 109, in CheckValue
raise TypeError(message)
TypeError: '{"switchName": "null", "ssxEvent": "GET_PFC_SEND_RECV_P"}' has
type <class 'str'>, but expected one of: ((<class 'bytes'>,),)
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/ab3ac741-0910-4723-be1f-39c6302907bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.