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

mastodon:push:clear doesn't work #2860

Closed
2 tasks done
yukota opened this issue May 6, 2017 · 1 comment
Closed
2 tasks done

mastodon:push:clear doesn't work #2860

yukota opened this issue May 6, 2017 · 1 comment

Comments

@yukota
Copy link

yukota commented May 6, 2017

Execute below command in v1.3.3.
docker-compose run --rm web rake mastodon:push:clear

In this time, below error occured.

rake aborted!
NoMethodError: undefined method `successful?' for #<HTTP::Response:0x007fe20cf64c08>
/mastodon/app/services/unsubscribe_service.rb:8:in `call'
/mastodon/lib/tasks/mastodon.rake:75:in `block (4 levels) in <top (required)>'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/batches.rb:59:in `block (2 levels) in find_each'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/batches.rb:59:in `each'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/batches.rb:59:in `block in find_each'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/batches.rb:121:in `block in find_in_batches'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/batches.rb:214:in `block in in_batches'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/batches.rb:198:in `loop'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/batches.rb:198:in `in_batches'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/batches.rb:120:in `find_in_batches'
/mastodon/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.2/lib/active_record/relation/batches.rb:58:in `find_each'
/mastodon/lib/tasks/mastodon.rake:73:in `block (3 levels) in <top (required)>'
/mastodon/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => mastodon:push:clear
(See full trace by running task with --trace)

The reason of this problem is similar to #2799 .
Below code is should be fixed like #2799 .
https://github.com/tootsuite/mastodon/blob/master/app/services/unsubscribe_service.rb#L8

Thank you.


  • I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • This bug happens on a tagged release and not on master (If you're a user, don't worry about this).
@yukota
Copy link
Author

yukota commented May 9, 2017

Fixed by 5bea424 .
Thank you.

@yukota yukota closed this as completed May 9, 2017
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