instructure / pandarus

A Ruby library for the Canvas API (and code generator for other languages, eventually)
34 stars 24 forks source link

Iterating on collections of enrollments generates intermittent failures. #27

Open eriko opened 6 years ago

eriko commented 6 years ago

While running

c_section_enrollment.each do |c_enrollment|
  #do stuff on c_enrollment
end

there are the following errors at line c_section_enrollment.each do |c_enrollment|

/Users/eriko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/virtus-1.0.5/lib/virtus/instance_methods.rb:96:in public_send' /Users/eriko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/virtus-1.0.5/lib/virtus/instance_methods.rb:96:in[]' bin/entran:321:in block (5 levels) in <module:Wrapper>' /Users/eriko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pandarus-0.7.0/lib/pandarus/remote_collection.rb:24:inblock (2 levels) in each' /Users/eriko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pandarus-0.7.0/lib/pandarus/remote_collection.rb:23:in each' /Users/eriko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pandarus-0.7.0/lib/pandarus/remote_collection.rb:23:inblock in each' /Users/eriko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pandarus-0.7.0/lib/pandarus/remote_collection.rb:35:in each_page' /Users/eriko/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pandarus-0.7.0/lib/pandarus/remote_collection.rb:22:ineach'

eriko commented 6 years ago

This does not happen on 0.6.11