Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avro.io.AvroTypeException #15

Open
zhengxiuya opened this issue Dec 4, 2017 · 0 comments
Open

avro.io.AvroTypeException #15

zhengxiuya opened this issue Dec 4, 2017 · 0 comments

Comments

@zhengxiuya
Copy link

Hello:
I download this quikstart,and it can run well ,but when i change it add an type [add] to this avpr ,and change the messages-send like :"send": { "request": [{"name": "message", "type": "Message"},{"name": "add", "type": "Add"}], then i call send method get then error:avro.io.AvroTypeException. I don't know how to call then method send. then avpr is like:
{"namespace": "example.proto",
"protocol": "Mail",

"types": [
{"name": "Message", "type": "record",
"fields": [
{"name": "to", "type": "string"},
{"name": "from", "type": "string"},
{"name": "body", "type": "string"}
]
}, {"name": "Add", "type": "record",
"fields": [
{"name": "name", "type": "string"},
{"name": "id", "type": "string"},
{"name": "code", "type": "string"}
]
}
],

"messages": {
"send": {
"request": [{"name": "message", "type": "Message"},{"name": "add", "type": "Add"}],
"response": "string"
}
}
}

hope for help!
thinks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant