Not able to update feed activity using stream-rails or stream-ruby

Stack Overflow Asked by Atul Tirkey on December 3, 2020

When trying to update an activity I get the following error –

NoMethodError (undefined method `update_activity’ for #Stream::Client:0x00007f9477dd5dc0

When I see the source code of stream-ruby I see the update_activity. But, the update_activity method doesn’t show for the client object.

irb(main):069:0> client.methods – ActiveRecord::Base.methods
=> [:api_key, :api_secret, :app_id, :api_version, :make_request, :default_timeout, :feed, :get_default_params, :get_http_client, :make_query_params, :location, :add_to_many, :follow_many, :make_signed_request]

I have initialized my client like – client = StreamRails.client

Even when I try the same thing with stream-ruby, I still get the same error

StreamClient =[‘stream_rails_api_key’], ENV[‘stream_rails_api_secret’], location: ‘us-east’)

irb(main):063:0> StreamClient.methods – ActiveRecord::Base.methods
=> [:api_key, :api_secret, :app_id, :api_version, :make_request, :default_timeout, :feed, :get_default_params, :get_http_client, :make_query_params, :location, :add_to_many, :follow_many, :make_signed_request]

How to update activities ?

Add your own answers!

Related Questions

Cannot append option for select form

1  Asked on November 20, 2021 by nguyn-v


Constructors with the same primitive type as parameter

3  Asked on November 18, 2021 by arjun-singh


Python regex for numbers between 0-63

3  Asked on November 18, 2021 by perplexityy


How can I retrieve many values of a same field in a GET request

2  Asked on November 18, 2021 by user2424634


Can i know why my while loop is not working?

0  Asked on November 18, 2021 by niranjan-kumar


Moment JS days difference issue

1  Asked on November 18, 2021


How to update the value of a prop upon a state change in React

2  Asked on November 18, 2021 by alopez02


reload div without refresh page

1  Asked on November 18, 2021 by kemar-aim


Convert heirachy to dict of lists

0  Asked on November 18, 2021 by himabindu


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir