Action Cable Error: Subscription class not found in AnyCable server + How to Debug AnyCable on Prod

35 views Asked by At

I added a new channel to my Action Cable and it's working fine on my local machine. However, when deployed to the development environment, we encountered an error on the AnyCable server:

E, [2024-03-06T12:34:46.645728 #1] ERROR -- : [AnyCable sid=oY1trubmcDzA0m-iyfezL] [ActionCable] [1594] Subscription class not found: "HeartbeatChannel" E, [2024-03-06T12:34:46.646192 #1] ERROR -- : Channel not found: HeartbeatChannel:

We resolved this issue by restarting the GRPC service, AnyCable server, and the Rails instance. However, when deploying to production, the same issue persists, and our attempted solution doesn't work.

Could someone please advise on how to resolve this issue in the production environment? and also guide me through that how I can debug anycable on prod.

I tried searching on google, stack overflow and git hub but didn't get expected solution.

0

There are 0 answers