anycable / anycable-rails

AnyCable for Ruby on Rails applications
https://anycable.io
MIT License
495 stars 35 forks source link

undefined method `metadata' for <AnyCable::ConnectionRequest: >:AnyCable::ConnectionRequest #204

Closed 0xMostafa closed 2 weeks ago

0xMostafa commented 2 weeks ago

Tell us about your environment

Ruby version: 2.7.2

Rails version: 5.2

anycable gem version: 0.6.0

anycable-rails gem version: .0.6.5

grpc gem version: ~> 1.17

What did you do?

Running anycable-go & RPC bundle exec anycable in docker compose as two separate services

What did you expect to happen?

to work fine

What actually happened?

rpc       | undefined method `metadata' for <AnyCable::ConnectionRequest: >:AnyCable::ConnectionRequest
anycable  | D 2024-08-26T10:19:57.527Z context=rpc Authenticate response: error_msg:"undefined method `metadata' for <AnyCable::ConnectionRequest: >:AnyCable::ConnectionRequest" 
anycable  | D 2024-08-26T10:19:57.527Z context=ws Websocket session initialization failed: Application error: undefined method `metadata' for <AnyCable::ConnectionRequest: >:AnyCable::ConnectionRequest
palkan commented 2 weeks ago

Try upgrading anycable gem to 0.6.5; that could help.

P.S. Version 0.6.x is almost 4 years old and no longer maintained.