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

"ArgumentError, invalid slice size" when only one notification is being sent #57

Closed
gvarela opened this issue Jul 30, 2014 · 1 comment

Comments

@gvarela
Copy link

gvarela commented Jul 30, 2014

I am running rpush on heroku with stock configurations. When I try to queue a single test notification I get this error. When I send multiples it seems to be fine.

Any thoughts on if this is an issue on my side or an error in the enqueue method on the app_runner?

2014-07-30T22:22:23.222745+00:00 app[rpush.1]: [2014-07-30 22:22:23] [ERROR] ArgumentError, invalid slice size
2014-07-30T22:22:23.222751+00:00 app[rpush.1]: /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.2/lib/active_support/core_ext/array/grouping.rb:34:in `each_slice'
2014-07-30T22:22:23.222753+00:00 app[rpush.1]: /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.2/lib/active_support/core_ext/array/grouping.rb:34:in `in_groups_of'
2014-07-30T22:22:23.222755+00:00 app[rpush.1]: /app/vendor/bundle/ruby/2.1.0/bundler/gems/rpush-5653cabd82f5/lib/rpush/daemon/app_runner.rb:95:in `enqueue'
2014-07-30T22:22:23.222756+00:00 app[rpush.1]: /app/vendor/bundle/ruby/2.1.0/bundler/gems/rpush-5653cabd82f5/lib/rpush/daemon/app_runner.rb:17:in `block in enqueue'
2014-07-30T22:22:23.222758+00:00 app[rpush.1]: /app/vendor/bundle/ruby/2.1.0/bundler/gems/rpush-5653cabd82f5/lib/rpush/daemon/app_runner.rb:15:in `each'
2014-07-30T22:22:23.222760+00:00 app[rpush.1]: /app/vendor/bundle/ruby/2.1.0/bundler/gems/rpush-5653cabd82f5/lib/rpush/daemon/app_runner.rb:15:in `enqueue'
2014-07-30T22:22:23.222777+00:00 app[rpush.1]: /app/vendor/bundle/ruby/2.1.0/bundler/gems/rpush-5653cabd82f5/lib/rpush/daemon/feeder.rb:43:in `enqueue_notifications'
2014-07-30T22:22:23.222779+00:00 app[rpush.1]: /app/vendor/bundle/ruby/2.1.0/bundler/gems/rpush-5653cabd82f5/lib/rpush/daemon/feeder.rb:28:in `block (2 levels) in feed_forever'
2014-07-30T22:22:23.222780+00:00 app[rpush.1]: /app/vendor/bundle/ruby/2.1.0/bundler/gems/rpush-5653cabd82f5/lib/rpush/daemon/feeder.rb:27:in `loop'
2014-07-30T22:22:23.222782+00:00 app[rpush.1]: /app/vendor/bundle/ruby/2.1.0/bundler/gems/rpush-5653cabd82f5/lib/rpush/daemon/feeder.rb:27:in `block in feed_forever'
@ileitch ileitch closed this as completed in 71fe74f Aug 1, 2014
@gvarela
Copy link
Author

gvarela commented Aug 1, 2014

awesome thanks!

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