# Probleme mit ActiveSupport::MessageEncryptor::InvalidMessage im Plugin

**URL:** <https://meta.discourse.org/t/trouble-with-activesupport-invalidmessage-in-plugin/229957>\
**Category:** Development\
**Created:** [14. Juni 2022 um 17:55 UTC](https://meta.discourse.org/t/trouble-with-activesupport-invalidmessage-in-plugin/229957 "2022-06-14T17:55:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [14. Juni 2022 um 17:55 UTC](https://meta.discourse.org/t/trouble-with-activesupport-invalidmessage-in-plugin/229957/1 "2022-06-14T17:55:42Z")

</div>

Das Update auf 2.9.0.beta5 verursacht ein Problem mit meinem Dashboard-Plugin. Etwas löst einen Fehler in einer Ansicht des Plugins aus:

```plaintext
Started GET "/pfaffmanager/servers" for 73.147.117.173 at 2022-06-14 17:53:31 +0000
Processing by Pfaffmanager::ServersController#index as HTML
  Rendered default/empty.html.erb within layouts/application (Duration: 0.1ms | Allocations: 29)
  Rendered layout layouts/application.html.erb (Duration: 21.6ms | Allocations: 7109)
Completed 200 OK in 142ms (Views: 23.0ms | ActiveRecord: 0.0ms | Allocations: 37464)
Started GET "/chat/chat_channels.json" for 73.147.117.173 at 2022-06-14 17:53:31 +0000
Processing by DiscourseChat::ChatChannelsController#index as JSON
Started GET "/presence/get?channels%5B%5D=%2Fchat-user%2Fchat%2F1&channels%5B%5D=%2Fchat-user%2Fcore%2F1" for 73.147.117.173 at 2022-06-14 17:53:31 +0000
Processing by PresenceController#get as JSON
  Parameters: {"channels"=>["/chat-user/chat/1", "/chat-user/core/1"]}
Completed 200 OK in 44ms (Views: 1.9ms | ActiveRecord: 0.0ms | Allocations: 5134)
Started GET "/pfaffmanager/servers" for 73.147.117.173 at 2022-06-14 17:53:31 +0000
Completed 200 OK in 94ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 22124)
Processing by Pfaffmanager::ServersController#index as JSON
Completed 500 Internal Server Error in 113ms (ActiveRecord: 0.0ms | Allocations: 15487)
ActiveSupport::MessageEncryptor::InvalidMessage (ActiveSupport::MessageEncryptor::InvalidMessage)
(eval):9:in `_fast_attributes'
app/controllers/application_controller.rb:543:in `render_json_dump'
app/controllers/application_controller.rb:415:in `block in with_resolved_locale'
app/controllers/application_controller.rb:415:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:368:in `call'
config/initializers/008-rack-cors.rb:25:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:202:in `call'

```

Dies scheint nur in der Index-Ansicht meines Plugins aufzutreten, nicht auf anderen Seiten des Plugins oder in Discourse. Ich bin mir nicht sicher, wo ich suchen soll. Ich bin froh, dass ich das Upgrade zuerst auf meiner Staging-Site durchgeführt habe!

Das Obige deutete für mich darauf hin, dass dies mit dem Chat-Plugin zu tun hat, aber es tritt auf meiner Dev-Instanz auf, ohne dass Chat installiert ist.

Wow, und wenn ich Google nach `ActiveSupport::MessageEncryptor::InvalidMessage "fast_attributes"` durchsuche, gibt es nur dieses Thema!

---

_[View the full topic](https://meta.discourse.org/t/trouble-with-activesupport-invalidmessage-in-plugin/229957)._
