Closed schlos closed 4 years ago
Reproducible also with http://imamopravoznati.org/admin/bodies/32386
Reproducible also with http://imamopravoznati.org/admin/bodies/28575
Sounds like there are requests made to those authorities that have failed to send. Have a look at https://github.com/mysociety/alaveteli/wiki/Resending-Failed-Outgoing-Messages
To verify if message was stuck in sending status:
alaveteli@imamopravoznati:~/alaveteli$ bundle exec rails console Loading production environment (Rails 4.2.9) irb(main):001:0> InfoRequest.find(6148).outgoing_messages.first.status => "ready"
List all failed sends:
irb(main):002:0> OutgoingMessage.where(:status => 'ready') => #<ActiveRecord::Relation [
...]>
Fixed requests id:
initial request - resent: 6447 6442 6426 6423 6396 6248 6148 5133 4372 4371 4336 4335 4248 4247 4246 3938 3936 3916 3873 3837 ... 3690 3114 1926
followup request - resent: n/a
duplicates - destroyed: 6446 6445 6444 6443 6441 6440 3937
All done, final check:
irb(main):949:0> OutgoingMessage.where(:status => 'ready') => #<ActiveRecord::Relation [#<OutgoingMessage id: 1, info_request_id: 1, body: "This is the holding pen request. It shows response...", status: "ready", message_type: "initial_request", created_at: "2015-02-21 11:12:31", updated_at: "2015-02-21 11:12:31", last_sent_at: "2015-02-21 11:12:31", incoming_message_followup_id: nil, what_doing: "normal_sort", prominence: "normal", prominence_reason: nil>]> irb(main):950:0>
only Holding Pen 👍
Actual behavior
Error 500
Steps to reproduce
Expected behavior
Should work