Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.4.0
-
None
-
None
-
Mac OS X
Description
Raising an AvroError or even a subclass thereof doesn't simply return a nice clean Error to the client despite errors being specified in the schema.
Instead, the client sees:
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:46:in `byte!': undefined method `[]' for nil:NilClass (NoMethodError)
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:63:in `read_long'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:379:in `read_union'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:315:in `read_data'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:281:in `read'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:224:in `read_error'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:213:in `read_call_response'
.../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:113:in `request'